<commit_before>/*
 * Author: <NAME>
 */

function validateAmount() {
    var value = document.forms['editEntryForm']['amount'].value;

    if (!value.match('^\\s*[\\-]?\\d+([\.,]\\d\\d?)?\\s*$'))
    {
        $('#amountNote').text('Der Betrag muss eine Dezimalzahl sein!');
        return false;
    }
    else {
        $('#amountNote').text('');
        return true;
    }
}

function validateDate() {
    var value = document.forms['editEntryForm']['date'].value;

    if (!value.match('^\\d\\d\.\\d\\d.\\d\\d\\d\\d$'))
    {
        $('#dateNote').text('Das Datum in folgendem Format eingeben: 01.04.2013');
        return false;<commit_msg>More lenient date format checking<commit_after>/*
 * Author: <NAME>
 */

function validateAmount() {
    var value = document.forms['editEntryForm']['amount'].value;

    if (!value.match('^\\s*[\\-]?\\d+([\.,]\\d\\d?)?\\s*$'))
    {
        $('#amountNote').text('Der Betrag muss eine Dezimalzahl sein!');
        return false;
    }
    else {
        $('#amountNote').text('');
        return true;
    }
}

function validateDate() {
    var value = document.forms['editEntryForm']['date'].value;

    if (!value.match('^\\d?\\d\.\\d?\\d.\\d\\d\\d\\d$'))
    {
        $('#dateNote').text('Das Datum in folgendem Format eingeben: 01.04.2013');
        return false;
{'fraction_non_alphanumeric': 0.2404870624048706, 'fraction_numerical': 0.0121765601217656, 'mean_word_length': 2.4880636604774535, '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': '7283478', 'n_tokens_mistral': 462, 'n_tokens_neox': 450, 'n_words': 79}