<commit_before>import _ from 'lodash'

import { SERVERS, SERVICES, SOON } from '../config'

export function parseQueue(server, autoqueue) {
  const queueData = _.find(autoqueue.servers, { name: SERVERS[server.id] }) || {}
  const { queueAvailable, queue } = queueData

  if (!queueAvailable && SOON[server.id]) {
    return 'Soon™'
  }
<commit_msg>[bug] change parser to handle new autoqueue format (#10)<commit_after>import _ from 'lodash'

import { SERVERS, SERVICES, SOON } from '../config'

export function parseQueue(server, { servers = {}, export_time }) {
  const queueData = servers[server.id] || {}
  const { queueAvailable, queue } = queueData

  if (!queueAvailable && SOON[server.id]) {
    return 'Soon™'
  }

{'fraction_non_alphanumeric': 0.14542936288088643, 'fraction_numerical': 0.002770083102493075, 'mean_word_length': 4.3161764705882355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7175912', 'n_tokens_mistral': 239, 'n_tokens_neox': 222, 'n_words': 61}