<commit_before>Date.MS_PER_DAY = 1000 * 60 * 60 * 24;

Date.TODAY = new Date();

Date.min = function(a, b) {
    return (a < b) ? a : b;
};

Date.max = function(a, b) {
 return (a > b) ? a : b;
};

Date.fromISOLocalString = function(string) {
    var parts = string.split("-");
    var d = new Date();
    d.setMonth(parseInt(parts[1]) - 1, parseInt(parts[2]));
    d.setYear(parseInt(parts[0]));
    return d;<commit_msg>Set year before month/date to prevent errors<commit_after>Date.MS_PER_DAY = 1000 * 60 * 60 * 24;

Date.TODAY = new Date();

Date.min = function(a, b) {
    return (a < b) ? a : b;
};

Date.max = function(a, b) {
 return (a > b) ? a : b;
};

Date.fromISOLocalString = function(string) {
    var parts = string.split("-");
    var d = new Date();
    d.setYear(parseInt(parts[0]));
    d.setMonth(parseInt(parts[1]) - 1, parseInt(parts[2]));
    return d;
{'fraction_non_alphanumeric': 0.18857142857142858, 'fraction_numerical': 0.032, 'mean_word_length': 3.2524271844660193, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6257437', 'n_tokens_mistral': 355, 'n_tokens_neox': 339, 'n_words': 83}