<commit_before>
class Status
  constructor: ->
    @connection = 'offline'
    @self =
      username: 'Unknown'
    @identitiesById = {}
    @conversations = []
    @conversationsById = {}
    @conversationCurrent = null
    @messagesByConversationId = {}

  # managing fns
  identityAdd: (id, name) ->
    object = id: id, name: name
    @identitiesById[id] = object
  conversationsSort: () ->
    timestampDesc = (a, b) -> a.ts > a.ts
    @conversations = @conversations.sort timestampDesc
  conversationAdd: (id, name, participants, ts) ->
    object = id: id, name: name, participants: participants, timestamp: ts
    @conversations.push object
    @conversationsSort()<commit_msg>put recent conversations at top<commit_after>
class Status
  constructor: ->
    @connection = 'offline'
    @self =
      username: 'Unknown'
    @identitiesById = {}
    @conversations = []
    @conversationsById = {}
    @conversationCurrent = null
    @messagesByConversationId = {}

  # managing fns
  identityAdd: (id, name) ->
    object = id: id, name: name
    @identitiesById[id] = object
  conversationsSort: () ->
    timestampDesc = (a, b) -> a.ts < a.ts
    @conversations = @conversations.sort timestampDesc
  conversationAdd: (id, name, participants, ts) ->
    object = id: id, name: name, participants: participants, timestamp: ts
    @conversations.push object
    @conversationsSort()
{'fraction_non_alphanumeric': 0.1251798561151079, 'fraction_numerical': 0.0, 'mean_word_length': 3.3333333333333335, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 14, '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': '4464866', 'n_tokens_mistral': 427, 'n_tokens_neox': 430, 'n_words': 109}