<commit_before>.tweet
  - unless authorized_to_show_user? tweet.user
    .tweet
      .left
        .avatar
          = image_tag "missing_profile_image.png", alt: "protected", title: "protected user"
      .tweet_content_fix
      .tweet_content
        .user
          %span.name Protected
          %span.screen_name -
        .text
          .quiet
            ユーザーは非公開です
        .meta.clearfix
          %span.twitter_bird= image_tag("bird_gray_16.png", alt: "Twitter")
          %span.created_at= format_time(tweet.tweeted_at)
          %span.source via -
    .stats
      %dl
        - [["favs", tweet.favorites_count, tweet.favoriters], ["retweets", tweet.retweets_count, tweet.retweeters]].each do |title, count, users|
          - if count > 0
            %dt
              %span.count= count
              %span.type= title
  - else
    .tweet
      .left
        .avatar
          = link_to user_path(tweet.user_screen_name) do
            = image_tag tweet.user_profile_image_url, alt: tweet.user_screen_name, title: tweet.user_name
        %ul.list-inline.actions
          %li.twitter
            = link_to image_tag("reply.png", alt: "reply"), "https://twitter.com/intent/tweet?in_reply_to=#{tweet.id}"
            = link_to image_tag("retweet.png", alt: "retweet"), "https://twitter.com/intent/retweet?tweet_id=#{tweet.id}"
            = link_to image_tag("favorite.png", alt: "favorite"), "https://twitter.com/intent/favorite?tweet_id=#{tweet.id}"
      .tweet_content_fix
      .tweet_content
        .user
          %span.name= link_to tweet.user_name, user_path(tweet.user_screen_name)
          %span.screen_name= link_to tweet.user_screen_name, user_path(tweet.user_screen_name)
          - if tweet.in_reply_to
            %span.in_reply_to= link_to "in reply to @" + tweet.in_reply_to.user_screen_name, tweet_path(tweet.in_reply_to.id)
        .text
          = format_tweet_text tweet.text
        .meta.clearfix
          %span.twitter_bird
            = link_to image_tag("bird_gray_16.png", alt: "Twitter"), tweet.twitter_url, target: "_blank"
          %span.created_at
            = link_to format_time(tweet.tweeted_at), tweet_path(tweet.id)
          - if favorites_truncated?(tweet)
            %span.show-full= link_to "show full", tweet_path(tweet.id, full: true)
          - if logged_in?
            %span.import= link_to "import", import_path(tweet.id)
          %span.source
            = raw "via " + link_to_source_text(tweet.source)
    .stats
      %dl
        - [["favs", tweet.favorites_count, tweet.favoriters], ["retweets", tweet.retweets_count, tweet.retweeters]].each do |title, count, users|
          - if count > 0
            %dt
              %span.count= count
              %span.type= title
            %dd<commit_msg>fix _tweet.html.haml: not use 'raw'<commit_after>.tweet
  - unless authorized_to_show_user? tweet.user
    .tweet
      .left
        .avatar
          = image_tag "missing_profile_image.png", alt: "protected", title: "protected user"
      .tweet_content_fix
      .tweet_content
        .user
          %span.name Protected
          %span.screen_name -
        .text
          .quiet
            ユーザーは非公開です
        .meta.clearfix
          %span.twitter_bird= image_tag("bird_gray_16.png", alt: "Twitter")
          %span.created_at= format_time(tweet.tweeted_at)
          %span.source via -
    .stats
      %dl
        - [["favs", tweet.favorites_count, tweet.favoriters], ["retweets", tweet.retweets_count, tweet.retweeters]].each do |title, count, users|
          - if count > 0
            %dt
              %span.count= count
              %span.type= title
  - else
    .tweet
      .left
        .avatar
          = link_to user_path(tweet.user_screen_name) do
            = image_tag tweet.user_profile_image_url, alt: tweet.user_screen_name, title: tweet.user_name
        %ul.list-inline.actions
          %li.twitter
            = link_to image_tag("reply.png", alt: "reply"), "https://twitter.com/intent/tweet?in_reply_to=#{tweet.id}"
            = link_to image_tag("retweet.png", alt: "retweet"), "https://twitter.com/intent/retweet?tweet_id=#{tweet.id}"
            = link_to image_tag("favorite.png", alt: "favorite"), "https://twitter.com/intent/favorite?tweet_id=#{tweet.id}"
      .tweet_content_fix
      .tweet_content
        .user
          %span.name= link_to tweet.user_name, user_path(tweet.user_screen_name)
          %span.screen_name= link_to tweet.user_screen_name, user_path(tweet.user_screen_name)
          - if tweet.in_reply_to
            %span.in_reply_to= link_to "in reply to @" + tweet.in_reply_to.user_screen_name, tweet_path(tweet.in_reply_to.id)
        .text
          = format_tweet_text tweet.text
        .meta.clearfix
          %span.twitter_bird
            = link_to image_tag("bird_gray_16.png", alt: "Twitter"), tweet.twitter_url, target: "_blank"
          %span.created_at
            = link_to format_time(tweet.tweeted_at), tweet_path(tweet.id)
          - if favorites_truncated?(tweet)
            %span.show-full= link_to "show full", tweet_path(tweet.id, full: true)
          - if logged_in?
            %span.import= link_to "import", import_path(tweet.id)
          %span.source
            via
            = link_to_source_text(tweet.source)
    .stats
      %dl
        - [["favs", tweet.favorites_count, tweet.favoriters], ["retweets", tweet.retweets_count, tweet.retweeters]].each do |title, count, users|
          - if count > 0
            %dt
              %span.count= count
              %span.type= title
            %dd
{'fraction_non_alphanumeric': 0.11834319526627218, 'fraction_numerical': 0.002151694459386767, 'mean_word_length': 2.158550396375991, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '501455', 'n_tokens_mistral': 1921, 'n_tokens_neox': 1860, 'n_words': 318}