<commit_before>import { HtmlService, ClipboardService } from './scripts/services';
import { Selectors } from './scripts/constants';
import $ from 'jquery';
import './scripts/contents.js';

// chrome.runtime.onMessage.addListener((request, sender, response) => {
//     if (request.action === 'reload') {
//         console.log('Page content changed. Reloading copy to clipboard.');
//         HtmlService();
//         ClipboardService();
//     }
// });

$(document).ready(() => {
    console.log('Initializing copy to clipboard...');
    HtmlService();
    ClipboardService();
});<commit_msg>Fixed issue where content is not consistently injected to page.<commit_after>import { HtmlService, ClipboardService } from './scripts/services';
import { Selectors } from './scripts/constants';
import $ from 'jquery';
import './scripts/contents.js';

// chrome.runtime.onMessage.addListener((request, sender, response) => {
//     if (request.action === 'reload') {
//         console.log('Page content changed. Reloading copy to clipboard.');
//         HtmlService();
//         ClipboardService();
//     }
// });

$(document).ready(() => {
    console.log('Initializing copy to clipboard... XXX');

    setTimeout(() => {
        HtmlService();
        ClipboardService();
    }, 1000);

});
{'fraction_non_alphanumeric': 0.18076027928626842, 'fraction_numerical': 0.0031031807602792862, 'mean_word_length': 3.147909967845659, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2239329', 'n_tokens_mistral': 363, 'n_tokens_neox': 351, 'n_words': 84}