<commit_before>- tweets ||= @tweets
- avatar_size ||= "36x36"
- show_pagination ||= false
- header_text ||= t('tweetstream')
- header_link_path ||= (@person ? tweetstream_person_path(@person.id) : tweetstream_path)
- show_source ||= true
- show_in_reply ||= true 
- limit ||= 0

- unless header_text.blank?
  %h3= link_to(header_text, header_link_path) 
- if show_pagination
  .pagination-info= page_entries_info(@tweets, :entry_name => 'tweet')
  = will_paginate(@tweets, :previous_label => t('previous'), :next_label => t('next'))
%ul.tweetstream
  - tweets[0..(limit-1)].each do |tweet|
    %li{:class => cycle('', 'alt')}
      = link_to(image_tag(tweet.user.profile_image_url.gsub(/_normal./, '_bigger.'), :size => avatar_size), twitter_user_url(tweet.user.screen_name), :class => 'avatar')
      = detail_link_for_tweet(tweet)
      = ": #{twitter_auto_link tweet.text}"
      - unless tweet.in_reply_to_status_id.blank? or not show_in_reply
        %a.in-reply-to{:href => twitter_status_path(tweet.in_reply_to_screen_name, tweet.in_reply_to_status_id)}= t('in_reply_to')
        %a.in-reply-to{:href => twitter_user_url(tweet.in_reply_to_screen_name)}= "@#{tweet.in_reply_to_screen_name}"
      %a.timeago{:title => tweet.created_at.iso8601, :href => twitter_status_path(tweet.user.screen_name, tweet.id)}= tweet.created_at.zone.to_s
      - unless tweet.source.nil? or not show_source
        %em.from
          = t('from')
          = tweet.source
- if show_pagination
  = will_paginate(@tweets, :previous_label => t('previous'), :next_label => t('next'))<commit_msg>Changed person tweetstream path to use friendly_id<commit_after>- tweets ||= @tweets
- avatar_size ||= "36x36"
- show_pagination ||= false
- header_text ||= t('tweetstream')
- header_link_path ||= (@person ? tweetstream_person_path(@person) : tweetstream_path)
- show_source ||= true
- show_in_reply ||= true 
- limit ||= 0

- unless header_text.blank?
  %h3= link_to(header_text, header_link_path) 
- if show_pagination
  .pagination-info= page_entries_info(@tweets, :entry_name => 'tweet')
  = will_paginate(@tweets, :previous_label => t('previous'), :next_label => t('next'))
%ul.tweetstream
  - tweets[0..(limit-1)].each do |tweet|
    %li{:class => cycle('', 'alt')}
      = link_to(image_tag(tweet.user.profile_image_url.gsub(/_normal./, '_bigger.'), :size => avatar_size), twitter_user_url(tweet.user.screen_name), :class => 'avatar')
      = detail_link_for_tweet(tweet)
      = ": #{twitter_auto_link tweet.text}"
      - unless tweet.in_reply_to_status_id.blank? or not show_in_reply
        %a.in-reply-to{:href => twitter_status_path(tweet.in_reply_to_screen_name, tweet.in_reply_to_status_id)}= t('in_reply_to')
        %a.in-reply-to{:href => twitter_user_url(tweet.in_reply_to_screen_name)}= "@#{tweet.in_reply_to_screen_name}"
      %a.timeago{:title => tweet.created_at.iso8601, :href => twitter_status_path(tweet.user.screen_name, tweet.id)}= tweet.created_at.zone.to_s
      - unless tweet.source.nil? or not show_source
        %em.from
          = t('from')
          = tweet.source
- if show_pagination
  = will_paginate(@tweets, :previous_label => t('previous'), :next_label => t('next'))
{'fraction_non_alphanumeric': 0.16342534504391468, 'fraction_numerical': 0.0075282308657465494, 'mean_word_length': 4.594736842105263, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 27, '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': '1545335', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1169, 'n_words': 175}