<commit_before>define(
  'ephox.alloy.behaviour.transitioning.ActiveTransitioning',

  [
    'ephox.alloy.api.events.SystemEvents',
    'ephox.alloy.behaviour.transitioning.TransitionApis',
    'ephox.alloy.construct.EventHandler',
    'ephox.boulder.api.Objects'
  ],

  function (SystemEvents, TransitionApis, EventHandler, Objects) {
    var getRoute = function (component, transConfig, transState) {

    }
    var events = function (transConfig, transState) {
      return Objects.wrapAll([
        {
          key: 'transitionend',
          value: EventHandler.nu({
            run: function (component, simulatedEvent) {
              var raw = simulatedEvent.event().raw();

              var start



              if (raw.propertyName === transConfig.property()) {
                // disable transitions immediately (Safari animates the dimension removal below)
                var route = TransitionApis.getRoute(component, transConfig, transState);
                TransitionApis.disableTransition(component, transConfig, transState);
                transConfig.onTransition()(component, route);
              }
            }
          })
        },

        {
          key: SystemEvents.attachedToDom(),
          value: EventHandler.nu({
            run: function (comp, se) {
              TransitionApis.jumpTo(comp, transConfig, transState, transConfig.initialState());
            }
          })
        }
      ]);
    };<commit_msg>TM-34: initial animation<commit_after>define(
  'ephox.alloy.behaviour.transitioning.ActiveTransitioning',

  [
    'ephox.alloy.api.events.SystemEvents',
    'ephox.alloy.behaviour.transitioning.TransitionApis',
    'ephox.alloy.construct.EventHandler',
    'ephox.boulder.api.Objects',
    'ephox.katamari.api.Fun'
  ],

  function (SystemEvents, TransitionApis, EventHandler, Objects, Fun) {
    var findRoute = function (component, transConfig, route) {
      return Objects.readOptFrom(transConfig.routes(), route.start()).map(Fun.apply).bind(function (sConfig) {
        return Objects.readOptFrom(sConfig, route.destination()).map(Fun.apply);
      });
    };

    var events = function (transConfig, transState) {
      return Objects.wrapAll([
        {
          key: 'transitionend',
          value: EventHandler.nu({
            run: function (component, simulatedEvent) {
              var raw = simulatedEvent.event().raw();
              var route = TransitionApis.getRoute(component, transConfig, transState);
              findRoute(component, transConfig, route).each(function (rInfo) {
                if (raw.propertyName = rInfo.transition()) {
                  TransitionApis.jumpTo(component, transConfig, transState, route.destination());
                  transConfig.onTransition()(component, route);
                }
              });
            }
          })
        },

        {
          key: SystemEvents.attachedToDom(),
          value: EventHandler.nu({
            run: function (comp, se) {
              TransitionApis.jumpTo(comp, transConfig, transState, transConfig.initialState());
            }
          })
        }
      ]);
    };
{'fraction_non_alphanumeric': 0.11667197959834237, 'fraction_numerical': 0.000637551801083838, 'mean_word_length': 2.225077081192189, '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': '2371551', 'n_tokens_mistral': 872, 'n_tokens_neox': 837, 'n_words': 147}