<commit_before>import Component from '@ember/component';
import { computed } from '@ember/object';

import { or } from 'ember-awesome-macros';
import { findBy } from 'ember-awesome-macros/array';
import raw from 'ember-macro-helpers/raw';

export default Component.extend({
  tagName: '',

  models: null,
  modelId: null,

  modelsWithNull: computed('models.[]', function() {
    return [{ id: null }].concat(this.models);
  }),

  model: findBy('modelsWithNull', raw('id'), or('modelId', null)),

  actions: {
    onChange(model) {
      this.onChange(model.id);
    },
  },
});<commit_msg>aircraft-model-select: Use regular `computed()` instead of `ember-awesome-macros`<commit_after>import Component from '@ember/component';
import { computed } from '@ember/object';

export default Component.extend({
  tagName: '',

  models: null,
  modelId: null,

  modelsWithNull: computed('models.[]', function() {
    return [{ id: null }].concat(this.models);
  }),

  model: computed('modelsWithNull.@each.id', 'modelId', function() {
    return this.modelsWithNull.findBy('id', this.modelId || null);
  }),

  actions: {
    onChange(model) {
      this.onChange(model.id);
    },
  },
});
{'fraction_non_alphanumeric': 0.17775905644481887, 'fraction_numerical': 0.0, 'mean_word_length': 4.187772925764192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3424834', 'n_tokens_mistral': 385, 'n_tokens_neox': 377, 'n_words': 83}