<commit_before>Ext.define('SlateAdmin.controller.courses.Participants', {
    extend: 'Ext.app.Controller',
    requires: [
        'Ext.window.MessageBox',
        'SlateAdmin.API'
    ],


    // controller config
    views: [
        'courses.sections.details.Participants'
    ],

    models: [
        '<EMAIL>',
        'course.SectionParticipant'
    ],

    stores: [
        'courses.SectionParticipants',
        'courses.SectionParticipantRoles',
        'courses.SectionCohorts'
    ],

    refs: {
        participantsPanel: {
            selector: 'courses-sections-details-participants',
            autoCreate: true,

            xtype: 'courses-sections-details-participants'
        },
        participantsGrid: 'courses-sections-details-participants grid',
        roleField: 'courses-sections-details-participants #roleField',
        personField: 'courses-sections-details-participants #personField',
        cohortField: 'courses-sections-details-participants #cohortField'
    },


    control: {
        'courses-sections-manager #detailTabs': {
            beforerender: 'onBeforeTabsRender'
        },
        'courses-sections-details-participants': {
            sectionloaded: 'onSectionLoaded'
        },
        'courses-sections-details-participants field': {
            specialkey: 'onFieldSpecialKey'
        },
        'courses-sections-details-participants button[action=add-participant]': {
            click: 'onAddParticipantClick'
        },
        'courses-sections-details-participants grid': {
            openclick: 'onOpenParticipantClick',
            deleteclick: 'onDeleteParticipantClick'
        }
    },


    // event handlers
    onBeforeTabsRender: function(detailTabs) {
        detailTabs.add(this.getParticipantsPanel());<commit_msg>Remove unused ref to editor field<commit_after>Ext.define('SlateAdmin.controller.courses.Participants', {
    extend: 'Ext.app.Controller',
    requires: [
        'Ext.window.MessageBox',
        'SlateAdmin.API'
    ],


    // controller config
    views: [
        'courses.sections.details.Participants'
    ],

    models: [
        '<EMAIL>',
        'course.SectionParticipant'
    ],

    stores: [
        'courses.SectionParticipants',
        'courses.SectionParticipantRoles',
        'courses.SectionCohorts'
    ],

    refs: {
        participantsPanel: {
            selector: 'courses-sections-details-participants',
            autoCreate: true,

            xtype: 'courses-sections-details-participants'
        },
        participantsGrid: 'courses-sections-details-participants grid',
        roleField: 'courses-sections-details-participants #roleField',
        personField: 'courses-sections-details-participants #personField'
    },


    control: {
        'courses-sections-manager #detailTabs': {
            beforerender: 'onBeforeTabsRender'
        },
        'courses-sections-details-participants': {
            sectionloaded: 'onSectionLoaded'
        },
        'courses-sections-details-participants field': {
            specialkey: 'onFieldSpecialKey'
        },
        'courses-sections-details-participants button[action=add-participant]': {
            click: 'onAddParticipantClick'
        },
        'courses-sections-details-participants grid': {
            openclick: 'onOpenParticipantClick',
            deleteclick: 'onDeleteParticipantClick'
        }
    },


    // event handlers
    onBeforeTabsRender: function(detailTabs) {
        detailTabs.add(this.getParticipantsPanel());
{'fraction_non_alphanumeric': 0.11391328988381978, 'fraction_numerical': 0.0, 'mean_word_length': 2.368320610687023, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '937992', 'n_tokens_mistral': 1038, 'n_tokens_neox': 970, 'n_words': 129}