<commit_before>(function () {
    var Ext = window.Ext4 || window.Ext;

    Ext.define('Rally.apps.charts.iterationburndownminimal.IterationBurnDownMinimalViewToggle', {
        requires:['Rally.ui.Button'],
        extend:'Ext.Container',
        alias:'widget.rallyiterationburndownminimalviewtoggle',
        mixins: ['Ext.state.Stateful'],

        stateEvents: ['toggle'],

        componentCls: 'rui-iterationburndownminimalview-toggle',
        layout: 'hbox',
        border: 1,
        activeButtonCls: 'active hide-tooltip',

        defaultType: 'rallybutton',
        items: [
            {
                itemId: 'burndown',
                cls: 'toggle burndown icon-bars',
                frame: false,
                toolTipConfig: {
                    html: 'Burndown',
                    anchor: 'bottom',
                    hideDelay: 0
                },
                userAction:'IterationBurnDownMinimalApp - User clicked burndown'
            },
            {
                itemId: 'cumulativeflow',
                cls: 'toggle cumulativeflow icon-graph',
                frame: false,
                toolTipConfig: {
                    html: 'Cumulative Flow',
                    anchor: 'bottom',
                    hideDelay: 0
                },
                userAction:'IterationBurnDownMinimalApp - User clicked CFD'
            }
        ],

        initComponent: function() {
            this.callParent(arguments);

            this.addEvents([
                /**
                 * @event toggle
                 * Fires when the toggle value is changed.
                 * @param {String} toggleState 'burndown' or 'cumulativeflow'.<commit_msg>Changed toggle buttons to match other button and fix styling issues for Ext 4.2 upgrade.<commit_after>(function () {
    var Ext = window.Ext4 || window.Ext;

    Ext.define('Rally.apps.charts.iterationburndownminimal.IterationBurnDownMinimalViewToggle', {
        requires:['Rally.ui.Button'],
        extend:'Ext.Container',
        alias:'widget.rallyiterationburndownminimalviewtoggle',
        mixins: ['Ext.state.Stateful'],

        stateEvents: ['toggle'],

        componentCls: 'toggle-button-group',
        layout: 'hbox',
        border: 1,
        activeButtonCls: 'active hide-tooltip',

        defaultType: 'rallybutton',
        items: [
            {
                itemId: 'burndown',
                cls: 'toggle left burndown',
                iconCls: 'icon-bars',
                frame: false,
                toolTipConfig: {
                    html: 'Burndown',
                    anchor: 'bottom',
                    hideDelay: 0
                },
                userAction:'IterationBurnDownMinimalApp - User clicked burndown'
            },
            {
                itemId: 'cumulativeflow',
                cls: 'toggle right cumulativeflow',
                iconCls: 'icon-graph',
                frame: false,
                toolTipConfig: {
                    html: 'Cumulative Flow',
                    anchor: 'bottom',
                    hideDelay: 0
                },
                userAction:'IterationBurnDownMinimalApp - User clicked CFD'
            }
        ],

        initComponent: function() {
            this.callParent(arguments);

            this.addEvents([
                /**
                 * @event toggle
                 * Fires when the toggle value is changed.
                 * @param {String} toggleState 'burndown' or 'cumulativeflow'.
{'fraction_non_alphanumeric': 0.09840728100113766, 'fraction_numerical': 0.002844141069397042, 'mean_word_length': 1.427191166321601, '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': '7062435', 'n_tokens_mistral': 937, 'n_tokens_neox': 840, 'n_words': 183}