<commit_before>import Ember from 'ember';
import C from 'ui/utils/constants';
import ModalBase from 'lacsso/components/modal-base';

export default ModalBase.extend({
  classNames: ['lacsso', 'modal-container', 'span-6', 'offset-3', 'modal-welcome'],
  settings: Ember.inject.service(),

  classNames      : ['modal-welcome'],

  optIn: null,

  init() {
    this._super(...arguments);
    let cur = this.get('settings').get(C.SETTING.TELEMETRY);
    this.set('optIn', cur !== 'out');
  },

  actions: {
    cancel() {
      this.get('settings').set(C.SETTING.TELEMETRY, (this.get('optIn') ? 'in' : 'out'));
      this.get('modalService').toggleModal();
    },
  },
});<commit_msg>Kubernetes waiting/store tweaks<commit_after>import Ember from 'ember';
import C from 'ui/utils/constants';
import ModalBase from 'lacsso/components/modal-base';

export default ModalBase.extend({
  classNames: ['lacsso', 'modal-container', 'span-6', 'offset-3', 'modal-welcome'],
  settings: Ember.inject.service(),
  optIn: null,

  init() {
    this._super(...arguments);
    let cur = this.get('settings').get(C.SETTING.TELEMETRY);
    this.set('optIn', cur !== 'out');
  },

  actions: {
    cancel() {
      this.get('settings').set(C.SETTING.TELEMETRY, (this.get('optIn') ? 'in' : 'out'));
      this.get('modalService').toggleModal();
    },
  },
});
{'fraction_non_alphanumeric': 0.20313666915608664, 'fraction_numerical': 0.002987303958177745, 'mean_word_length': 3.944649446494465, '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': '1677258', 'n_tokens_mistral': 465, 'n_tokens_neox': 464, 'n_words': 84}