<commit_before>import { inject as service } from '@ember/service';
import { alias, readOnly } from '@ember/object/computed';
import Controller, { inject as controller } from '@ember/controller';
import SortableFactory from 'nomad-ui/mixins/sortable-factory';

export default Controller.extend(
  SortableFactory([
    'id',
    'schedulable',
    'controllersHealthyProportion',
    'nodesHealthyProportion',
    'provider',
  ]),
  {
    system: service(),
    userSettings: service(),
    csiController: controller('csi'),

    isForbidden: alias('csiController.isForbidden'),

    queryParams: {
      currentPage: 'page',
      sortProperty: 'sort',
      sortDescending: 'desc',
    },

    currentPage: 1,
    pageSize: readOnly('userSettings.pageSize'),

    sortProperty: 'id',
    sortDescending: true,

    listToSort: alias('model'),
    sortedVolumes: alias('listSorted'),

    // TODO: Remove once this page gets search capability
    resetPagination() {
      if (this.currentPage != null) {<commit_msg>Sort alphabetically, A first<commit_after>import { inject as service } from '@ember/service';
import { alias, readOnly } from '@ember/object/computed';
import Controller, { inject as controller } from '@ember/controller';
import SortableFactory from 'nomad-ui/mixins/sortable-factory';

export default Controller.extend(
  SortableFactory([
    'id',
    'schedulable',
    'controllersHealthyProportion',
    'nodesHealthyProportion',
    'provider',
  ]),
  {
    system: service(),
    userSettings: service(),
    csiController: controller('csi'),

    isForbidden: alias('csiController.isForbidden'),

    queryParams: {
      currentPage: 'page',
      sortProperty: 'sort',
      sortDescending: 'desc',
    },

    currentPage: 1,
    pageSize: readOnly('userSettings.pageSize'),

    sortProperty: 'id',
    sortDescending: false,

    listToSort: alias('model'),
    sortedVolumes: alias('listSorted'),

    // TODO: Remove once this page gets search capability
    resetPagination() {
      if (this.currentPage != null) {
{'fraction_non_alphanumeric': 0.1302439024390244, 'fraction_numerical': 0.000975609756097561, 'mean_word_length': 3.8372641509433962, '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': '2635989', 'n_tokens_mistral': 611, 'n_tokens_neox': 598, 'n_words': 143}