<commit_before>angular.module("doubtfire.common.services.header", [])
#
# Service for handling the header
#
.factory("headerService", ($rootScope) ->
  # Internal object that stores the menus
  $rootScope.headerMenuData = [ ]

  headerService = {}

  #
  # Returns the current menus
  #
  headerService.getMenus = ->
    $rootScope.headerMenuData

  #
  # Clears all menus in the header
  #
  headerService.clearMenus = ->
    $rootScope.headerMenuData.length = 0

  #
  # Set new menus where:<commit_msg>FIX: Reset default state of `showHeader` to true<commit_after>angular.module("doubtfire.common.services.header", [])
#
# Service for handling the header
#
.factory("headerService", ($rootScope) ->
  # Internal object that stores the menus
  $rootScope.headerMenuData = [ ]
  # Internal object that stores the visbility of the header
  $rootScope.showHeader = true

  headerService = {}

  #
  # Returns the current menus
  #
  headerService.getMenus = ->
    $rootScope.headerMenuData

  #
  # Clears all menus in the header
  #
  headerService.clearMenus = ->
    $rootScope.headerMenuData.length = 0

  #
  # Set new menus where:
{'fraction_non_alphanumeric': 0.11003521126760564, 'fraction_numerical': 0.0017605633802816902, 'mean_word_length': 3.6219512195121952, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5554604', 'n_tokens_mistral': 366, 'n_tokens_neox': 347, 'n_words': 87}