<commit_before>// Hide the empty list notification
var no_fact_message = $("div#fl-evidence > div#fl-sources li#fl-no-evidence");
if (no_fact_message.length > 0) {
	no_fact_message.remove();
}



/** This is new */
$('#fl-add-evidence').fadeOut();

$('div#fl-evidence > div#fl-sources > ol').prepend("<%= escape_javascript(render(:partial => 'facts/partial/source_as_li', :locals => { :fact_relation => @fact_relation } )) %>");

// Hide the evidence from potential evidence.
el = $("li#fl-source-<%= @fact_relation.get_from_fact.id %>").hide();<commit_msg>Workaround for js bug; opinion/relevance popup is not working when li element is added with javascript : reload page'<commit_after>// Hide the empty list notification
var no_fact_message = $("div#fl-evidence > div#fl-sources li#fl-no-evidence");
if (no_fact_message.length > 0) {
	no_fact_message.remove();
}



/** This is new */


// Hide the popup
$('#fl-add-evidence').fadeOut();

// Add the element
$('div#fl-evidence > div#fl-sources > ol').prepend("<%= escape_javascript(render(:partial => 'facts/partial/source_as_li', :locals => { :fact_relation => @fact_relation } )) %>");

// Hide the evidence from potential evidence.
el = $("li#fl-source-<%= @fact_relation.get_from_fact.id %>").hide();


// Workaround: opinion popup is not working when adding the element
// So reload the page.
window.location.reload( false );
{'fraction_non_alphanumeric': 0.17859725234996385, 'fraction_numerical': 0.0014461315979754157, 'mean_word_length': 4.914529914529915, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '6691', 'n_tokens_mistral': 478, 'n_tokens_neox': 438, 'n_words': 112}