<commit_before>Ext.define('devilry.student.AddDeliveriesGrid', {
    extend: 'Ext.grid.Panel',
    frameHeader: false,
    frame: false,
    border: false,
    sortableColumns: false,
    columnLines: false,
    cls: 'selectable-grid',

    initComponent: function() {
        var rowTpl = Ext.create('Ext.XTemplate',
            '{.:date}'
        );

        //this.store.proxy.extraParams.orderby = Ext.JSON.encode(["deadline"]);
        this.store.proxy.extraParams.filters = Ext.JSON.encode([{
            "field": "is_open",
            "comp": "exact",
            "value": true
        }]);
        this.store.proxy.extraParams.orderby = Ext.JSON.encode(['-latest_deadline_deadline']);
        this.store.load();

        Ext.apply(this, {
            columns: [{
                text: 'Subject',
                menuDisabled: true,
                hideable: false,
                dataIndex: 'parentnode__parentnode__parentnode__long_name',
                flex: 20
            },{
                text: 'Assignment',
                menuDisabled: true,
                hideable: false,
                flex: 15,
                dataIndex: 'parentnode__long_name'
            },{
                text: 'Deadline',
                menuDisabled: true,
                hideable: false,
                flex: 15,
                dataIndex: 'latest_deadline_deadline',
                renderer: function(value) {
                    var rowTpl = Ext.create('Ext.XTemplate',
                        '{.:date}'
                    );
                return rowTpl.apply(value);
                }
            },{
                text: '#Deliveries',
                menuDisabled: true,
                hideAble: false,
                flex: 5,
                dataIndex: 'number_of_deliveries'
            }],
            listeners: {
                scope: this,
                itemmouseup: function(view, record) {
                    var url = DASHBOARD_URL + "add-delivery/" + record.data.id;
                    console.log(record.data.id);
                    window.location = url;
                },
                itemmouseenter: function(view, record, item) {
                    //console.log(item);
                }
            }
        });
        this.callParent(arguments);
    }
});<commit_msg>apps/student/static/extjs_classes/student/AddDeliveriesGrid: Fixed possible bug with console logging in add-delivery<commit_after>Ext.define('devilry.student.AddDeliveriesGrid', {
    extend: 'Ext.grid.Panel',
    frameHeader: false,
    frame: false,
    border: false,
    sortableColumns: false,
    columnLines: false,
    cls: 'selectable-grid',

    initComponent: function() {
        var rowTpl = Ext.create('Ext.XTemplate',
            '{.:date}'
        );

        //this.store.proxy.extraParams.orderby = Ext.JSON.encode(["deadline"]);
        this.store.proxy.extraParams.filters = Ext.JSON.encode([{
            "field": "is_open",
            "comp": "exact",
            "value": true
        }]);
        this.store.proxy.extraParams.orderby = Ext.JSON.encode(['-latest_deadline_deadline']);
        this.store.load();

        Ext.apply(this, {
            columns: [{
                text: 'Subject',
                menuDisabled: true,
                hideable: false,
                dataIndex: 'parentnode__parentnode__parentnode__long_name',
                flex: 20
            },{
                text: 'Assignment',
                menuDisabled: true,
                hideable: false,
                flex: 15,
                dataIndex: 'parentnode__long_name'
            },{
                text: 'Deadline',
                menuDisabled: true,
                hideable: false,
                flex: 15,
                dataIndex: 'latest_deadline_deadline',
                renderer: function(value) {
                    var rowTpl = Ext.create('Ext.XTemplate',
                        '{.:date}'
                    );
                return rowTpl.apply(value);
                }
            },{
                text: '#Deliveries',
                menuDisabled: true,
                hideAble: false,
                flex: 5,
                dataIndex: 'number_of_deliveries'
            }],
            listeners: {
                scope: this,
                itemmouseup: function(view, record) {
                    var url = DASHBOARD_URL + "add-delivery/" + record.data.id;
                    window.location = url;
                },
                itemmouseenter: function(view, record, item) {
                    //console.log(item);
                }
            }
        });
        this.callParent(arguments);
    }
});
{'fraction_non_alphanumeric': 0.11464560204953031, 'fraction_numerical': 0.0029888983774551663, 'mean_word_length': 1.2931962799804209, 'pattern_counts': {'":': 6, '<': 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': '6036700', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1205, 'n_words': 215}