<commit_before>// Required modules
var async = require('async');
var validator = require('validator');

// Variables passed from server.js
var client, model, app;


// Helper functions
function get_years()
{
    // Get current year
    var year = new Date().getFullYear();
    var years = [];

    for(var i = year, l = year - 150; i >= l; i--)
    {
        years.push({'value': i, 'text': i});
    }

    return years;
}

function get_months()
{
    var month_list = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'November', 'December'];
    var months = [];

    for(var i = 0, l = month_list.length; i < l; i++)
    {
        months.push({'value': i + 1, 'text': month_list[i]});
    }

    return months;
}

function get_days()
{
    var days = [];

    for(var i = 1; i <= 31; i++)
    {
        days.push({'value': i, 'text': i});
    }

    return days;
}

function check_url(url)
{
    // Trim whitespace
    url = validator.trim(url);<commit_msg>Apparently I forgot october :jack_o_lantern:<commit_after>// Required modules
var async = require('async');
var validator = require('validator');

// Variables passed from server.js
var client, model, app;


// Helper functions
function get_years()
{
    // Get current year
    var year = new Date().getFullYear();
    var years = [];

    for(var i = year, l = year - 150; i >= l; i--)
    {
        years.push({'value': i, 'text': i});
    }

    return years;
}

function get_months()
{
    var month_list = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
    var months = [];

    for(var i = 0, l = month_list.length; i < l; i++)
    {
        months.push({'value': i + 1, 'text': month_list[i]});
    }

    return months;
}

function get_days()
{
    var days = [];

    for(var i = 1; i <= 31; i++)
    {
        days.push({'value': i, 'text': i});
    }

    return days;
}

function check_url(url)
{
    // Trim whitespace
    url = validator.trim(url);
{'fraction_non_alphanumeric': 0.1859666339548577, 'fraction_numerical': 0.007850834151128557, 'mean_word_length': 2.707272727272727, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7453337', 'n_tokens_mistral': 746, 'n_tokens_neox': 689, 'n_words': 202}