<commit_before>let Queue = {};

import keys from 'lodash.keys';
import query from './query';

import batchRunByType from './batchRunByType';

const timeouts = {};

const get = (type) => {
  const result = Queue[type];
  Queue[type] = [];
  return result;
};

const add = (type, id) => {
  console.log('!!! ADD !!!: ',type,id);
  if(!type || !id){
    return;
  }
  if(!Queue[type]){
    Queue[type] = [];
  }
  if(Queue[type].indexOf(id)<0){
    Queue[type].push(id);
  }<commit_msg>cleanup<commit_after>let Queue = {};

import keys from 'lodash.keys';
import query from './query';

import batchRunByType from './batchRunByType';

const timeouts = {};

const get = (type) => {
  const result = Queue[type];
  Queue[type] = [];
  return result;
};

const add = (type, id) => {
  if(!type || !id){
    return;
  }
  if(!Queue[type]){
    Queue[type] = [];
  }
  if(Queue[type].indexOf(id)<0){
    Queue[type].push(id);
  }
{'fraction_non_alphanumeric': 0.20978260869565218, 'fraction_numerical': 0.002173913043478261, 'mean_word_length': 3.5594059405940595, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6147259', 'n_tokens_mistral': 351, 'n_tokens_neox': 339, 'n_words': 75}