<commit_before>import { Express } from "express";
import Jinaga = require("jinaga/jinaga");

class Course {
    constructor(private fact: any) {}

    office = this.fact._in.office;
    registrations: Array<any> = [];
}

class Registration {
    constructor(private fact: any) {}

    name = '';
    note = '';
}

class Roster {
    constructor(private j: Jinaga) {}

    private owner = {
        type: "Jinaga.User",
        publicKey: "-----<KEY>"
    };
    private company = {
        type: "ImprovingU.Company",
        name: "Improving",
        from: this.owner
    };
    private semester = {
        type: "ImprovingU.Semester",
        name: "Summer 2017",
        _in: this.company,
        from: this.owner
    };

    private watches: Array<any> = [];
    private courses: Array<any> = []
    
    start() {
        const j = this.j;

        this.stop();

        var coursesWatch = this.j.watch(this.semester, [coursesInSemester], addTo(this.courses, Course), removeFrom(this.courses));
        coursesWatch.watch([titlesForCourse], setChildValue('title'));
        var registrationsWatch = coursesWatch.watch([registrationsForCourse], addToChild('registrations', Registration), removeFromChild('registrations'));
        registrationsWatch.watch([userForRegistration, namesForUser], setChildValue('name'));
        registrationsWatch.watch([notesForRegistration], setChildValue('note'));
        this.watches.push(coursesWatch);

        function coursesInSemester(s: any) {
            return j.where({
                type: "ImprovingU.Course",
                _in: {
                    type: "ImprovingU.Catalog",
                    _in: s<commit_msg>Bumped semester on roster.<commit_after>import { Express } from "express";
import Jinaga = require("jinaga/jinaga");

class Course {
    constructor(private fact: any) {}

    office = this.fact._in.office;
    registrations: Array<any> = [];
}

class Registration {
    constructor(private fact: any) {}

    name = '';
    note = '';
}

class Roster {
    constructor(private j: Jinaga) {}

    private owner = {
        type: "Jinaga.User",
        publicKey: "-----<KEY>"
    };
    private company = {
        type: "ImprovingU.Company",
        name: "Improving",
        from: this.owner
    };
    private semester = {
        type: "ImprovingU.Semester",
        name: "Fall 2017",
        _in: this.company,
        from: this.owner
    };

    private watches: Array<any> = [];
    private courses: Array<any> = []
    
    start() {
        const j = this.j;

        this.stop();

        var coursesWatch = this.j.watch(this.semester, [coursesInSemester], addTo(this.courses, Course), removeFrom(this.courses));
        coursesWatch.watch([titlesForCourse], setChildValue('title'));
        var registrationsWatch = coursesWatch.watch([registrationsForCourse], addToChild('registrations', Registration), removeFromChild('registrations'));
        registrationsWatch.watch([userForRegistration, namesForUser], setChildValue('name'));
        registrationsWatch.watch([notesForRegistration], setChildValue('note'));
        this.watches.push(coursesWatch);

        function coursesInSemester(s: any) {
            return j.where({
                type: "ImprovingU.Course",
                _in: {
                    type: "ImprovingU.Catalog",
                    _in: s
{'fraction_non_alphanumeric': 0.13494191242180517, 'fraction_numerical': 0.002383080131069407, 'mean_word_length': 2.545934530095037, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3353499', 'n_tokens_mistral': 1010, 'n_tokens_neox': 954, 'n_words': 196}