<commit_before>Records        = require 'shared/services/records'
Session        = require 'shared/services/session'
EventBus       = require 'shared/services/event_bus'
AbilityService = require 'shared/services/ability_service'
ModalService   = require 'shared/services/modal_service'
ThreadService  = require 'shared/services/thread_service'
LmoUrlService  = require 'shared/services/lmo_url_service'
FlashService   = require 'shared/services/flash_service'
I18n           = require 'shared/services/i18n'

{ listenForTranslations, listenForReactions } = require 'shared/helpers/listen'
{ scrollTo }                                  = require 'shared/helpers/layout'

angular.module('loomioApp').directive 'contextPanel', ['$rootScope', 'clipboard', ($rootScope, clipboard) ->
  scope: {discussion: '='}
  restrict: 'E'
  replace: true
  templateUrl: 'generated/components/thread_page/context_panel/context_panel.html'
  controller: ['$scope', ($scope) ->
    $scope.padUrl = AppConfig.padUrl

    $scope.status = ->
      return 'pinned' if $scope.discussion.pinned

    $scope.statusTitle = ->
      I18n.t "context_panel.thread_status.#{$scope.status()}"

    $scope.showLintel = (bool) ->
      EventBus.broadcast $rootScope, 'showThreadLintel', bool

    $scope.showRevisionHistory = ->
      ModalService.open 'RevisionHistoryModal', model: => $scope.discussion

    $scope.actions = [<commit_msg>por alguna razon siempre desaparece appconfig<commit_after>Records        = require 'shared/services/records'
Session        = require 'shared/services/session'
EventBus       = require 'shared/services/event_bus'
AbilityService = require 'shared/services/ability_service'
ModalService   = require 'shared/services/modal_service'
ThreadService  = require 'shared/services/thread_service'
LmoUrlService  = require 'shared/services/lmo_url_service'
FlashService   = require 'shared/services/flash_service'
I18n           = require 'shared/services/i18n'
AppConfig      = require 'shared/services/app_config.coffee'

{ listenForTranslations, listenForReactions } = require 'shared/helpers/listen'
{ scrollTo }                                  = require 'shared/helpers/layout'

angular.module('loomioApp').directive 'contextPanel', ['$rootScope', 'clipboard', ($rootScope, clipboard) ->
  scope: {discussion: '='}
  restrict: 'E'
  replace: true
  templateUrl: 'generated/components/thread_page/context_panel/context_panel.html'
  controller: ['$scope', ($scope) ->
    $scope.padUrl = AppConfig.padUrl

    $scope.status = ->
      return 'pinned' if $scope.discussion.pinned

    $scope.statusTitle = ->
      I18n.t "context_panel.thread_status.#{$scope.status()}"

    $scope.showLintel = (bool) ->
      EventBus.broadcast $rootScope, 'showThreadLintel', bool

    $scope.showRevisionHistory = ->
      ModalService.open 'RevisionHistoryModal', model: => $scope.discussion

    $scope.actions = [
{'fraction_non_alphanumeric': 0.12469858766792973, 'fraction_numerical': 0.004133654839820875, 'mean_word_length': 3.9054054054054053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3437977', 'n_tokens_mistral': 881, 'n_tokens_neox': 848, 'n_words': 154}