<commit_before>var clean = false;
if($('td.payout-table-cell-left')[1].innerText.indexOf("Cleaning Fees") > -1) {
        clean = true; 
}

var checkInDate = eval($('div.col-3').children('span')[0]).innerText
var checkInMonthYear = ((new Date(checkInDate)).getMonth() + 1) + "" + ((new Date(checkInDate)).getYear() + 1900);
var checkOutDate = eval($('div.col-3').children('span')[2]).innerText
var regExNumberAtStart = new RegExp("\\d+");
var nights = regExNumberAtStart.exec(eval($('div.col-4.hide-overflow').children('span')[0]).innerText);
var guests = regExNumberAtStart.exec(eval($('div.cotraveler-section-header.space-2.hide-overflow')[0]).innerText);

var regExPrice = new RegExp("\\$[0-9]+");
var nightlyPayout = regExPrice.exec($('td.payout-table-cell-left')[0].innerHTML);

var payout = regExPrice.exec($('td.payout-table-cell-right')[0].innerHTML);
if(clean) {
    var cleaningFee = regExPrice.exec($('td.payout-table-cell-right')[1].innerText);
    var creditCardFee = regExPrice.exec($('td.payout-table-cell-right')[2].innerHTML);
    var totalPayout = regExPrice.exec($('td.payout-table-cell-right')[3].innerHTML);
} else {
    var cleaningFee = 0;
    var creditCardFee = regExPrice.exec($('td.payout-table-cell-right')[2].innerHTML);
    var totalPayout = regExPrice.exec($('td.payout-table-cell-right')[3].innerHTML);
}

try {
    var securityDeposit = $('.receipt td')[0].innerText;
} catch(err) {
    securityDeposit = 0;
}
var property = $('div.col-5.hide-overflow')[0].innerText.replace(/\n/g, " ");
var regExGuestName = new RegExp("(.*)\\n");
var guestName = regExGuestName.exec($('div.space-top-sm-4.space-top-lg-4')[0].innerText)[1];
var confirmationCode = eval($('div.col-9.text-center-on-sm').children('span')[2]).innerText;
var regExPhone = new RegExp("(\\+(.\+\\d\\d\\d\\d))");
var phoneNumber = "";<commit_msg>They got rid of check in/out year.  This fixes that by using current year.  Will not work if reservation is for a different year.<commit_after>var clean = false;
if($('td.payout-table-cell-left')[1].innerText.indexOf("Cleaning Fees") > -1) {
        clean = true; 
}
//TODO: Bug waiting to happen, uses computer current year, but what if booking in December for January of next year?
var checkInDate = eval($('div.col-3').children('span')[0]).innerText + ", " + new Date().getFullYear();
var checkInMonthYear = ((new Date(checkInDate)).getMonth() + 1) + "" + ((new Date(checkInDate)).getYear() + 1900);
var checkOutDate = eval($('div.col-3').children('span')[2]).innerText + ", " + new Date().getFullYear();
var regExNumberAtStart = new RegExp("\\d+");
var nights = regExNumberAtStart.exec(eval($('div.col-4.hide-overflow').children('span')[0]).innerText);
var guests = regExNumberAtStart.exec(eval($('div.cotraveler-section-header.space-2.hide-overflow')[0]).innerText);

var regExPrice = new RegExp("\\$[0-9]+");
var nightlyPayout = regExPrice.exec($('td.payout-table-cell-left')[0].innerHTML);

var payout = regExPrice.exec($('td.payout-table-cell-right')[0].innerHTML);
if(clean) {
    var cleaningFee = regExPrice.exec($('td.payout-table-cell-right')[1].innerText);
    var creditCardFee = regExPrice.exec($('td.payout-table-cell-right')[2].innerHTML);
    var totalPayout = regExPrice.exec($('td.payout-table-cell-right')[3].innerHTML);
} else {
    var cleaningFee = 0;
    var creditCardFee = regExPrice.exec($('td.payout-table-cell-right')[2].innerHTML);
    var totalPayout = regExPrice.exec($('td.payout-table-cell-right')[3].innerHTML);
}

try {
    var securityDeposit = $('.receipt td')[0].innerText;
} catch(err) {
    securityDeposit = 0;
}
var property = $('div.col-5.hide-overflow')[0].innerText.replace(/\n/g, " ");
var regExGuestName = new RegExp("(.*)\\n");
var guestName = regExGuestName.exec($('div.space-top-sm-4.space-top-lg-4')[0].innerText)[1];
var confirmationCode = eval($('div.col-9.text-center-on-sm').children('span')[2]).innerText;
var regExPhone = new RegExp("(\\+(.\+\\d\\d\\d\\d))");
var phoneNumber = "";
{'fraction_non_alphanumeric': 0.21658291457286433, 'fraction_numerical': 0.017587939698492462, 'mean_word_length': 4.968515742128935, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1002767', 'n_tokens_mistral': 1456, 'n_tokens_neox': 1419, 'n_words': 225}