<commit_before>import Ember from 'ember';

export default Ember.Component.extend({
    tagName: 'button',
    disabled: false,
    icon: "",

    didInsertElement: function() {
        var _this = this;
        Ember.run.schedule('afterRender', function() {
            _this.$().button({
                disabled: _this.get('disabled'),
                icons: {
                    primary: _this.get('icon')
                }
            });
        });
    },

    click: function() {
        this.sendAction();
    },

    disabledDidChange: function() {
        this.$().button("option", "disabled", this.get('disabled'));
    }.observes('disabled')
});<commit_msg>Update button to use JQueryUI Mixin<commit_after>import Ember from 'ember';
import jquiWidget from 'ember-cli-jquery-ui/mixins/jqui-widget';

export default Ember.Component.extend(jquiWidget, {
    uiType: 'button',
    uiOptions: ['disabled'],
    uiEvents: [],
    tagName: 'button',
    disabled: false,
    icon: "",

    didInsertElement: function() {
        var _this = this;
        Ember.run.next(function() {
            _this.$().button("option", "icons", {
                primary: _this.get('icon')
            });
        });
    },

    click: function() {
        this.sendAction();
    }
});
{'fraction_non_alphanumeric': 0.15884194053208137, 'fraction_numerical': 0.0, 'mean_word_length': 2.104368932038835, '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': '4613877', 'n_tokens_mistral': 377, 'n_tokens_neox': 363, 'n_words': 73}