<commit_before>({
    /******************************** Init Functions *****************************/

    doInit: function(component) {
        var action = component.get('c.getTableModel');
        action.setCallback(this, function (response) {
            const state = response.getState();
            if (state === 'SUCCESS') {
                let model = JSON.parse(response.getReturnValue());
                this.setColumns(component, model.columns);
                this.loadBatchRows(component, [], model.batches);
                this.setTotalNumberOfRows(component, model.totalNumberOfRows);
            } else {
                this.handleApexErrors(component, response.getError());
            }
        });
        $A.enqueueAction(action);
    },

    /**
     * @description: loads the columns for the datatable
     */
    setColumns: function(component, responseColumns) {
        responseColumns.forEach(function(col){
           if (col.type === 'number') {
               col.cellAttributes = {alignment: "left"};
           } else if (col.fieldName === 'batchLink') {
               col.typeAttributes = {label:{fieldName:"Name"},target:"self"};
           }
        });

        responseColumns.push({
            type: 'action',
            typeAttributes: {
                rowActions: [{
                    label: $A.get('$Label.c.bgeCopyBatchSetup'),
                    name: 'copySetup'
                }]
            }
        });
<commit_msg>update label name<commit_after>({
    /******************************** Init Functions *****************************/

    doInit: function(component) {
        var action = component.get('c.getTableModel');
        action.setCallback(this, function (response) {
            const state = response.getState();
            if (state === 'SUCCESS') {
                let model = JSON.parse(response.getReturnValue());
                this.setColumns(component, model.columns);
                this.loadBatchRows(component, [], model.batches);
                this.setTotalNumberOfRows(component, model.totalNumberOfRows);
            } else {
                this.handleApexErrors(component, response.getError());
            }
        });
        $A.enqueueAction(action);
    },

    /**
     * @description: loads the columns for the datatable
     */
    setColumns: function(component, responseColumns) {
        responseColumns.forEach(function(col){
           if (col.type === 'number') {
               col.cellAttributes = {alignment: "left"};
           } else if (col.fieldName === 'batchLink') {
               col.typeAttributes = {label:{fieldName:"Name"},target:"self"};
           }
        });

        responseColumns.push({
            type: 'action',
            typeAttributes: {
                rowActions: [{
                    label: $A.get('$Label.c.bgeCopyBatchSetupButton'),
                    name: 'copySetup'
                }]
            }
        });

{'fraction_non_alphanumeric': 0.16554054054054054, 'fraction_numerical': 0.0, 'mean_word_length': 1.8443804034582132, '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': '3954717', 'n_tokens_mistral': 752, 'n_tokens_neox': 713, 'n_words': 126}