<commit_before>function CustomDateComponent() {
}

CustomDateComponent.prototype.init = function (params) {
    var template = 
        "<input type='text' data-input />" +
        "<a class='input-button' title='clear' data-clear>" +
            "<i class='fa fa-times'></i>" +
        "</a>";

    this.params = params;

    var eGui = this.eGui;
    eGui = document.createElement('div');
    eGui.setAttribute('role', 'presentation');
    eGui.classList.add('ag-input-wrapper');
    eGui.classList.add('custom-date-filter');
    eGui.innerHTML = template;
    this.eInput = this.eGui.querySelector('input');

    this.picker = flatpickr(this.eGui, {
        onChange: this.onDateChanged.bind(this),
        dateFormat: 'd/m/Y',
        wrap: true
    });

    this.picker.calendarContainer.classList.add('ag-custom-component-popup');

    this.date = null;
};

CustomDateComponent.prototype.getGui = function () {
    return this.eGui;
};

CustomDateComponent.prototype.onDateChanged = function (selectedDates) {
    this.date = selectedDates[0] || null;
    this.params.onDateChanged();
};

CustomDateComponent.prototype.getDate = function () {
    return this.date;
};
<commit_msg>AG-2478 - fixed CustomDateComponent wrong variable assignment<commit_after>function CustomDateComponent() {
}

CustomDateComponent.prototype.init = function (params) {
    var template = 
        "<input type='text' data-input />" +
        "<a class='input-button' title='clear' data-clear>" +
            "<i class='fa fa-times'></i>" +
        "</a>";

    this.params = params;

    this.eGui = document.createElement('div');

    var eGui = this.eGui;

    eGui.setAttribute('role', 'presentation');
    eGui.classList.add('ag-input-wrapper');
    eGui.classList.add('custom-date-filter');
    eGui.innerHTML = template;

    this.eInput = eGui.querySelector('input');

    this.picker = flatpickr(this.eGui, {
        onChange: this.onDateChanged.bind(this),
        dateFormat: 'd/m/Y',
        wrap: true
    });

    this.picker.calendarContainer.classList.add('ag-custom-component-popup');

    this.date = null;
};

CustomDateComponent.prototype.getGui = function () {
    return this.eGui;
};

CustomDateComponent.prototype.onDateChanged = function (selectedDates) {
    this.date = selectedDates[0] || null;
    this.params.onDateChanged();
};

CustomDateComponent.prototype.getDate = function () {
    return this.date;
};

{'fraction_non_alphanumeric': 0.1543541064795708, 'fraction_numerical': 0.0024762690879075525, 'mean_word_length': 3.2526315789473683, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6894552', 'n_tokens_mistral': 753, 'n_tokens_neox': 751, 'n_words': 123}