<commit_before>import Component from '@ember/component';
import { sort } from '@ember/object/computed';
import { task, timeout } from 'ember-concurrency';
import { inject as service } from '@ember/service';

export default Component.extend({
  flashMessages: service(),
  sortedContestsProperties: [
    'awardName',
  ],
  sortedContests: sort(
    'model.session.contests',
    'sortedContestsProperties',
  ),
  updateSelection: task(function *(newSelection, value, operation) {
    let entry = yield this.model;
    yield entry.get('contests').setObjects(newSelection);
    yield timeout(1000);
    yield entry.save();
    this.flashMessages.success(`${value.awardName} ${operation}!`);
  }).restartable(),
});
<commit_msg>Sort contests by treeSort<commit_after>import Component from '@ember/component';
import { sort } from '@ember/object/computed';
import { task, timeout } from 'ember-concurrency';
import { inject as service } from '@ember/service';

export default Component.extend({
  flashMessages: service(),
  sortedContestsProperties: [
    'treeSort',
  ],
  sortedContests: sort(
    'model.session.contests',
    'sortedContestsProperties',
  ),
  updateSelection: task(function *(newSelection, value, operation) {
    let entry = yield this.model;
    yield entry.get('contests').setObjects(newSelection);
    yield timeout(1000);
    yield entry.save();
    this.flashMessages.success(`${value.awardName} ${operation}!`);
  }).restartable(),
});

{'fraction_non_alphanumeric': 0.14607508532423208, 'fraction_numerical': 0.005460750853242321, 'mean_word_length': 4.864, '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': '2113819', 'n_tokens_mistral': 427, 'n_tokens_neox': 423, 'n_words': 99}