<commit_before>namespace YJMCNT.Core {
    /**
     * Model
     */
    export class Model implements Subject{
        observerList:Core.Observer[]; 

        constructor() {
            this.observerList = [];
        }
        
        addObserver(observer:Observer):void {
            this.observerList.push(observer);
        }
        notifyObservers():void {
            for (var index = 0; index < this.observerList.length; index++) {
                var observer = this.observerList[index];
                observer.update();
            }
        }
    }
}
<commit_msg>modelからdbを参照できるようにした<commit_after>/// <reference path="indexeddbAdapter" />

namespace YJMCNT.Core {
    /**
     * Model
     */
    export class Model implements Subject{
        observerList:Core.Observer[]; 

        constructor() {
            this.observerList = [];
        }
        
        addObserver(observer:Observer):void {
            this.observerList.push(observer);
        }
        notifyObservers():void {
            for (var index = 0; index < this.observerList.length; index++) {
                var observer = this.observerList[index];
                observer.update();
            }
        }
        
        private get db() :IDBDatabase {
            return IndexedDBAdapter.getInstance().db;
        }
        
    }
}

{'fraction_non_alphanumeric': 0.11219879518072289, 'fraction_numerical': 0.0015060240963855422, 'mean_word_length': 1.5856031128404668, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '879194', 'n_tokens_mistral': 370, 'n_tokens_neox': 350, 'n_words': 59}