<commit_before>// User Welcome controller
App.UserWelcomeController = Ember.Controller.extend({

    needs : ['clusterCreate','vreserverCreate'],
    // flag to denote transition from a create action
    create_cluster_start : false,
    count : 0,
    orkaImages: [],
    vreImages: [],
    user_messages : [],
    // blacklist user messages explicitly removed during polling
    blacklist_messages : {},
    // tabs info for template
    content_tabs : function(key,value){
        var tabs_object = {
            clusters: {id:'id_userclusters_tab',href:'#id_userclusters_tab',name:'User Clusters',active:true},
            vreservers: {id:'id_uservres_tab',href:'#id_uservres_tab',name:'User VREs'}};
        if (arguments.length>1){//setter
            switch(value) {
            case "clusters":
                tabs_object["clusters"]["active"]=true;
                tabs_object["vreservers"]["active"]=null;
            case "vreservers":
                tabs_object["vreservers"]["active"]=true;
                tabs_object["clusters"]["active"]=null;
            }
            return tabs_object;
        }
        return tabs_object;
    }.property(),
    // userclusters block
    filtered_clusters : function(){
        return this.get('content.clusters').filterBy('id');
    }.property('content.clusters.[]','content.clusters.isLoaded'),
    sorted_clusters_prop : ['resorted_status:asc','action_date:desc'],
    sorted_clusters_dir : true,
    sorted_clusters : Ember.computed.sort('filtered_clusters','sorted_clusters_prop'),
    sortable_clusters : function(){
        return this.get('sorted_clusters');
    }.property('filtered_clusters.[]'),
    // uservreservers block
    filtered_vreservers : function(){
        return this.get('content.vreservers').filterBy('id');
    }.property('content.vreservers.[]','content.vreservers.isLoaded'),
    sorted_vreservers_prop : ['resorted_status:asc','action_date:desc'],
    sorted_vreservers_dir : true,
    sorted_vreservers : Ember.computed.sort('filtered_vreservers','sorted_vreservers_prop'),
    sortable_vreservers : function(){
        return this.get('sorted_vreservers');
    }.property('filtered_vreservers.[]'),
    master_vm_password_msg : function() {
        var pwd_message = this.get('content.master_vm_password');
        if (!Ember.isBlank(pwd_message)) {
            var msg = {<commit_msg>Better verbosity on userWelcome tab selection<commit_after>// User Welcome controller
App.UserWelcomeController = Ember.Controller.extend({

    needs : ['clusterCreate','vreserverCreate'],
    // flag to denote transition from a create action
    create_cluster_start : false,
    count : 0,
    orkaImages: [],
    vreImages: [],
    user_messages : [],
    // blacklist user messages explicitly removed during polling
    blacklist_messages : {},
    // tabs info for template
    content_tabs_info : {
        clusters: {id:'id_userclusters_tab',href:'#id_userclusters_tab',name:'User Clusters',active:true},
        vreservers: {id:'id_uservres_tab',href:'#id_uservres_tab',name:'User VREs'}
    },
    content_tabs : function(key,value){
        var tabs_object = this.get('content_tabs_info');
        if (arguments.length>1){//setter
            switch(value) {
            case "clusters":
                tabs_object["clusters"]["active"]=true;
                tabs_object["vreservers"]["active"]=null;
            case "vreservers":
                tabs_object["vreservers"]["active"]=true;
                tabs_object["clusters"]["active"]=null;
            }
            return tabs_object;
        }
        return tabs_object;
    }.property(),
    // userclusters block
    filtered_clusters : function(){
        return this.get('content.clusters').filterBy('id');
    }.property('content.clusters.[]','content.clusters.isLoaded'),
    sorted_clusters_prop : ['resorted_status:asc','action_date:desc'],
    sorted_clusters_dir : true,
    sorted_clusters : Ember.computed.sort('filtered_clusters','sorted_clusters_prop'),
    sortable_clusters : function(){
        return this.get('sorted_clusters');
    }.property('filtered_clusters.[]'),
    // uservreservers block
    filtered_vreservers : function(){
        return this.get('content.vreservers').filterBy('id');
    }.property('content.vreservers.[]','content.vreservers.isLoaded'),
    sorted_vreservers_prop : ['resorted_status:asc','action_date:desc'],
    sorted_vreservers_dir : true,
    sorted_vreservers : Ember.computed.sort('filtered_vreservers','sorted_vreservers_prop'),
    sortable_vreservers : function(){
        return this.get('sorted_vreservers');
    }.property('filtered_vreservers.[]'),
    // messages / feedback
    master_vm_password_msg : function() {
        var pwd_message = this.get('content.master_vm_password');
        if (!Ember.isBlank(pwd_message)) {
            var msg = {
{'fraction_non_alphanumeric': 0.13788845441448858, 'fraction_numerical': 0.0008232146532208273, 'mean_word_length': 3.3548387096774195, 'pattern_counts': {'":': 4, '<': 3, '<?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': '7550654', 'n_tokens_mistral': 1507, 'n_tokens_neox': 1480, 'n_words': 221}