<commit_before>class ActivityAppController extends AppController


  KD.registerAppClass this,
    name         : 'Activity'
    searchRoute  : '/Activity?q=:text:'
    commands:
      'next tab'     : 'goToNextTab'
      'previous tab' : 'goToPreviousTab'
    keyBindings: [
      { command: 'next tab',      binding: 'ctrl+alt+]', global: yes }
      { command: 'previous tab',  binding: 'ctrl+alt+[', global: yes }
    ]

  constructor: (options = {}) ->

    options.view    = new ActivityAppView testPath : 'activity-feed'
    options.appInfo = name : 'Activity'

    super options

    {dock, appStorageController} = KD.singletons

    @appStorage = appStorageController.storage 'Activity', '2.0'

    dock.getView().show()

    @on 'LazyLoadThresholdReached', @getView().bound 'lazyLoadThresholdReached'


  post: (options = {}, callback = noop) ->

    (KD.singleton 'socialapi').message.post options, callback<commit_msg>Activity: ctrl+alt+up/down shortcut keys added<commit_after>class ActivityAppController extends AppController


  KD.registerAppClass this,
    name         : 'Activity'
    searchRoute  : '/Activity?q=:text:'
    commands:
      'next tab'     : 'goToNextTab'
      'previous tab' : 'goToPreviousTab'
    keyBindings: [
      { command: 'next tab',      binding: 'ctrl+alt+]', global: yes }
      { command: 'next tab',      binding: 'ctrl+alt+down', global: yes }
      { command: 'previous tab',  binding: 'ctrl+alt+up', global: yes }
      { command: 'previous tab',  binding: 'ctrl+alt+[', global: yes }
    ]

  constructor: (options = {}) ->

    options.view    = new ActivityAppView testPath : 'activity-feed'
    options.appInfo = name : 'Activity'

    super options

    {dock, appStorageController} = KD.singletons

    @appStorage = appStorageController.storage 'Activity', '2.0'

    dock.getView().show()

    @on 'LazyLoadThresholdReached', @getView().bound 'lazyLoadThresholdReached'


  post: (options = {}, callback = noop) ->

    (KD.singleton 'socialapi').message.post options, callback
{'fraction_non_alphanumeric': 0.1373222167729279, 'fraction_numerical': 0.00196174595389897, 'mean_word_length': 3.2677824267782425, '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': '7476336', 'n_tokens_mistral': 643, 'n_tokens_neox': 609, 'n_words': 145}