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

export default Component.extend({
  tagName: 'input',
  type: 'radio',
  attributeBindings: ['type', 'htmlChecked:checked', 'value', 'name', 'disabled'],

  value: null,
  checked: null,

  htmlChecked: computed('value', 'checked', function() {
    return this.get('value') === this.get('checked');
  }),

  change: function() {
    this.set('checked', this.get('value'));
  },

  _setCheckedProp: function() {
    if (!this.element) { return; }
    this.element.checked = this.get('htmlChecked')
  },

  _updateElementValue: observer('htmlChecked', function() {
    once(this, '_setCheckedProp');
  })
});
<commit_msg>remove unnecessary observer<commit_after>import { computed } from '@ember/object';
import Component from '@ember/component';

export default Component.extend({
  tagName: 'input',
  type: 'radio',
  attributeBindings: ['type', 'htmlChecked:checked', 'value', 'name', 'disabled'],

  value: null,
  checked: null,

  htmlChecked: computed('value', 'checked', function() {
    return this.get('value') === this.get('checked');
  }),

  change: function() {
    this.set('checked', this.get('value'));
    if (this.element) {
      this.element.checked = this.get('htmlChecked')
    }
  },
});

{'fraction_non_alphanumeric': 0.18690213392200147, 'fraction_numerical': 0.0, 'mean_word_length': 4.596707818930041, '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': '2113775', 'n_tokens_mistral': 415, 'n_tokens_neox': 406, 'n_words': 95}