<commit_before>App.NodesColumnsController = App.ColumnsController.extend({
  content: [{
    description: 'State (Health/Operational State)',
    sortBy: 'state',
    icon: 'icon-off'
  }, {
    description: 'Trust Status',
    sortBy: 'isTrusted',
    icon: 'icon-lock'
  }, {
    description: 'Node Type (Assured, Monitored, Non-SAA)',
    sortBy: 'samControlled',
    icon: 'icon-trophy'
  }, {
    title: 'Hostname',
    sortBy: 'name',
    sortAscending: true
  }, {
    title: 'VMs',
    sortBy: 'vmInfo.count'
  }, {
    title: 'Capacity',
    sortBy: 'cpuSort'
  }, {
    title: 'Allocated',
    description: 'Maximum measured capacity is in SCUs (Service Compute Units) or cores (depending on node mode), while the chart indicates how much of that capacity is used.',
    sortBy: 'utilization.scus.total.current'
  }, {
    title: 'RAM Used',
    description: 'Physical memory used by VMs and applications.',
    sortBy: 'utilization.memory.used'
  },{
    title: 'N. Load',
    description: '<strong>Normalized load</strong> is Linux load average divided by the number of CPUs visible to OS (including hyperthreading).' +
      '<ul>' +
        '<li><strong>Green (0-1)</strong> indicates there is no contention for CPU resources.</li>' +
        '<li><strong>Orange (1-2)</strong> indicates there is some contention for CPU resources, but the system may still be operating within acceptable range.</li>' +
        '<li><strong>Red (2+)</strong> indicates that there is considerable contention for CPU resources and the system may be operating sub-optimally and action should be taken by the system administrator.</li>' +
      '</ul>',
    sortBy: 'utilization.normalized_load'
  }, {
    title: 'Contention',
    description: 'LLC cache contention',
    sortBy: 'contention.llc.system.value'
  }, {
    title: 'Actions'
  }]
});

App.NodesController = Ember.ArrayController.extend(App.Filterable, App.Sortable, {
  needs: ['nodesColumns', 'application', 'quota', 'node'],
  itemController: 'node',
  sortProperty: 'name',
  sortAscending: true,
  filterProperties: ['name'],
  isMatch: function (record) {
    if (!this.get('selectedTenant')) return true;<commit_msg>Use correct sorting property reference for allocation<commit_after>App.NodesColumnsController = App.ColumnsController.extend({
  content: [{
    description: 'State (Health/Operational State)',
    sortBy: 'state',
    icon: 'icon-off'
  }, {
    description: 'Trust Status',
    sortBy: 'isTrusted',
    icon: 'icon-lock'
  }, {
    description: 'Node Type (Assured, Monitored, Non-SAA)',
    sortBy: 'samControlled',
    icon: 'icon-trophy'
  }, {
    title: 'Hostname',
    sortBy: 'name',
    sortAscending: true
  }, {
    title: 'VMs',
    sortBy: 'vmInfo.count'
  }, {
    title: 'Capacity',
    sortBy: 'cpuSort'
  }, {
    title: 'Allocated',
    description: 'Maximum measured capacity is in SCUs (Service Compute Units) or cores (depending on node mode), while the chart indicates how much of that capacity is used.',
    sortBy: 'utilization.scu.system.allocated'
  }, {
    title: 'RAM Used',
    description: 'Physical memory used by VMs and applications.',
    sortBy: 'utilization.memory.used'
  },{
    title: 'N. Load',
    description: '<strong>Normalized load</strong> is Linux load average divided by the number of CPUs visible to OS (including hyperthreading).' +
      '<ul>' +
        '<li><strong>Green (0-1)</strong> indicates there is no contention for CPU resources.</li>' +
        '<li><strong>Orange (1-2)</strong> indicates there is some contention for CPU resources, but the system may still be operating within acceptable range.</li>' +
        '<li><strong>Red (2+)</strong> indicates that there is considerable contention for CPU resources and the system may be operating sub-optimally and action should be taken by the system administrator.</li>' +
      '</ul>',
    sortBy: 'utilization.normalized_load'
  }, {
    title: 'Contention',
    description: 'LLC cache contention',
    sortBy: 'contention.llc.system.value'
  }, {
    title: 'Actions'
  }]
});

App.NodesController = Ember.ArrayController.extend(App.Filterable, App.Sortable, {
  needs: ['nodesColumns', 'application', 'quota', 'node'],
  itemController: 'node',
  sortProperty: 'name',
  sortAscending: true,
  filterProperties: ['name'],
  isMatch: function (record) {
    if (!this.get('selectedTenant')) return true;
{'fraction_non_alphanumeric': 0.13863636363636364, 'fraction_numerical': 0.0022727272727272726, 'mean_word_length': 3.686900958466454, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '397783', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1306, 'n_words': 407}