<commit_before>/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext,Slate*/
Ext.define('SlateAdmin.model.person.ProgressReport', {
    extend: 'Ext.data.Model',


    // model config
    idProperty: 'ID',

    fields: [
        'AuthorUsername',
        'Subject',
        {
            name: 'ID',
            type: 'integer',
            useNull: true,
            defaultValue: null
        }, {
            name: 'Class',
            defaultValue: 'Slate\\Progress\\Note'
        }, {
            name: 'Noun'
        }, {
            name: 'Title'
        }, {
            name: 'Status'
        }, {
            name: 'Timestamp',
            type: 'date',
            dateFormat: 'timestamp'
        }, {
            name: 'Author'
        }, {
            name: 'Student'
        }, {
            name: 'Term'
        }
    ],

    proxy: {
        type: 'slaterecords',
        url: '/progress',
        summary: true,
        include: ['Timestamp', 'Author', 'Term']
    },

    getUrl: function() {
        switch (this.get('Class')) {
            case 'Slate\\Progress\\SectionTermReport':
                return '/progress/section-term-reports/'+this.getId();
            case 'Slate\\Progress\\SectionInterimReport':
                return '/progress/section-interim-reports/'+this.getId();
            case 'Slate\\Progress\\Note':
                return '/notes/' + this.getId();
            default:
                return null;
        }
    }
});<commit_msg>Don't use report ID as model idProperty, it is not unique across tables<commit_after>/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext,Slate*/
Ext.define('SlateAdmin.model.person.ProgressReport', {
    extend: 'Ext.data.Model',


    // model config
    fields: [
        'AuthorUsername',
        'Subject',
        {
            name: 'ID',
            type: 'integer',
            useNull: true,
            defaultValue: null
        }, {
            name: 'Class',
            defaultValue: 'Slate\\Progress\\Note'
        }, {
            name: 'Noun'
        }, {
            name: 'Title'
        }, {
            name: 'Status'
        }, {
            name: 'Timestamp',
            type: 'date',
            dateFormat: 'timestamp'
        }, {
            name: 'Author'
        }, {
            name: 'Student'
        }, {
            name: 'Term'
        }
    ],

    proxy: {
        type: 'slaterecords',
        url: '/progress',
        summary: true,
        include: ['Timestamp', 'Author', 'Term']
    },

    getUrl: function() {
        switch (this.get('Class')) {
            case 'Slate\\Progress\\SectionTermReport':
                return '/progress/section-term-reports/'+this.get('ID');
            case 'Slate\\Progress\\SectionInterimReport':
                return '/progress/section-interim-reports/'+this.get('ID');
            case 'Slate\\Progress\\Note':
                return '/notes/' + this.get('ID');
            default:
                return null;
        }
    }
});
{'fraction_non_alphanumeric': 0.14945919370698132, 'fraction_numerical': 0.0, 'mean_word_length': 1.39937106918239, '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': '7659089', 'n_tokens_mistral': 864, 'n_tokens_neox': 836, 'n_words': 174}