<commit_before>'use strict';

angular.module('kiwiWeb')
.factory('Transition', function(Routes) {

  return {
    getTransition: function(toState, toParams, fromState, fromParams) {

      var fromParent, toParent, fromChild, toChild, fromIndex, toIndex;

      fromParent = fromState.name.split('.')[0];
      fromChild = fromState.name.split('.')[1];
      toParent = toState.name.split('.')[0];
      toChild = toState.name.split('.')[1];

      if(toParent === 'customer') {
        console.log('Cubo!');
        return 'rotateCubeDown';
      }

      if(fromParent === 'customer') {
        return 'rotateCubeUp';
      }

      if(fromParent === toParent) {
        fromIndex = Routes[fromParent][fromChild];
        toIndex = Routes[toParent][toChild];
        return toIndex > fromIndex ? 'slideUp' : 'slideDown';
      }    
    }
  }
});<commit_msg>Removes console log.<commit_after>'use strict';

angular.module('kiwiWeb')
.factory('Transition', function(Routes) {

  return {
    getTransition: function(toState, toParams, fromState, fromParams) {

      var fromParent, toParent, fromChild, toChild, fromIndex, toIndex;

      fromParent = fromState.name.split('.')[0];
      fromChild = fromState.name.split('.')[1];
      toParent = toState.name.split('.')[0];
      toChild = toState.name.split('.')[1];

      if(toParent === 'customer') {
        return 'rotateCubeDown';
      }

      if(fromParent === 'customer') {
        return 'rotateCubeUp';
      }

      if(fromParent === toParent) {
        fromIndex = Routes[fromParent][fromChild];
        toIndex = Routes[toParent][toChild];
        return toIndex > fromIndex ? 'slideUp' : 'slideDown';
      }    
    }
  }
});
{'fraction_non_alphanumeric': 0.1614614024749558, 'fraction_numerical': 0.004714201532115498, 'mean_word_length': 2.8944954128440368, 'pattern_counts': {'":': 0, '<': 3, '<?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': '649126', 'n_tokens_mistral': 541, 'n_tokens_neox': 528, 'n_words': 93}