<commit_before>/* globals Info */

import {markdown} from 'markdown';

require('./sketch');
require('./gui');


function httpGet(url) {
    return new Promise(function(resolve, reject) {
        var request = new XMLHttpRequest();
        request.open('GET', url, true);
        request.onload = function() {
            if (this.status >= 200 && this.status < 400) {
                resolve(this.response);
            } else {
                reject(this.response);
            }
        };
        request.onerror = function() {
            reject(this.response);
        };
        request.send();
    });
}


httpGet('README.md').then(readme => {
    console.log('README', readme);
    new Info({
        html: markdown.toHTML(readme),
        el: 'info',
        container: 'container',
        keyTrigger: true
    });
});
<commit_msg>remove log statement<commit_after>/* globals Info */

import {markdown} from 'markdown';

require('./sketch');
require('./gui');


function httpGet(url) {
    return new Promise(function(resolve, reject) {
        var request = new XMLHttpRequest();
        request.open('GET', url, true);
        request.onload = function() {
            if (this.status >= 200 && this.status < 400) {
                resolve(this.response);
            } else {
                reject(this.response);
            }
        };
        request.onerror = function() {
            reject(this.response);
        };
        request.send();
    });
}


httpGet('README.md').then(readme => {
    new Info({
        html: markdown.toHTML(readme),
        el: 'info',
        container: 'container',
        keyTrigger: true
    });
});

{'fraction_non_alphanumeric': 0.15519323671497584, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 1.9275618374558303, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6734159', 'n_tokens_mistral': 489, 'n_tokens_neox': 464, 'n_words': 98}