<commit_before>import { Injectable } from '@angular/core';

import {Task, Category, Client, Collection, Work} from '../models';
import { Seed } from './seed';

@Injectable()
export class Data {
    tasks = new Collection<Task>('./app/data/tasks.db');
    categories = new Collection<Category>('./app/data/categories.db');
    clients = new Collection<Client>('./app/data/clients.db');
    work = new Collection<Work>('./app/data/work.db');

    constructor() {
        this.work.find({}, {start: 1})
            .then(work => console.log(work))
    }

    seed() {
        console.warn('SEEDING DATA STORE FILES')
        var seed = new Seed();
        var tasks = seed.tasks();
        var work: Work[] = [];
        
        console.warn('SEEDING TASKS');
        this.tasks.insertBulk(tasks)
            .then(_ => {
                console.warn('SEEDING CATEGORIES');
                this.categories.insertBulk(seed.categories())<commit_msg>remove debugging<commit_after>import { Injectable } from '@angular/core';

import {Task, Category, Client, Collection, Work} from '../models';
import { Seed } from './seed';

@Injectable()
export class Data {
    tasks = new Collection<Task>('./app/data/tasks.db');
    categories = new Collection<Category>('./app/data/categories.db');
    clients = new Collection<Client>('./app/data/clients.db');
    work = new Collection<Work>('./app/data/work.db');

    seed() {
        console.warn('SEEDING DATA STORE FILES')
        var seed = new Seed();
        var tasks = seed.tasks();
        var work: Work[] = [];
        
        console.warn('SEEDING TASKS');
        this.tasks.insertBulk(tasks)
            .then(_ => {
                console.warn('SEEDING CATEGORIES');
                this.categories.insertBulk(seed.categories())
{'fraction_non_alphanumeric': 0.16610549943883277, 'fraction_numerical': 0.0005611672278338945, 'mean_word_length': 2.551792828685259, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '5352465', 'n_tokens_mistral': 532, 'n_tokens_neox': 520, 'n_words': 114}