<commit_before>Ext.define('SenchaFront.controller.ProfileListController', {
    extend: 'Ext.app.Controller',
    
    config: {
        refs: {
            
        },
        control: {
            
        }
    },
    
    //called when the Application is launched, remove if not needed
    launch: function(app) {
        
    }
});<commit_msg>Add method for adding new profile<commit_after>Ext.define('SenchaFront.controller.ProfileListController', {
    extend: 'Ext.app.Controller',
    
    config: {
        refs: {
            addProfileButton: '#addProfileButton'
        },
        control: {
            addProfileButton: {
                tap: 'addProfile'
            }
        }
    },
    
    //called when the Application is launched, remove if not needed
    launch: function(app) {
        
    },

    getStore: function() {
        return Ext.StoreMgr.get('profiles');
    },

    addProfile: function() {
        var newRecord = Ext.create('SenchaFront.model.Profile', {
            name: '<NAME>'
        });
        var store = this.getStore();
        store.add(newRecord);
        store.sync();
        // this.editProfile(newRecord);
    }
});
{'fraction_non_alphanumeric': 0.12190963341858482, 'fraction_numerical': 0.0, 'mean_word_length': 1.7175925925925926, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3220766', 'n_tokens_mistral': 331, 'n_tokens_neox': 323, 'n_words': 63}