<commit_before>@lobbyQueue = new Meteor.Collection "lobbyQueue"

Meteor.startup ->
  lobbyQueue.remove({})

@cancelFindServer = (lobbyId)->
  console.log "canceling server search: "+lobbyId
  lobbyQueue.remove
    lobby: lobbyId

@startFindServer = (lobbyId)->
  console.log "finding server for "+lobbyId
  lobbyQueue.insert
    lobby: lobbyId
    started: new Date().getTime()
<commit_msg>Set status to 1 when queuing<commit_after>@lobbyQueue = new Meteor.Collection "lobbyQueue"

Meteor.startup ->
  lobbyQueue.remove({})

@cancelFindServer = (lobbyId)->
  console.log "canceling server search: "+lobbyId
  lobbyQueue.remove
    lobby: lobbyId

@startFindServer = (lobbyId)->
  console.log "finding server for "+lobbyId
  lobbyQueue.insert
    lobby: lobbyId
    started: new Date().getTime()
  lobbies.update {_id: lobbyId}, {$set: {status: 1}}
{'fraction_non_alphanumeric': 0.12514757969303425, 'fraction_numerical': 0.0023612750885478157, 'mean_word_length': 4.578947368421052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1195961', 'n_tokens_mistral': 286, 'n_tokens_neox': 291, 'n_words': 69}