<commit_before>var ghpages = require('gh-pages');
var fs = require('fs');
var path = require('path');

function copyFolder(source, target) {
  try {
    fs.mkdirSync(target)
  } catch (e) {
    if (e.code != "EEXIST") throw e;
  }

  files = fs.readdirSync(source);
  files.forEach(function (file) {
    var srcFile = path.join(source, file);
    var tgtFile = path.join(target, file);
    console.log("Copying " + srcFile + " to " + tgtFile)
    fs.createReadStream(srcFile)
      .pipe(fs.createWriteStream(tgtFile));
  } );
}
copyFolder("lib", "assets/lib");
ghpages.publish('./assets', console.error.bind(console));<commit_msg>Tweak deploy script output<commit_after>var ghpages = require('gh-pages');
var fs = require('fs');
var path = require('path');

function copyFolder(source, target) {
  try {
    fs.mkdirSync(target)
  } catch (e) {
    if (e.code != "EEXIST") throw e;
  }

  files = fs.readdirSync(source);
  files.forEach(function (file) {
    var srcFile = path.join(source, file);
    var tgtFile = path.join(target, file);
    console.log("Copying " + srcFile + " to " + tgtFile)
    fs.createReadStream(srcFile)
      .pipe(fs.createWriteStream(tgtFile));
  } );
}
copyFolder("stdlib", "assets/lib");
ghpages.publish('./assets', err => {if (err) console.error(err) else console.log('Published successfully')});
{'fraction_non_alphanumeric': 0.17443609022556392, 'fraction_numerical': 0.0, 'mean_word_length': 4.099616858237548, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5738170', 'n_tokens_mistral': 461, 'n_tokens_neox': 453, 'n_words': 94}