<commit_before>(function(){
  angular.module('tokens',[])
      .directive('tokens', [function(){
        return {
          restrict: 'A',
          scope : {
            tokensSuggestions : '=',
            tokensAdd : '&',
            tokensRemove : '&'
          },
          link : function(scope, el){
            var $el = $(el);

            $el.tokens({source : scope.tokensSuggestions });

            $el.on('add', scope.tokensAdd);
            $el.on('remove', scope.tokensRemove);

            scope.$watch('tokensSuggestions',function(newValue, oldValue){
              console.log('Mitsuu');
              $el.data('tokens').source = scope.tokensSuggestions;
            },true);
          }
        };
      }]);
})();<commit_msg>Cleaning and exposing fidel object<commit_after>(function(){
  angular.module('tokens',[])
      .directive('tokens', [function(){
        return {
          restrict: 'A',
          scope : {
            tokensSuggestions : '=',
            tokensAdd : '&',
            tokensRemove : '&'
          },
          link : function(scope, el){
            var $el = $(el);

            $el.tokens({source : scope.tokensSuggestions });
            scope.tokens = $el.data('tokens');

            $el.on('add', scope.tokensAdd);
            $el.on('remove', scope.tokensRemove);

            scope.$watch('tokensSuggestions',function(){
              scope.tokens.source = scope.tokensSuggestions;
            },true);
          }
        };
      }]);
})();
{'fraction_non_alphanumeric': 0.16744496330887257, 'fraction_numerical': 0.0, 'mean_word_length': 1.6642984014209592, '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': '7181816', 'n_tokens_mistral': 414, 'n_tokens_neox': 400, 'n_words': 62}