<commit_before>const gulp = require('gulp');
const axios = require('axios');
const fs = require('fs');
const del = require('del');
const path = require('path');
const version = require('./package.json').version;

const nodejsLink86 = 'https://nodejs.org/download/release/v14.19.3/node-v14.19.3-x86.msi';
const nodejsLink64 = 'https://nodejs.org/download/release/v14.19.3/node-v14.19.3-x64.msi';

function download(url, file) {
    const directoryName = path.dirname(file);
    if (!fs.existsSync(directoryName)) {
        fs.mkdirSync(directoryName);
    }

    return axios(url, {responseType: 'arraybuffer'})
        .then(response => fs.writeFileSync(file, response.data));
}

gulp.task('0-clean', () => del(['tmp/**/*', 'build/.windows-ready/**/*', 'delivery/**/*']));
gulp.task('1-nodex86', () => download(nodejsLink86, __dirname + '/build/windows/nodejs/node.msi'));
gulp.task('2-nodex64', () => download(nodejsLink64, __dirname + '/build/windows/nodejs/node-x64.msi'));
gulp.task('3-0-replaceWindowsVersion', async () => {
    await checkFiles(['build/windows/nodejs/node.msi', 'build/windows/nodejs/node-x64.msi']);

    !fs.existsSync(__dirname + '/build/.windows-ready') && fs.mkdirSync(__dirname + '/build/.windows-ready');

    let iss = fs.readFileSync(__dirname + '/build/windows/ioBroker.iss').toString('utf8');
    iss = iss.replace('@@version', version)
    fs.writeFileSync(__dirname + '/build/.windows-ready/ioBroker.iss', iss);

    fs.writeFileSync(`${__dirname}/build/.windows-ready/createSetup.bat`, `"${__dirname}/build/windows/InnoSetup6/ISCC.exe" "${__dirname}/build/.windows-ready/ioBroker.iss"`);
});<commit_msg>Change node.js to 16<commit_after>const gulp = require('gulp');
const axios = require('axios');
const fs = require('fs');
const del = require('del');
const path = require('path');
const version = require('./package.json').version;

const nodejsLink86 = 'https://nodejs.org/download/release/v16.15.1/node-v16.15.1-x86.msi';
const nodejsLink64 = 'https://nodejs.org/download/release/v16.15.1/node-v16.15.1-x64.msi';

function download(url, file) {
    const directoryName = path.dirname(file);
    if (!fs.existsSync(directoryName)) {
        fs.mkdirSync(directoryName);
    }

    return axios(url, {responseType: 'arraybuffer'})
        .then(response => fs.writeFileSync(file, response.data));
}

gulp.task('0-clean', () => del(['tmp/**/*', 'build/.windows-ready/**/*', 'delivery/**/*']));
gulp.task('1-nodex86', () => download(nodejsLink86, __dirname + '/build/windows/nodejs/node.msi'));
gulp.task('2-nodex64', () => download(nodejsLink64, __dirname + '/build/windows/nodejs/node-x64.msi'));
gulp.task('3-0-replaceWindowsVersion', async () => {
    await checkFiles(['build/windows/nodejs/node.msi', 'build/windows/nodejs/node-x64.msi']);

    !fs.existsSync(__dirname + '/build/.windows-ready') && fs.mkdirSync(__dirname + '/build/.windows-ready');

    let iss = fs.readFileSync(__dirname + '/build/windows/ioBroker.iss').toString('utf8');
    iss = iss.replace('@@version', version)
    fs.writeFileSync(__dirname + '/build/.windows-ready/ioBroker.iss', iss);

    fs.writeFileSync(`${__dirname}/build/.windows-ready/createSetup.bat`, `"${__dirname}/build/windows/InnoSetup6/ISCC.exe" "${__dirname}/build/.windows-ready/ioBroker.iss"`);
});
{'fraction_non_alphanumeric': 0.21204745968968663, 'fraction_numerical': 0.029205962884088835, 'mean_word_length': 4.678756476683938, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2296929', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1121, 'n_words': 151}