<commit_before>/**
 * @ngdoc directive
 * @name faEdgeSwapper
 * @module famous.angular
 * @restrict EA
 * @description
 * This directive is used to hook a Famo.us EdgeSwapper into AngularJS ngAnimate events.  For example, you can apply an fa-edge-swapper directive
 * to a `<ui-view>` or an `<ng-include>` in order to quickly and easily add EdgeSwapper transitions to template changes in those directives.
 * Supports the `fa-options` directive for setting options.  Does NOT support sitting on the same element as another fa- elemtn
 *
 * @usage
 * ```html
 * <ui-view fa-edge-swapper></ui-view>
 * <ng-include src='getSrc()' fa-edge-swapper></ng-include>
 * ```
 */



//TODO:  TEST

angular.module('famous.angular')
  .directive('faEdgeSwapper', ["$famous", "$famousDecorator", function ($famous, $famousDecorator) {
    return {
      scope: true,
      restrict: 'A',
      priority: 512, //higher than ui-view and ng-include, because if it's lower it will
                     //get recompiled every time those templates change

      compile: function(tElement, tAttrs, transclude){
        var EdgeSwapper = $famous['famous/views/EdgeSwapper'];
        return {
          pre: function(scope, element, attrs){
            var isolate = $famousDecorator.ensureIsolate(scope);

            //'register' for the next child to be picked up by the animateEnterHandler
            var _nextChild;
<commit_msg>fix: typo<commit_after>/**
 * @ngdoc directive
 * @name faEdgeSwapper
 * @module famous.angular
 * @restrict EA
 * @description
 * This directive is used to hook a Famo.us EdgeSwapper into AngularJS ngAnimate events.  For example, you can apply an fa-edge-swapper directive
 * to a `<ui-view>` or an `<ng-include>` in order to quickly and easily add EdgeSwapper transitions to template changes in those directives.
 * Supports the `fa-options` directive for setting options.  Does NOT support sitting on the same element as another fa- element
 *
 * @usage
 * ```html
 * <ui-view fa-edge-swapper></ui-view>
 * <ng-include src='getSrc()' fa-edge-swapper></ng-include>
 * ```
 */



//TODO:  TEST

angular.module('famous.angular')
  .directive('faEdgeSwapper', ["$famous", "$famousDecorator", function ($famous, $famousDecorator) {
    return {
      scope: true,
      restrict: 'A',
      priority: 512, //higher than ui-view and ng-include, because if it's lower it will
                     //get recompiled every time those templates change

      compile: function(tElement, tAttrs, transclude){
        var EdgeSwapper = $famous['famous/views/EdgeSwapper'];
        return {
          pre: function(scope, element, attrs){
            var isolate = $famousDecorator.ensureIsolate(scope);

            //'register' for the next child to be picked up by the animateEnterHandler
            var _nextChild;

{'fraction_non_alphanumeric': 0.11237149946827366, 'fraction_numerical': 0.0021269053527118043, 'mean_word_length': 3.162241887905605, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7577365', 'n_tokens_mistral': 870, 'n_tokens_neox': 819, 'n_words': 283}