<commit_before>angular.module('loomioApp').factory 'UserHelpService', ($sce, CurrentUser) ->
  new class UserHelpService

    helpLocale: ->
      switch CurrentUser.locale
        when 'es', 'an', 'ca', 'gl' then 'es'
        when 'zh-TW'                then 'zh'
        when 'ar'                   then 'ar'
        else 'en'

    helpLink: ->
      "https://loomio.gitbooks.io/manual/content/#{@helpLocale()}/index.html"

    helpVideo: ->
      switch CurrentUser.locale
        when 'es', 'an', 'ca', 'gl' then "https://www.youtube.com/embed/BT9f0Nj0zB8"
        else "https://www.youtube.com/embed/RonxhKSSlG8"

    helpVideoUrl: ->
      $sce.trustAsResourceUrl(@helpVideo())<commit_msg>Update english help video<commit_after>angular.module('loomioApp').factory 'UserHelpService', ($sce, CurrentUser) ->
  new class UserHelpService

    helpLocale: ->
      switch CurrentUser.locale
        when 'es', 'an', 'ca', 'gl' then 'es'
        when 'zh-TW'                then 'zh'
        when 'ar'                   then 'ar'
        else 'en'

    helpLink: ->
      "https://loomio.gitbooks.io/manual/content/#{@helpLocale()}/index.html"

    helpVideo: ->
      switch CurrentUser.locale
        when 'es', 'an', 'ca', 'gl' then "https://www.youtube.com/embed/BT9f0Nj0zB8"
        else "https://www.youtube.com/embed/CoYYNthNxOY"

    helpVideoUrl: ->
      $sce.trustAsResourceUrl(@helpVideo())
{'fraction_non_alphanumeric': 0.15691868758915833, 'fraction_numerical': 0.006419400855920114, 'mean_word_length': 2.3725961538461537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, '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': '3824519', 'n_tokens_mistral': 482, 'n_tokens_neox': 460, 'n_words': 88}