<commit_before>export default function() {
  this.transition(
    this.fromRoute('setup.start'),
    this.toRoute('setup.organization'),
    this.use('toLeft'),
    this.reverse('toRight')
  );
  this.transition(
    this.fromRoute('setup.organization'),
    this.toRoute('setup.locations'),
    this.use('toLeft'),
    this.reverse('toRight')
  );
  this.transition(
    this.fromRoute('setup.locations'),
    this.toRoute('setup.team'),
    this.use('toLeft'),
    this.reverse('toRight')
  );
  this.transition(
    this.fromRoute('setup.team'),
    this.toRoute('setup.data-environments'),
    this.use('toLeft'),
    this.reverse('toRight')
  );
  this.transition(
    this.fromRoute('setup.data-environments'),
    this.toRoute('setup.security-controls'),
    this.use('toLeft'),
    this.reverse('toRight')
  );
  this.transition(
    this.fromRoute('setup.security-controls'),
    this.toRoute('setup.finish'),
    this.use('toLeft'),
    this.reverse('toRight')
  );
};<commit_msg>programatically build SPD step transitions<commit_after>import { SETUP_STEPS } from 'sheriff/models/organization-profile';

export function buildSPDTransition(context, from, to) {
  context.transition(
    context.fromRoute(from),
    context.toRoute(to),
    context.use('toLeft'),
    context.reverse('toRight')
  );
}

export default function() {
  SETUP_STEPS.forEach((current, index) => {
    if(index < SETUP_STEPS.length) {
      let next = SETUP_STEPS[index + 1];
      buildSPDTransition(this, `setup.${current}`, `setup.${next}`);
    }
  });
};
{'fraction_non_alphanumeric': 0.17475728155339806, 'fraction_numerical': 0.0006472491909385113, 'mean_word_length': 3.9710610932475885, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2802514', 'n_tokens_mistral': 510, 'n_tokens_neox': 500, 'n_words': 65}