<commit_before>'use strict';

angular.module('yaru22.angular-timeago').filter('timeAgo', function (nowTime, timeAgo) {
  return function (value, format, timezone) {
    var fromTime = timeAgo.parse(value);
    var diff = nowTime() - fromTime;
    return timeAgo.inWords(diff, fromTime, format, timezone);
  };
});<commit_msg>set filter as stateful filter<commit_after>'use strict';

angular.module('yaru22.angular-timeago').filter('timeAgo', function (nowTime, timeAgo) {
  function timeAgoFilter(value, format, timezone) {
    var fromTime = timeAgo.parse(value);
    var diff = nowTime() - fromTime;
    return timeAgo.inWords(diff, fromTime, format, timezone);
  };
  timeAgoFilter.$stateful = true;
  return timeAgoFilter;
});
{'fraction_non_alphanumeric': 0.1410958904109589, 'fraction_numerical': 0.005479452054794521, 'mean_word_length': 5.091666666666667, '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': '4974554', 'n_tokens_mistral': 245, 'n_tokens_neox': 240, 'n_words': 53}