<commit_before>/*jslint browser: true, undef: true *//*global Ext*/
Ext.define('SlateAdmin.view.people.details.Courses', {
    extend: 'SlateAdmin.view.people.details.AbstractDetails',
    xtype: 'people-details-courses',
    requires: [
        'Ext.grid.Panel',
        'Ext.grid.column.Template',
        'Ext.form.field.ComboBox',
        'SlateAdmin.model.course.Section',
        'SlateAdmin.proxy.API'
    ],


    title: 'Courses',
    glyph: 0xf073,
    itemId: 'courses',


    // panel config
    layout: 'fit',

    tbar: ['Term: ', {
        xtype: 'combobox',
        editable: false,
        emptyText: 'Current Term',
        valueField: 'ID',
        flex: 1,
        itemId: 'courseTermSelector',
        queryMode: 'local',
        name: 'courseTermSelector',
        displayField: 'Title',
        store: 'Terms'
    }],

    items: {
        xtype: 'grid',
        border: false,
        viewConfig: {
            emptyText: 'No courses for selected term'
        },
        store: {
            model: 'SlateAdmin.model.course.Section',<commit_msg>Use proper label for term selector<commit_after>/*jslint browser: true, undef: true *//*global Ext*/
Ext.define('SlateAdmin.view.people.details.Courses', {
    extend: 'SlateAdmin.view.people.details.AbstractDetails',
    xtype: 'people-details-courses',
    requires: [
        'Ext.grid.Panel',
        'Ext.grid.column.Template',
        'Ext.form.field.ComboBox',
        'SlateAdmin.model.course.Section',
        'SlateAdmin.proxy.API'
    ],


    title: 'Courses',
    glyph: 0xf073,
    itemId: 'courses',


    // panel config
    layout: 'fit',

    tbar: [{
        xtype: 'combobox',
        fieldLabel: 'Term',
        labelWidth: 36,
        editable: false,
        emptyText: 'Current Term',
        valueField: 'ID',
        flex: 1,
        itemId: 'courseTermSelector',
        queryMode: 'local',
        name: 'courseTermSelector',
        displayField: 'Title',
        store: 'Terms'
    }],

    items: {
        xtype: 'grid',
        border: false,
        viewConfig: {
            emptyText: 'No courses for selected term'
        },
        store: {
            model: 'SlateAdmin.model.course.Section',
{'fraction_non_alphanumeric': 0.1407172038129823, 'fraction_numerical': 0.005447117566954153, 'mean_word_length': 2.0696378830083564, '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': '6742634', 'n_tokens_mistral': 709, 'n_tokens_neox': 680, 'n_words': 139}