<commit_before>namespace YJMCNT {
    /**
     * CounterView
     */
    export class CounterView extends Core.View {
        counter:Counter;
        
        constructor() {
            super();
            this.counter = new Counter();
            this.counter.addObserver(this);
        }
        render() {
            var counter = document.createElement("div");
            var countView = document.createElement("span");
            countView.classList.add("count");
            countView.innerText = "count: "+this.counter.show().toString();
            
            var countUpButton:HTMLButtonElement = document.createElement("button");
            countUpButton.innerHTML = "Up";
            countUpButton.classList.add("countUp");
            
            counter.appendChild(countView);
            counter.appendChild(countUpButton);
            return counter;
        }
        update() {
            this.notifyObservers();
        }
    }
}<commit_msg>Add count down button (not work)<commit_after>namespace YJMCNT {
    /**
     * CounterView
     */
    export class CounterView extends Core.View {
        counter:Counter;
        
        constructor() {
            super();
            this.counter = new Counter();
            this.counter.addObserver(this);
        }
        render() {
            var counter = document.createElement("div");
            var countView = document.createElement("span");
            countView.classList.add("count");
            countView.innerText = "count: "+this.counter.show().toString();
            
            var countUpButton:HTMLButtonElement = document.createElement("button");
            countUpButton.innerHTML = "Up";
            countUpButton.classList.add("countUp");
            
            var countDownButton:HTMLButtonElement = document.createElement("button");
            countDownButton.innerHTML = "Down";
            countDownButton.classList.add("countDown");
            
            counter.appendChild(countView);
            counter.appendChild(countUpButton);
            counter.appendChild(countDownButton);
            return counter;
        }
        update() {
            this.notifyObservers();
        }
    }
}
{'fraction_non_alphanumeric': 0.1102077687443541, 'fraction_numerical': 0.0, 'mean_word_length': 1.7791718946047679, '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': '2094878', 'n_tokens_mistral': 523, 'n_tokens_neox': 521, 'n_words': 88}