<commit_before>mirror('/github-activity').then((response) => {
    const projects = $('.projects');
    response.forEach((project) => {
        const projectTemplate = $('template#project').innerHTML;
        const rendered = element(template(projectTemplate, project));
        projects.appendChild(rendered);
    });
});

function $(selector, context = document) {
    return context.querySelector(selector);
}<commit_msg>use ifm module when fetching data<commit_after>ifm.mirror('/github-activity').then((response) => {
    const projects = $('.projects');
    response.forEach((project) => {
        const projectTemplate = $('template#project').innerHTML;
        const rendered = element(template(projectTemplate, project));
        projects.appendChild(rendered);
    });
});

function $(selector, context = document) {
    return context.querySelector(selector);
}
{'fraction_non_alphanumeric': 0.15711009174311927, 'fraction_numerical': 0.0, 'mean_word_length': 4.290909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6314367', 'n_tokens_mistral': 219, 'n_tokens_neox': 213, 'n_words': 43}