<commit_before>globals = require 'globals'
Promise = require 'bluebird'
sinkrow = require 'sinkrow'
kd = require 'kd'
JTreeViewController = kd.JTreeViewController
KDCustomHTMLView = kd.CustomHTMLView
KDNotificationView = kd.NotificationView
isChannelCollaborative = require '../../util/isChannelCollaborative'
groupifyLink = require '../../util/groupifyLink'
remote = require('../../remote').getInstance()
showError = require '../../util/showError'
whoami = require '../../util/whoami'
nick = require '../../util/nick'
ActivitySideView = require './activitysideview'
ChatSearchModal = require './chatsearchmodal'
CustomLinkView = require '../../customlinkview'
FSHelper = require '../../util/fs/fshelper'
Machine = require '../../providers/machine'
MoreVMsModal = require './morevmsmodal'
MoreWorkspacesModal = require './moreworkspacesmodal'
SidebarMessageItem = require './sidebarmessageitem'
SidebarPinnedItem = require './sidebarpinneditem'
SidebarTopicItem = require './sidebartopicitem'
ComputeHelpers = require '../../providers/computehelpers'
SidebarOwnMachinesList = require './sidebarownmachineslist'
SidebarSharedMachinesList = require './sidebarsharedmachineslist'
environmentDataProvider = require 'app/userenvironmentdataprovider'


# this file was once nice and tidy (see https://github.com/koding/koding/blob/dd4e70d88795fe6d0ea0bfbb2ef0e4a573c08999/client/Social/Activity/sidebar/activitysidebar.coffee)
# once we merged two sidebars into one
# activity sidebar became the mainsidebar
# and unfortunately we have too much goin on here right now
# vm menu and activity menu should be separated
# needs a little refactor. - SY

module.exports = class ActivitySidebar extends KDCustomHTMLView

  typeMap =
    privatemessage : 'Message'
    topic          : 'Topic'
    post           : 'Post'
    chat           : 'Chat'

  slugProps =
    SocialMessage : 'slug'
    SocialChannel : 'name'

  revive = (data) ->
<commit_msg>ActivitySidebar: Fix require paths.<commit_after>globals = require 'globals'
Promise = require 'bluebird'
sinkrow = require 'sinkrow'
kd = require 'kd'
JTreeViewController = kd.JTreeViewController
KDCustomHTMLView = kd.CustomHTMLView
KDNotificationView = kd.NotificationView
isChannelCollaborative = require '../../util/isChannelCollaborative'
groupifyLink = require '../../util/groupifyLink'
remote = require('../../remote').getInstance()
showError = require '../../util/showError'
whoami = require '../../util/whoami'
nick = require '../../util/nick'
ActivitySideView = require './activitysideview'
ChatSearchModal = require './chatsearchmodal'
CustomLinkView = require '../../customlinkview'
FSHelper = require '../../util/fs/fshelper'
Machine = require 'app/providers/machine'
MoreVMsModal = require './morevmsmodal'
MoreWorkspacesModal = require './moreworkspacesmodal'
SidebarMessageItem = require './sidebarmessageitem'
SidebarPinnedItem = require './sidebarpinneditem'
SidebarTopicItem = require './sidebartopicitem'
ComputeHelpers = require 'app/providers/computehelpers'
SidebarOwnMachinesList = require './sidebarownmachineslist'
SidebarSharedMachinesList = require './sidebarsharedmachineslist'
environmentDataProvider = require 'app/userenvironmentdataprovider'


# this file was once nice and tidy (see https://github.com/koding/koding/blob/dd4e70d88795fe6d0ea0bfbb2ef0e4a573c08999/client/Social/Activity/sidebar/activitysidebar.coffee)
# once we merged two sidebars into one
# activity sidebar became the mainsidebar
# and unfortunately we have too much goin on here right now
# vm menu and activity menu should be separated
# needs a little refactor. - SY

module.exports = class ActivitySidebar extends KDCustomHTMLView

  typeMap =
    privatemessage : 'Message'
    topic          : 'Topic'
    post           : 'Post'
    chat           : 'Chat'

  slugProps =
    SocialMessage : 'slug'
    SocialChannel : 'name'

  revive = (data) ->

{'fraction_non_alphanumeric': 0.11344969199178645, 'fraction_numerical': 0.011293634496919919, 'mean_word_length': 4.420027816411683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6642853', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1118, 'n_words': 289}