<commit_before>import { inject } from 'aurelia-framework';
import { Router } from 'aurelia-router';
import { HolidayService } from '~/services/holiday-service';

@inject(HolidayService, Router)
export class EditHoliday {
    pickerOptions = {
        calendarWeeks: true,
        showTodayButton: true,
        showClose: true,
        daysOfWeekDisabled: [0, 6], // we disable saturday & sunday
        format: 'YYYY-MM-DD',
        widgetPositioning: {
            horizontal: 'left'
        }
    };

    constructor(_holiday, router) {
        this._holiday = _holiday;
        this.router = router;
    }

    async activate(params) {
        console.log('the params', params)
        const holiday = await this._holiday.getHoliday(params.holidayId);
        this.holiday = holiday;
    }

    get canSave() {
        return this.holiday
            && this.holiday.name !== ''
            && this.holiday.description !== ''
            && this.holiday.date !== '';
    }<commit_msg>removed console.log<commit_after>import { inject } from 'aurelia-framework';
import { Router } from 'aurelia-router';
import { HolidayService } from '~/services/holiday-service';

@inject(HolidayService, Router)
export class EditHoliday {
    pickerOptions = {
        calendarWeeks: true,
        showTodayButton: true,
        showClose: true,
        daysOfWeekDisabled: [0, 6], // we disable saturday & sunday
        format: 'YYYY-MM-DD',
        widgetPositioning: {
            horizontal: 'left'
        }
    };

    constructor(_holiday, router) {
        this._holiday = _holiday;
        this.router = router;
    }

    async activate(params) {
        const holiday = await this._holiday.getHoliday(params.holidayId);
        this.holiday = holiday;
    }

    get canSave() {
        return this.holiday
            && this.holiday.name !== ''
            && this.holiday.description !== ''
            && this.holiday.date !== '';
    }
{'fraction_non_alphanumeric': 0.12422680412371134, 'fraction_numerical': 0.002061855670103093, 'mean_word_length': 2.251256281407035, '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': '5041077', 'n_tokens_mistral': 581, 'n_tokens_neox': 560, 'n_words': 118}