<commit_before>chrome.extension.onRequest.addListener(
    function(request, sender, sendResponse) {
    // LOG THE CONTENTS HERE

    // console.log(request.content);
    // var links = request.content.document.getElementsByTagName("a");
    // for(var i=0;i<links.length;i++)
    // {
    //     if(links[i].href)
    //     {
    //         links[i].style.color = hex;  
    //     }
    // }
    console.log(sendResponse);    
  });


<<<<<<< HEAD

// chrome.tabs.getSelected(null, function(tab) {

//   // Now inject a script onto the page
//   chrome.tabs.executeScript(tab.id, {
//        code: "chrome.extension.sendRequest({content: document.body.innerHTML}, function(response) { console.log('success'); });"
//      }, function() { console.log('done'); });

// });

// Now inject a script onto the page
chrome.tabs.executeScript(tab.id, {
   code: "chrome.extension.sendRequest({content: document.body.innerHTML}, function(response) { console.log('success'); });"
 }, function() { console.log('done'); });


// Checking page title
if (document.title.indexOf("Google") != -1) {
    //Creating Elements
    var btn = document.createElement("BUTTON")
    var t = document.createTextNode("CLICK ME");
    btn.appendChild(t);
    //Appending to DOM 
    document.body.appendChild(btn);
}
=======
>>>>>>> long<commit_msg>error in background.js<commit_after>chrome.extension.onRequest.addListener(
    function(request, sender, sendResponse) {
    // LOG THE CONTENTS HERE

    // console.log(request.content);
    // var links = request.content.document.getElementsByTagName("a");
    // for(var i=0;i<links.length;i++)
    // {
    //     if(links[i].href)
    //     {
    //         links[i].style.color = hex;  
    //     }
    // }
    console.log(sendResponse);    
  });

// chrome.tabs.getSelected(null, function(tab) {

//   // Now inject a script onto the page
//   chrome.tabs.executeScript(tab.id, {
//        code: "chrome.extension.sendRequest({content: document.body.innerHTML}, function(response) { console.log('success'); });"
//      }, function() { console.log('done'); });

// });

// Now inject a script onto the page
chrome.tabs.executeScript(tab.id, {
   code: "chrome.extension.sendRequest({content: document.body.innerHTML}, function(response) { console.log('success'); });"
 }, function() { console.log('done'); });


// Checking page title
if (document.title.indexOf("Google") != -1) {
    //Creating Elements
    var btn = document.createElement("BUTTON")
    var t = document.createTextNode("CLICK ME");
    btn.appendChild(t);
    //Appending to DOM 
    document.body.appendChild(btn);
}
{'fraction_non_alphanumeric': 0.18528402592451393, 'fraction_numerical': 0.0015249714067861228, 'mean_word_length': 2.957767722473605, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 10, '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': '5505991', 'n_tokens_mistral': 821, 'n_tokens_neox': 799, 'n_words': 143}