<commit_before>'use strict';

const fs = require('fs');

const portIndex = 2;

let port = '';

process.argv.forEach((val, index, array) => {
    if (index === portIndex)
        port = val;
});

let indexHtml = fs.readFileSync('./public/index.html', 'utf-8');

const searchString = 'var PORT';
const jumpLength = searchString.length;
const endIndex = indexHtml.indexOf(searchString)+jumpLength;

let newIndexHtml = `${indexHtml.slice(0, endIndex)} = "${port}"${indexHtml.slice(endIndex+9)}`;<commit_msg>Port index dir change<commit_after>'use strict';

const fs = require('fs');

const portIndex = 2;

let port = '';

process.argv.forEach((val, index, array) => {
    if (index === portIndex)
        port = val;
});

let indexHtml = fs.readFileSync('./index.html', 'utf-8');

const searchString = 'var PORT';
const jumpLength = searchString.length;
const endIndex = indexHtml.indexOf(searchString)+jumpLength;

let newIndexHtml = `${indexHtml.slice(0, endIndex)} = "${port}"${indexHtml.slice(endIndex+9)}`;
{'fraction_non_alphanumeric': 0.17775571002979146, 'fraction_numerical': 0.007944389275074478, 'mean_word_length': 5.0359281437125745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2023811', 'n_tokens_mistral': 328, 'n_tokens_neox': 324, 'n_words': 76}