<commit_before>// document.querySelector('button').addEventListener('click', function() {
//  chrome.extension.sendMessage({action: 'message', content:"Changed by page"}, function(message){});
// });
/*document.querySelector('button').addEventListener('click', function() {
 sendObjectToDevTools({content: "Changed by page"});
 });*/
function sendObjectToDevTools(message) {
    // The callback here can be used to execute something on receipt
    chrome.extension.sendMessage(message, function (message) {
    });
}
function ate_add_invisible_marker(document) {
    var ate_hiddenElements = $("body", document).find(":hidden").not("script");
    for (var ate_hiddenIndex = 0; ate_hiddenIndex < ate_hiddenElements.length; ate_hiddenIndex++) {
        ate_hiddenElements[ate_hiddenIndex].setAttribute("ate-invisible", "yes");
    }
    //some elements might have been mis-marked as hidden by previous screen's js, for example, the new screen's frame was hidden in previous one.
    // need to do double check
    //var ate_hidden_markedElements = $("body", document).find("[ate-invisible='yes']");
    //for (var ate_index = 0; ate_index < ate_hidden_markedElements.length; ate_index ++ ) {
    //    if (!$.inArray(ate_hidden_markedElements[ate_index], ate_hiddenElements)) {<commit_msg>add aria-hidden<commit_after>// document.querySelector('button').addEventListener('click', function() {
//  chrome.extension.sendMessage({action: 'message', content:"Changed by page"}, function(message){});
// });
/*document.querySelector('button').addEventListener('click', function() {
 sendObjectToDevTools({content: "Changed by page"});
 });*/
function sendObjectToDevTools(message) {
    // The callback here can be used to execute something on receipt
    chrome.extension.sendMessage(message, function (message) {
    });
}
function ate_add_invisible_marker(document) {
    var ate_hiddenElements = $("body", document).find(":hidden,[aria-hidden='true']").not("script");
    //var ate_ariaHiddenElements = $("body", document).find("[aria-hidden='true']").not("script");

    for (var ate_hiddenIndex = 0; ate_hiddenIndex < ate_hiddenElements.length; ate_hiddenIndex++) {
        ate_hiddenElements[ate_hiddenIndex].setAttribute("ate-invisible", "yes");
    }
    //some elements might have been mis-marked as hidden by previous screen's js, for example, the new screen's frame was hidden in previous one.
    // need to do double check
    //var ate_hidden_markedElements = $("body", document).find("[ate-invisible='yes']");
    //for (var ate_index = 0; ate_index < ate_hidden_markedElements.length; ate_index ++ ) {
    //    if (!$.inArray(ate_hidden_markedElements[ate_index], ate_hiddenElements)) {
{'fraction_non_alphanumeric': 0.15276232851316277, 'fraction_numerical': 0.0014831294030404152, 'mean_word_length': 5.145785876993166, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 3, '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': '1464374', 'n_tokens_mistral': 760, 'n_tokens_neox': 742, 'n_words': 181}