<commit_before>class SocialApiController extends KDController

  constructor: (options = {}, data) ->
    @openedChannels = {}
    super options, data

    KD.getSingleton("mainController").ready @bound "openGroupChannel"

  getPrefetchedData:->
    return {} unless KD.socialApiData
    KD.socialApiData["popularTopics"] = mapChannels KD.socialApiData["popularTopics"]
    KD.socialApiData["followedChannels"] = mapChannels KD.socialApiData["followedChannels"]
    KD.socialApiData["pinnedMessages"] = mapActivities KD.socialApiData["pinnedMessages"]
    KD.socialApiData["privateMessages"] = mapPrivateMessages KD.socialApiData["privateMessages"]
    return KD.socialApiData<commit_msg>Social: do not modify KD data<commit_after>class SocialApiController extends KDController

  constructor: (options = {}, data) ->
    @openedChannels = {}
    super options, data

    KD.getSingleton("mainController").ready @bound "openGroupChannel"

  getPrefetchedData:->
    data = {}
    return data unless KD.socialApiData
    data["popularTopics"]    = mapChannels KD.socialApiData["popularTopics"]
    data["followedChannels"] = mapChannels KD.socialApiData["followedChannels"]
    data["pinnedMessages"]   = mapActivities KD.socialApiData["pinnedMessages"]
    data["privateMessages"]  = mapPrivateMessages KD.socialApiData["privateMessages"]
    return data
{'fraction_non_alphanumeric': 0.11152141802067947, 'fraction_numerical': 0.0, 'mean_word_length': 5.4523809523809526, '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': '4923648', 'n_tokens_mistral': 408, 'n_tokens_neox': 374, 'n_words': 70}