<commit_before>var from;
var table;
var monthOffset = 0;

$(document).ready(function(){
    $("#previousMonth").click(function(){
        monthOffset--;
        refresh();
    });
    $("#nextMonth").click(function(){
        monthOffset++;
        refresh();
    });
    table = $("#booking-overview");
    refresh();
});

function refresh(){
    table.empty();
    // Get current month
    var from = moment(new Date()).startOf('month');
    from.add(monthOffset, 'month');
    var to = moment(from).endOf('month');

    $("#month").text(from.format('MMMM'));

    var fromString = from.toISOString().slice(0,10);
    var toString = to.toISOString().slice(0,10);

    var url = "/api/availability/all/" + fromString + "/" + toString;<commit_msg>Fixed first day <commit_after>var from;
var table;
var monthOffset = 0;

$(document).ready(function(){
    $("#previousMonth").click(function(){
        monthOffset--;
        refresh();
    });
    $("#nextMonth").click(function(){
        monthOffset++;
        refresh();
    });
    table = $("#booking-overview");
    refresh();
});

function refresh(){
    table.empty();
    // Get current month
    var from = moment(new Date()).startOf('month');
    from.add(monthOffset, 'month');
    from.add(1, 'hour');
    var to = moment(from).endOf('month');

    $("#month").text(from.format('MMMM'));

    var fromString = from.toISOString().slice(0,10);
    var toString = to.toISOString().slice(0,10);

    var url = "/api/availability/all/" + fromString + "/" + toString;
{'fraction_non_alphanumeric': 0.20565045992115638, 'fraction_numerical': 0.00985545335085414, 'mean_word_length': 3.1498637602179835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '363579', 'n_tokens_mistral': 466, 'n_tokens_neox': 460, 'n_words': 92}