<commit_before>debug = require('debug') 'spinacia:api'
clc = require 'cli-color'

Util = require '../modules/util'

exports =

    postTasks: (data, ip) ->
      id = data.id
      input = data.input
      title = Util.stipulation input
      debug title
      console.log '>>> SOLVE ' + clc.xterm(82)(title) + ' ' + ip
      job = queue.create 'popeye', {title, input, id}
      .priority Util.stip2priority input
      .removeOnComplete yes

module.exports = exports
<commit_msg>print token to log<commit_after>debug = require('debug') 'spinacia:api'
clc = require 'cli-color'

Util = require '../modules/util'

exports =

    postTasks: (data, ip) ->
      id = data.id
      input = data.input
      title = Util.stipulation input
      debug title
      console.log '>>> SOLVE ' + clc.xterm(82)(title) + ' ' + data.token
      job = queue.create 'popeye', {title, input, id}
      .priority Util.stip2priority input
      .removeOnComplete yes

module.exports = exports

{'fraction_non_alphanumeric': 0.13435897435897437, 'fraction_numerical': 0.006153846153846154, 'mean_word_length': 2.739463601532567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4467976', 'n_tokens_mistral': 320, 'n_tokens_neox': 313, 'n_words': 81}