<commit_before><div id="tweet-<%= tweet.id %>" class="tweet">
  <a href="/user/<%= tweet.politician.user_name %>">
    <img src="<%= avatar_url tweet.politician.user_name %>" alt="<%= tweet.politician.user_name %>" width"73" height="73" />
  </a>
  <div class="content">
    <div class="tweet-content">
      <div class="tweetTitle">
      <a href="/user/<%= tweet.politician.user_name %>"><%= tweet.details['user']['name'] %></a>
	    <% if !tweet.politician.nil? %>
	      ( <a class="titleParty" href="/party/<%= tweet.politician.party.name %>"><%= tweet.politician.party.name %></a> )
	    <% end %>
	    </div>
        <% if current_user && current_user.is_admin == 1 %>
        (<%= link_to t(:edit, :scope => [:politwoops]), edit_politician_path(tweet.politician) %>)
      <% end %>
	     <%= format_tweet(tweet).to_s.html_safe %>
    </div>
    <div class="byline">
      <a href="http://twitter.com/<%= tweet.politician.user_name %>" class="twitter"><%= tweet.details['user']['name'] %></a>
  		<% source = tweet.details["source"].to_s.html_safe %>
  		<% tweet_when = "<a href=\"/tweet/#{tweet.id}\">#{time_ago_in_words(tweet.modified)}</a>" %>
      <% delete_delay = (tweet.modified - tweet.created).to_i %>
      <% 
        delay = if delete_delay > (60 * 60 * 24 * 7)
          "after #{pluralize(delete_delay / (60 * 60 * 24 * 7), "week")}"
        elsif delete_delay > (60 * 60 * 24)
          "after #{pluralize(delete_delay / (60 * 60 * 24), "day")}"
        elsif delete_delay > (60 * 60)
          "after #{pluralize(delete_delay / (60 * 60), "hour")}"
        elsif delete_delay > 60
          "after #{pluralize(delete_delay / 60, "minute")}"
        elsif delete_delay > 1
          "after #{pluralize delete_delay, "second"}"
        else
          "immediately"
        end
      %>

	    <%= t(:byline, :scope => [:politwoops, :tweets], :when => tweet_when, :what => source, :delay => delay).html_safe %>
    </div>

    
      <div class="images">
        <% if tweet.tweet_images.any? %>
          <h3>Screenshots of links in this tweet</h3>
          <% tweet.tweet_images.each do |image| %>
            <a href="<%= image.url %>" target="_blank">
              <img src="<%= image.url %>" class="screenshot" />
            </a>
          <% end %>
        <% end %>
      </div>
    

    <div class="clear">
    </div>
  </div>
  <div class="actions">
    <a href="http://twitter.com/share?text=<%= CGI.escape('@' + tweet.user_name + ' ') %>&url=http://politwoops.nl/tweet/<%= tweet.id %>&via=politwoops" class="reply textReplace" target="_blank"><%=t :reply, :scope => [:politwoops, :tweets] %></a>
    <a href="http://twitter.com/share?text=<%= CGI.escape('RT @' + tweet.user_name + ' ' + tweet.content) %>&url=http://politwoops.nl/tweet/<%= tweet.id %>&via=politwoops" class="retweet textReplace" target="_blank"><%=t :retweet, :scope => [:politwoops, :tweets] %></a>
  </div>
  <div class="clear"><commit_msg>Fixed politwoops URL in the reply/retweet buttons<commit_after><div id="tweet-<%= tweet.id %>" class="tweet">
  <a href="/user/<%= tweet.politician.user_name %>">
    <img src="<%= avatar_url tweet.politician.user_name %>" alt="<%= tweet.politician.user_name %>" width"73" height="73" />
  </a>
  <div class="content">
    <div class="tweet-content">
      <div class="tweetTitle">
      <a href="/user/<%= tweet.politician.user_name %>"><%= tweet.details['user']['name'] %></a>
	    <% if !tweet.politician.nil? %>
	      ( <a class="titleParty" href="/party/<%= tweet.politician.party.name %>"><%= tweet.politician.party.name %></a> )
	    <% end %>
	    </div>
        <% if current_user && current_user.is_admin == 1 %>
        (<%= link_to t(:edit, :scope => [:politwoops]), edit_politician_path(tweet.politician) %>)
      <% end %>
	     <%= format_tweet(tweet).to_s.html_safe %>
    </div>
    <div class="byline">
      <a href="http://twitter.com/<%= tweet.politician.user_name %>" class="twitter"><%= tweet.details['user']['name'] %></a>
  		<% source = tweet.details["source"].to_s.html_safe %>
  		<% tweet_when = "<a href=\"/tweet/#{tweet.id}\">#{time_ago_in_words(tweet.modified)}</a>" %>
      <% delete_delay = (tweet.modified - tweet.created).to_i %>
      <% 
        delay = if delete_delay > (60 * 60 * 24 * 7)
          "after #{pluralize(delete_delay / (60 * 60 * 24 * 7), "week")}"
        elsif delete_delay > (60 * 60 * 24)
          "after #{pluralize(delete_delay / (60 * 60 * 24), "day")}"
        elsif delete_delay > (60 * 60)
          "after #{pluralize(delete_delay / (60 * 60), "hour")}"
        elsif delete_delay > 60
          "after #{pluralize(delete_delay / 60, "minute")}"
        elsif delete_delay > 1
          "after #{pluralize delete_delay, "second"}"
        else
          "immediately"
        end
      %>

	    <%= t(:byline, :scope => [:politwoops, :tweets], :when => tweet_when, :what => source, :delay => delay).html_safe %>
    </div>

    
      <div class="images">
        <% if tweet.tweet_images.any? %>
          <h3>Screenshots of links in this tweet</h3>
          <% tweet.tweet_images.each do |image| %>
            <a href="<%= image.url %>" target="_blank">
              <img src="<%= image.url %>" class="screenshot" />
            </a>
          <% end %>
        <% end %>
      </div>
    

    <div class="clear">
    </div>
  </div>
  <div class="actions">
    <a href="http://twitter.com/share?text=<%= CGI.escape('@' + tweet.user_name + ' ') %>&url=http://politwoops.sunlightfoundation.com/tweet/<%= tweet.id %>&via=SunFoundation" class="reply textReplace" target="_blank"><%=t :reply, :scope => [:politwoops, :tweets] %></a>
    <a href="http://twitter.com/share?text=<%= CGI.escape('RT @' + tweet.user_name + ' ' + tweet.content) %>&url=http://politwoops.sunlightfoundation.com/tweet/<%= tweet.id %>&via=SunFoundation" class="retweet textReplace" target="_blank"><%=t :retweet, :scope => [:politwoops, :tweets] %></a>
  </div>
  <div class="clear">
{'fraction_non_alphanumeric': 0.2171074656846334, 'fraction_numerical': 0.015400066956812855, 'mean_word_length': 2.915465268676278, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 165, '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': '5503182', 'n_tokens_mistral': 2327, 'n_tokens_neox': 2082, 'n_words': 389}