<commit_before>'use strict';

chrome.runtime.sendMessage({ action: "show" });

//chrome.runtime.sendMessage({ action: 'report' });

function reportTweet(post){
	console.log(post);
	
	    	$.ajax({
            url: 'https://coalio.metacogni.tv/api/tagged_post/?format=json&username=schart%40gmail.com&api_key=b6c56543a805dca901829d834554e987ab15bdce',
            type: 'POST',
            dataType: 'json',
            contentType:"application/json",
            success: function (data) {
                console.log(data);
            },
            error:function(  jqXHR,  textStatus,  errorThrown ){
            	console.log(jqXHR);
            	console.log(textStatus);
            	console.log(errorThrown)
            },
            data: JSON.stringify(post)
        });

}

$(function () {

    //Code for displaying <extensionDir>/images/myimage.png:
	var imgURL = chrome.extension.getURL("images/no_icon.gif");
	var imgLink = "<img class='CoalioNo_Icon' src='" + imgURL + "' alt='no'>";
 
    $(".UFILikeLink").after(imgLink);
    $(".lea").after(imgLink);
	$('.js-stream-item').each(function(){
		var tweetobj = $(this).find("div.tweet")[0];
		var tweetAuthor = $(tweetobj).attr('data-screen-name');
		var tweetID = $(this).attr('data-item-id');<commit_msg>redirect<commit_after>'use strict';

chrome.runtime.sendMessage({ action: "show" });

//chrome.runtime.sendMessage({ action: 'report' });

function reportTweet(post){
	console.log(post);
	
	    	$.ajax({
            url: 'http://coalio.metacogni.tv/api/tagged_post/?format=json&username=schart%40gmail.com&api_key=b6c56543a805dca901829d834554e987ab15bdce',
            type: 'POST',
            dataType: 'json',
            contentType:"application/json",
            success: function (XMLHttpRequest, textStatus) {
    			var headers = XMLHttpRequest.getAllResponseHeaders();
    			//console.log(headers);
            },
            complete: function(  jqXHR,  textStatus,  errorThrown ){
            	var headers = jqXHR.getAllResponseHeaders();
            	headers = headers.split("\n");
            	var gourl = null;
            	headers.forEach(function(h) {
            		//console.log(h);
            		//console.log(h.search("Location:"));
    				if(h.search("Location:") > -1 && gourl == null)
    				{

    					gourl = h.replace("Location: ", "");
    				}
				});
				gourl = gourl.replace("api/tagged_post", "taggedposts");
				console.log(gourl);
				if(gourl != null)
				{

					  var win=window.open(gourl, '_blank');
  						win.focus();
				}
					///chrome.tabs.create({ url: gourl });
            },
            data: JSON.stringify(post)
        });

}

$(function () {

    //Code for displaying <extensionDir>/images/myimage.png:
	var imgURL = chrome.extension.getURL("images/no_icon.gif");
	var imgLink = "<img class='CoalioNo_Icon' src='" + imgURL + "' alt='no'>";
 
    $(".UFILikeLink").after(imgLink);
    $(".lea").after(imgLink);
	$('.js-stream-item').each(function(){
		var tweetobj = $(this).find("div.tweet")[0];
		var tweetAuthor = $(tweetobj).attr('data-screen-name');
		var tweetID = $(this).attr('data-item-id');
{'fraction_non_alphanumeric': 0.17609459891339085, 'fraction_numerical': 0.018855864493448386, 'mean_word_length': 2.622685185185185, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '5384945', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1032, 'n_words': 149}