<commit_before>// downloads the latest version of libwabt.js from the WABT project

const fs = require("fs");
const https = require("https");
const path = require("path");

const URL = "https://raw.githubusercontent.com/WebAssembly/wabt/master/demo/libwabt.js";
const filePath = path.resolve(__dirname, "..", "src", "libwabt.js");
const fileStream = fs.createWriteStream(filePath);

https.get(URL, (res) => {
    res.on('data', (d) => {
        fileStream.write(d);
    }).on("end", () => {
        fileStream.end();
        console.log("Downloaded libwabt.js to src dir")
    });
}).on('error', (e) => {
    console.error("Unable to download libwabt.js", e);
});
<commit_msg>fix: update location of libwabt<commit_after>// downloads the latest version of libwabt.js from the WABT project

const fs = require("fs");
const https = require("https");
const path = require("path");

const URL = "https://raw.githubusercontent.com/WebAssembly/wabt/master/docs/demo/libwabt.js";
const filePath = path.resolve(__dirname, "..", "src", "libwabt.js");
const fileStream = fs.createWriteStream(filePath);

https.get(URL, (res) => {
    res.on('data', (d) => {
        fileStream.write(d);
    }).on("end", () => {
        fileStream.end();
        console.log("Downloaded libwabt.js to src dir")
    });
}).on('error', (e) => {
    console.error("Unable to download libwabt.js", e);
});

{'fraction_non_alphanumeric': 0.192, 'fraction_numerical': 0.0, 'mean_word_length': 3.8450704225352115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2447308', 'n_tokens_mistral': 471, 'n_tokens_neox': 466, 'n_words': 104}