<commit_before>var readline = require('readline');
var chalk = require('chalk');

function extractPhoneNumber(phoneString) {
    return phoneString.split('@')[0];
}

function timeLeftMin(time) {
    var timeLeft = Math.ceil((time - new Date()) / 1000 / 60);
    if (timeLeft < 0) {
        return "N.A.";
    } else {
        return timeLeft + ' min';
    }
}

function currentTimeGreeting() {
    var hours = new Date().getHours();
    if (hours < 12) {
        return "morning";
    } else if (hours >= 12 && hours < 18) {
        return "afternoon";
    } else if (hours >= 18) {
        return "evening";
    } else {
        return "";
    }
}

function formatDate(date) {
    return date.toDateString().substr(0, 3) + ', ' + date.toDateString().substr(4, 6);
}

function formatTime(date) {
    var median = (date.getHours() < 12) ? "AM" : "PM";
    return (formatDigit(date.getHours() % 12)) + ":" + formatDigit(date.getMinutes()) + " " + median;
}

function formatDigit(n) {
    return n > 9 ? "" + n : "0" + n;
}<commit_msg>fixed util.js file<commit_after>var readline = require('readline');
var chalk = require('chalk');

function extractPhoneNumber(phoneString) {
    return phoneString.split('@')[0];
}

function timeLeftMin(time) {
    var timeLeft = Math.ceil((time - new Date()) / 1000 / 60);
    if (timeLeft < 0) {
        return "N.A.";
    } else {
        return timeLeft + ' min';
    }
}

function currentTimeGreeting() {
    var hours = new Date().getHours();
    if (hours < 12) {
        return "morning";
    } else if (hours >= 12 && hours < 18) {
        return "afternoon";
    } else if (hours >= 18) {
        return "evening";
    } else {
        return "";
    }
}

function formatDate(date) {
    return date.toDateString().substr(0, 3) + ', ' + date.toDateString().substr(4, 6);
}

function formatTime(date) {
    var median = (date.getHours() < 12) ? "AM" : "PM";
    return (formatDigit(date.getHours() % 12)) + ":" + formatDigit(date.getMinutes()) + " " + median;
}

function formatDigit(n) {
    return n > 9 ? "" + n : n;
}
{'fraction_non_alphanumeric': 0.17741153659718856, 'fraction_numerical': 0.024721279689772176, 'mean_word_length': 2.7664233576642334, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 9, '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': '577333', 'n_tokens_mistral': 757, 'n_tokens_neox': 703, 'n_words': 167}