<commit_before>var clone = require('clone');
var events = require('events');

var winston = require('./logger');

function Queue(queueElements) {

	winston.log('create queue with elements :'+queueElements);

	events.EventEmitter.call(this);

	queueElements = queueElements || null;

	this.queueList = [];
	if (queueElements != null) {
		this.queueList = clone(queueElements);
	}

	winston.log('create queue with elements :'+this.queueList);

	this.current = null;

	this.process = function () {
		winston.log('info', 'begin process queue : '+this.queueList);
		this.next()<commit_msg>Fix process can be call two time in a raw<commit_after>var clone = require('clone');
var events = require('events');

var winston = require('./logger');

function Queue(queueElements) {

	winston.log('create queue with elements :'+queueElements);

	events.EventEmitter.call(this);

	queueElements = queueElements || null;

	this.queueList = [];
	if (queueElements != null) {
		this.queueList = clone(queueElements);
	}
	this.processing = false;

	winston.log('create queue with elements :'+this.queueList);

	this.current = null;

	this.process = function () {
		winston.log('info', 'begin process queue : '+this.queueList);
		if (!this.processing) {
			this.processing = true;
			this.next();
		}
{'fraction_non_alphanumeric': 0.1522248243559719, 'fraction_numerical': 0.0, 'mean_word_length': 4.774774774774775, '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': '3653131', 'n_tokens_mistral': 419, 'n_tokens_neox': 387, 'n_words': 96}