<commit_before>var path = require('path');
var config = global['CONFIG'];

var getTimeString = function () {
  var date = new Date();
  return [
    date.getUTCFullYear(),
    date.getUTCMonth() + 1,
    date.getUTCDate(),
  ].join('-') + ' ' + [
    date.getHours(),
    date.getMinutes(),
    date.getSeconds()
  ].join(':');
};

var outputPath = exports.outputPath = path.join(__dirname, '../', config.output);
var tmpPath = exports.tmpPath = path.join(outputPath, './tmp/');
var lastPath = exports.lastPath = path.join(outputPath, './last/');
var diffPath = exports.diffPath = path.join(outputPath, './diff/');

var getTmpFilePath = function (siteUrl, size) {
  var sizeString = size && size.width && size.height ? '(' + size.width + 'x' + size.height + ')' : '';
  var filename = siteUrl.replace(/^\w+:\/\//, '').replace(/\//g, '-') + sizeString + '.png';
  return path.join(tmpPath, filename);
};

exports.getTimeString = getTimeString;
exports.getTmpFilePath = getTmpFilePath;<commit_msg>add the first version<commit_after>var path = require('path');
var config = global['CONFIG'];

var getTimeString = function () {
  var date = new Date();
  return [
    date.getUTCFullYear(),
    date.getUTCMonth() + 1,
    date.getUTCDate(),
  ].join('-') + ' ' + [
    date.getHours(),
    date.getMinutes(),
    date.getSeconds()
  ].join(':');
};

var outputPath = exports.outputPath = path.join(config.output);
var tmpPath = exports.tmpPath = path.join(outputPath, './tmp/');
var lastPath = exports.lastPath = path.join(outputPath, './last/');
var diffPath = exports.diffPath = path.join(outputPath, './diff/');

var getTmpFilePath = function (siteUrl, size) {
  var sizeString = size && size.width && size.height ? '(' + size.width + 'x' + size.height + ')' : '';
  var filename = siteUrl.replace(/^\w+:\/\//, '').replace(/\//g, '-') + sizeString + '.png';
  return path.join(tmpPath, filename);
};

exports.getTimeString = getTimeString;
exports.getTmpFilePath = getTmpFilePath;
{'fraction_non_alphanumeric': 0.2005050505050505, 'fraction_numerical': 0.00101010101010101, 'mean_word_length': 3.8199513381995134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2826457', 'n_tokens_mistral': 658, 'n_tokens_neox': 660, 'n_words': 139}