<commit_before>
function ApplicationsTab(id)
{
    Tab.call(this, id);
}

ApplicationsTab.prototype = new Tab();

ApplicationsTab.prototype.constructor = ApplicationsTab;

ApplicationsTab.prototype.initialize = function()
{
    this.table = Table.createTable(
        this.id,
        this.getColumns(),
        this.getInitialSort(),
        $.proxy(this.clickHandler, this),
        [
            {
                text: "Start",
                click: $.proxy(function()
                {
                    this.manageApplications('start');
                }, this)
            },
            {
                text: "Stop",
                click: $.proxy(function()
                {
                    this.manageApplications('stop');
                }, this)
            },
            {
                text: "Restart",
                click: $.proxy(function()
                {
                    this.manageApplications('restart');
                }, this)
            }
        ]);

    this.applicationServicesTable = Table.createTable("ApplicationsServices", this.getApplicationServicesColumns(), [[0, "asc"]], null, null);
}

ApplicationsTab.prototype.checkboxClickHandler = function(event)
{
    event.stopPropagation();
}

ApplicationsTab.prototype.getInitialSort = function()
{
    return [[4, "desc"]];
}

ApplicationsTab.prototype.getColumns = function()
{
    return [
               {
                   "sTitle": "",
                   "sClass": "cellCenterAlign",
                   "bSortable": false,
                   "mRender": function(value, type)
                   {
                       return '<input type="checkbox" value="' + value + '" onclick="ApplicationsTab.prototype.checkboxClickHandler(event)"></input>';
                   }
               },<commit_msg>After app mgmt change, default sorting for app moved from started column to instance state column.  Moving back to started column<commit_after>
function ApplicationsTab(id)
{
    Tab.call(this, id);
}

ApplicationsTab.prototype = new Tab();

ApplicationsTab.prototype.constructor = ApplicationsTab;

ApplicationsTab.prototype.initialize = function()
{
    this.table = Table.createTable(
        this.id,
        this.getColumns(),
        this.getInitialSort(),
        $.proxy(this.clickHandler, this),
        [
            {
                text: "Start",
                click: $.proxy(function()
                {
                    this.manageApplications('start');
                }, this)
            },
            {
                text: "Stop",
                click: $.proxy(function()
                {
                    this.manageApplications('stop');
                }, this)
            },
            {
                text: "Restart",
                click: $.proxy(function()
                {
                    this.manageApplications('restart');
                }, this)
            }
        ]);

    this.applicationServicesTable = Table.createTable("ApplicationsServices", this.getApplicationServicesColumns(), [[0, "asc"]], null, null);
}

ApplicationsTab.prototype.checkboxClickHandler = function(event)
{
    event.stopPropagation();
}

ApplicationsTab.prototype.getInitialSort = function()
{
    return [[5, "desc"]];
}

ApplicationsTab.prototype.getColumns = function()
{
    return [
               {
                   "sTitle": "",
                   "sClass": "cellCenterAlign",
                   "bSortable": false,
                   "mRender": function(value, type)
                   {
                       return '<input type="checkbox" value="' + value + '" onclick="ApplicationsTab.prototype.checkboxClickHandler(event)"></input>';
                   }
               },
{'fraction_non_alphanumeric': 0.12298603651987111, 'fraction_numerical': 0.0010741138560687433, 'mean_word_length': 1.5814275814275813, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 7, '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': '1683459', 'n_tokens_mistral': 953, 'n_tokens_neox': 872, 'n_words': 158}