<commit_before># module definition
# ------------------------------------------------------------
angular.module('hoay.app', [
  # angular modules
  'ngRoute'
  'ngTouch'
  # angular libs
  'ajoslin.mobile-navigate'
  'jm.i18next'
  'ngStorage'
  # hoay modules
  'hoay.templates'
  'hoay.version'
  'hoay.helper'
  'hoay.dates'
  'hoay.calculate'
  'hoay.result'
  'hoay.info'
  'hoay.settings'
])

# config
# ------------------------------------------------------------
.config([
  '$routeProvider',
  '$locationProvider'
  ($routeProvider, $locationProvider) ->
    $routeProvider.otherwise
      redirectTo: '/'

    # html5Mode (deactivated by using cordova)
    $locationProvider.html5Mode !window.cordova
])

.config([
  '$i18nextProvider'
  ($i18nextProvider) ->
    $i18nextProvider.options =
      useCookie: false
      useLocalStorage: false
      detectLngFromHeaders: false
      fallbackLng: false # disabling fallbacks
      load: 'current' # avoid uneeded loading of fallback files
      getAsync: false
      resGetPath: 'assets/locales/__lng__.json'
])

# controller
# ------------------------------------------------------------
.controller 'appController',[
  '$log',
  '$window'
  '$i18next'
  '$localStorage'
  'HOAYCONSTANTS'
  ($log, $window, $i18next, $localStorage, hoayConstants)->

    init = ->
      # setting default values
      $localStorage.$default
        startDate: hoayConstants.START_DATE_DEFAULT
        endDate: hoayConstants.END_DATE_DEFAULT
        langID: hoayConstants.LANG_EN_US

      # Important note:
      # Set 'lng' of $i18next.options here using localStore or default lang
      # because it is not possible to inject $localStorage earlier into .config()
      $i18next.options.lng = $localStorage.langID or hoayConstants.LANG_EN_US

    init()
]<commit_msg>removing dependencies<commit_after># module definition
# ------------------------------------------------------------
angular.module('hoay.app', [
  # angular modules
  'ngRoute'
  'ngTouch'
  # angular libs
  'ajoslin.mobile-navigate'
  'jm.i18next'
  'ngStorage'
  # hoay modules
  'hoay.dates'
  'hoay.templates'
  'hoay.helper'
  'hoay.calculate'
  'hoay.result'
  'hoay.info'
  'hoay.settings'
])

# config
# ------------------------------------------------------------
.config([
  '$routeProvider',
  '$locationProvider'
  ($routeProvider, $locationProvider) ->
    $routeProvider.otherwise
      redirectTo: '/'

    # html5Mode (deactivated by using cordova)
    $locationProvider.html5Mode !window.cordova
])

.config([
  '$i18nextProvider'
  ($i18nextProvider) ->
    $i18nextProvider.options =
      useCookie: false
      useLocalStorage: false
      detectLngFromHeaders: false
      fallbackLng: false # disabling fallbacks
      load: 'current' # avoid uneeded loading of fallback files
      getAsync: false
      resGetPath: 'assets/locales/__lng__.json'
])

# controller
# ------------------------------------------------------------
.controller 'appController',[
  '$log',
  '$window'
  '$i18next'
  '$localStorage'
  'DATE_DEFAULT'
  'LANG_ID'
  ($log, $window, $i18next, $localStorage, DATE_DEFAULT, LANG_ID)->

    init = ->
      # setting default values
      $localStorage.$default
        startDate: DATE_DEFAULT.START
        endDate: DATE_DEFAULT.END
        langID: LANG_ID.EN_US

      # Important note:
      # Set 'lng' of $i18next.options here using localStore or default lang
      # because it is not possible to inject $localStorage earlier into .config()
      $i18next.options.lng = $localStorage.langID or LANG_ID.EN_US

    init()
]
{'fraction_non_alphanumeric': 0.20591517857142858, 'fraction_numerical': 0.010044642857142858, 'mean_word_length': 2.218132854578097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '67754', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1077, 'n_words': 234}