<commit_before><%
if defined?(fact_relation) and fact_relation and not defined?(fact)
  fact = fact_relation.from_fact
end
%>
<article class="fact" data-fact-id="<%= fact.id %>" data-user-opinion="<% if user_signed_in? %><%= current_user.graph_user.opinion_on(fact) %><% end %>">
	<% if defined?(fact_relation) and fact_relation %>
    <!-- <%= fact_relation.type.to_s %> -->
    <%= render :partial => "facts/partial/fact_wheel", :locals => { :fact => fact , :fact_relation => fact_relation }%>
  <% else %>
    <%= render :partial => "facts/partial/fact_wheel", :locals => { :fact => fact }%>
  <% end %>
	<header>
	  
		<% if user_signed_in? %>
	  <% 
	  # options for relevance
	  if defined?(add_to_fact) and add_to_fact %>
      <div class="relevance-options">
        <ul>
          <li><%= link_to('Supporting', add_supporting_evidence_path(add_to_fact.id, fact.id), :remote => true, :class => "button" )%></li>
          <li><%= link_to('Weakening',	add_weakening_evidence_path(add_to_fact.id, fact.id),  :remote => true, :class => "button" )%><li>
  	    </ul>
      </div>
    <% elsif defined?(fact_relation) and fact_relation %>
    <div class="relevance-options">
      <ul>
      <% if fact_relation.type.to_sym == :supporting %> 
        <% if current_user.graph_user.opinion_on(fact_relation) == :beliefs %> 
          <li><%= link_to('Supporting'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button active", :method => "post" )%></li>
          <li><%= link_to('Not supporting'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% elsif current_user.graph_user.opinion_on(fact_relation) == :disbeliefs %>
          <li><%= link_to('Supporting'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button", :method => "post" )%></li>
          <li><%= link_to('Not supporting'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button active", :method => "post" )%><li>
        <% else %>
          <li><%= link_to('Supporting'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button ", :method => "post" )%></li>
          <li><%= link_to('Not supporting'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% end %>
      <% elsif fact_relation.type.to_sym == :weakening %>
        <% if current_user.graph_user.opinion_on(fact_relation) == :beliefs %> 
          <li><%= link_to('Weakening'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button active", :method => "post" )%></li>
          <li><%= link_to('Not weakening'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% elsif current_user.graph_user.opinion_on(fact_relation) == :disbeliefs %>
          <li><%= link_to('Weakening'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button", :method => "post" )%></li>
          <li><%= link_to('Not weakening'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button active", :method => "post" )%><li>
        <% else %>
          <li><%= link_to('Weakening'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button ", :method => "post" )%></li>
          <li><%= link_to('Not Weakening'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% end %>
    <% end %> 
	    </ul>
    </div>
		<% end %>


    <% end %>
	  <% if defined?(fact.site.title) and false # tempororily disabled title because the import does not support it yet %>
		  <span class="head"><%= fact.site.title %></span><br>
		<% end %>
		<span class="body">
		<a href="<%= fact.site.url %>"<% if defined?(modal) and modal %> target="_blank"<% end %>><%= fact.displaystring %></a>
		</span>
		<br>
		<sub>
		   <%= time_ago_in_words(fact.created_at) %> ago by
  		   <%= link_to("#{fact.created_by.user.username} (#{fact.created_by.authority})", user_profile_path(fact.created_by.user.username), :target => "_top") %>
         found on <%= link_to("#{fact.pretty_url}", fact.site.url, :target => "_top") %>
		</sub>
		<% if user_signed_in? %>				
		  <div class="actions">
		    <ul>
			    <li><a href="#" class="add-to-channel"><%= image_tag("bookmark.gif") %>Channels</a></li>
			    <% if fact.created_by == current_user.graph_user %>
			      <li><%= link_to(image_tag('trash.gif') + "Delete", fact_path(fact.id), :confirm => "You will delete this Factlink. Are you sure?", :method => :delete, :remote => true ) %></li>
			    <% end %>			
		    </ul>	
		  </div>
		  <%= render :partial => "/facts/partial/channel_listing", :locals => { :fact => fact } %>
	  <% end %>				

	</header>
</article><commit_msg>No more 'x days ago' :(<commit_after><%
if defined?(fact_relation) and fact_relation and not defined?(fact)
  fact = fact_relation.from_fact
end
%>
<article class="fact" data-fact-id="<%= fact.id %>" data-user-opinion="<% if user_signed_in? %><%= current_user.graph_user.opinion_on(fact) %><% end %>">
	<% if defined?(fact_relation) and fact_relation %>
    <!-- <%= fact_relation.type.to_s %> -->
    <%= render :partial => "facts/partial/fact_wheel", :locals => { :fact => fact , :fact_relation => fact_relation }%>
  <% else %>
    <%= render :partial => "facts/partial/fact_wheel", :locals => { :fact => fact }%>
  <% end %>
	<header>
	  
		<% if user_signed_in? %>
	  <% 
	  # options for relevance
	  if defined?(add_to_fact) and add_to_fact %>
      <div class="relevance-options">
        <ul>
          <li><%= link_to('Supporting', add_supporting_evidence_path(add_to_fact.id, fact.id), :remote => true, :class => "button" )%></li>
          <li><%= link_to('Weakening',	add_weakening_evidence_path(add_to_fact.id, fact.id),  :remote => true, :class => "button" )%><li>
  	    </ul>
      </div>
    <% elsif defined?(fact_relation) and fact_relation %>
    <div class="relevance-options">
      <ul>
      <% if fact_relation.type.to_sym == :supporting %> 
        <% if current_user.graph_user.opinion_on(fact_relation) == :beliefs %> 
          <li><%= link_to('Supporting'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button active", :method => "post" )%></li>
          <li><%= link_to('Not supporting'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% elsif current_user.graph_user.opinion_on(fact_relation) == :disbeliefs %>
          <li><%= link_to('Supporting'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button", :method => "post" )%></li>
          <li><%= link_to('Not supporting'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button active", :method => "post" )%><li>
        <% else %>
          <li><%= link_to('Supporting'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button ", :method => "post" )%></li>
          <li><%= link_to('Not supporting'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% end %>
      <% elsif fact_relation.type.to_sym == :weakening %>
        <% if current_user.graph_user.opinion_on(fact_relation) == :beliefs %> 
          <li><%= link_to('Weakening'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button active", :method => "post" )%></li>
          <li><%= link_to('Not weakening'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% elsif current_user.graph_user.opinion_on(fact_relation) == :disbeliefs %>
          <li><%= link_to('Weakening'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button", :method => "post" )%></li>
          <li><%= link_to('Not weakening'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button active", :method => "post" )%><li>
        <% else %>
          <li><%= link_to('Weakening'.html_safe, set_opinion_path(fact_relation.id,:beliefs), :remote => true, :class => "button ", :method => "post" )%></li>
          <li><%= link_to('Not Weakening'.html_safe,	set_opinion_path(fact_relation.id,:disbeliefs),  :remote => true, :class => "button", :method => "post" )%><li>
        <% end %>
    <% end %> 
	    </ul>
    </div>
		<% end %>


    <% end %>
	  <% if defined?(fact.site.title) and false # tempororily disabled title because the import does not support it yet %>
		  <span class="head"><%= fact.site.title %></span><br>
		<% end %>
		<span class="body">
		<a href="<%= fact.site.url %>"<% if defined?(modal) and modal %> target="_blank"<% end %>><%= fact.displaystring %></a>
		</span>
		<br>
		<sub>
         <%= link_to("#{fact.pretty_url}", fact.site.url, :target => "_top") %>
		</sub>
		<% if user_signed_in? %>				
		  <div class="actions">
		    <ul>
			    <li><a href="#" class="add-to-channel"><%= image_tag("bookmark.gif") %>Channels</a></li>
			    <% if fact.created_by == current_user.graph_user %>
			      <li><%= link_to(image_tag('trash.gif') + "Delete", fact_path(fact.id), :confirm => "You will delete this Factlink. Are you sure?", :method => :delete, :remote => true ) %></li>
			    <% end %>			
		    </ul>	
		  </div>
		  <%= render :partial => "/facts/partial/channel_listing", :locals => { :fact => fact } %>
	  <% end %>				

	</header>
</article>
{'fraction_non_alphanumeric': 0.20870274126159177, 'fraction_numerical': 0.0, 'mean_word_length': 3.829724409448819, 'pattern_counts': {'":': 0, '<': 239, '<?xml version=': 0, '>': 348, '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': '6954333', 'n_tokens_mistral': 3766, 'n_tokens_neox': 3378, 'n_words': 658}