<commit_before>SignupController = Space.accountsUi.SignupController;

SignupController.extend(Donations, 'OrgRegistrationsController', {

  mixin: [
    Space.messaging.EventSubscribing,
    Space.messaging.EventPublishing
  ],

  dependencies: {
    orgRegStore: 'Donations.OrgRegistrationsStore',
    signupsStore: 'Space.accountsUi.SignupsStore'
  },

  requestSignupEvent: 'Donations.OrgRegistrationRequested',
  initiateSignupCommand: 'Donations.RegisterOrganization',

  eventSubscriptions() {
    let superSubs = SignupController.prototype.eventSubscriptions.call(this);
    return superSubs.concat([{
      'Donations.OrgRegistrationFormSubmitted': this._onOrgRegistrationFormSubmit,
      'Space.accountsUi.SignupCompleted': this._onSignupCompleted
    }]);
  },

  _onOrgRegistrationFormSubmit() {
    this.publish(new Donations.OrgRegistrationRequested({
      name: this.orgRegStore.orgName(),
      password: new Password(<PASSWORD>()),
      country: new Country(this.orgRegStore.orgCountry()),<commit_msg>Remove message traits from Signup controller<commit_after>SignupController = Space.accountsUi.SignupController;

SignupController.extend(Donations, 'OrgRegistrationsController', {

  dependencies: {
    orgRegStore: 'Donations.OrgRegistrationsStore',
    signupsStore: 'Space.accountsUi.SignupsStore'
  },

  requestSignupEvent: 'Donations.OrgRegistrationRequested',
  initiateSignupCommand: 'Donations.RegisterOrganization',

  eventSubscriptions() {
    let superSubs = SignupController.prototype.eventSubscriptions.call(this);
    return superSubs.concat([{
      'Donations.OrgRegistrationFormSubmitted': this._onOrgRegistrationFormSubmit,
      'Space.accountsUi.SignupCompleted': this._onSignupCompleted
    }]);
  },

  _onOrgRegistrationFormSubmit() {
    this.publish(new Donations.OrgRegistrationRequested({
      name: this.orgRegStore.orgName(),
      password: new Password(<PASSWORD>()),
      country: new Country(this.orgRegStore.orgCountry()),
{'fraction_non_alphanumeric': 0.10555555555555556, 'fraction_numerical': 0.0, 'mean_word_length': 5.516447368421052, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4231436', 'n_tokens_mistral': 594, 'n_tokens_neox': 561, 'n_words': 75}