<commit_before>########################################################
# AngularJS service to remove feeds, folders, and hide read feeds in the view
########################################################

angular.module('feedbunch').service 'cleanupSvc',
['$rootScope', 'findSvc',
($rootScope, findSvc)->

  #--------------------------------------------
  # PRIVATE FUNCTION: Update the model to account for a feed having been removed from a folder
  #--------------------------------------------
  feed_removed_from_folder = (folder_id)->
    folder = findSvc.find_folder folder_id
    if folder
      # Remove folder if it's empty
      feeds = findSvc.find_folder_feeds folder<commit_msg>Added missing injection of $filter service in cleanupSvc angularjs service.<commit_after>########################################################
# AngularJS service to remove feeds, folders, and hide read feeds in the view
########################################################

angular.module('feedbunch').service 'cleanupSvc',
['$rootScope', '$filter', 'findSvc',
($rootScope, $filter, findSvc)->

  #--------------------------------------------
  # PRIVATE FUNCTION: Update the model to account for a feed having been removed from a folder
  #--------------------------------------------
  feed_removed_from_folder = (folder_id)->
    folder = findSvc.find_folder folder_id
    if folder
      # Remove folder if it's empty
      feeds = findSvc.find_folder_feeds folder
{'fraction_non_alphanumeric': 0.33741496598639453, 'fraction_numerical': 0.0, 'mean_word_length': 2.8812664907651717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5448816', 'n_tokens_mistral': 352, 'n_tokens_neox': 335, 'n_words': 112}