<commit_before>########################################################
# AngularJS service to load the Start page
########################################################

angular.module('feedbunch').service 'startPageSvc',
['$rootScope', '$timeout', 'currentFeedSvc', 'currentFolderSvc', 'entriesPaginationSvc', 'menuCollapseSvc',
'sidebarVisibleSvc', 'jobStateSvc',
($rootScope, $timeout, currentFeedSvc, currentFolderSvc, entriesPaginationSvc, menuCollapseSvc,
sidebarVisibleSvc, jobStateSvc)->

  #--------------------------------------------
  # Show the start page
  #--------------------------------------------
  show_start_page: ->
    currentFeedSvc.unset()
    currentFolderSvc.unset()
    entriesPaginationSvc.set_busy false
    menuCollapseSvc.close()
    jobStateSvc.load_data()
    sidebarVisibleSvc.set false<commit_msg>startPageSvc directly sets to null the current feed and folder, instead of invoking the unset() method of the corresponding services.<commit_after>########################################################
# AngularJS service to load the Start page
########################################################

angular.module('feedbunch').service 'startPageSvc',
['$rootScope', '$timeout', 'entriesPaginationSvc', 'menuCollapseSvc',
'sidebarVisibleSvc', 'jobStateSvc',
($rootScope, $timeout, entriesPaginationSvc, menuCollapseSvc,
sidebarVisibleSvc, jobStateSvc)->

  #--------------------------------------------
  # Show the start page
  #--------------------------------------------
  show_start_page: ->
    $rootScope.current_feed = null
    $rootScope.current_folder = null
    entriesPaginationSvc.reset_entries()
    menuCollapseSvc.close()
    jobStateSvc.load_data()
    sidebarVisibleSvc.set false
{'fraction_non_alphanumeric': 0.312823461759632, 'fraction_numerical': 0.0, 'mean_word_length': 3.6774193548387095, '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': '7247790', 'n_tokens_mistral': 451, 'n_tokens_neox': 448, 'n_words': 93}