<commit_before>module.exports = function(RED) {
	"use strict";
    
	function Fifo(config) {
		RED.nodes.createNode(this,config);
		
		var me = this;

		this.queue = [];
		this.depth = config.depth;
		this.status({fill:"red",shape:"ring",text:"no value"});
		
		this.on('input', function (msg) {
			// are we full?
			// if so, boot some out
			if (this.queue.length >= this.depth) {
				while (this.queue.length >= this.depth) {
					var msg = this.queue.shift();
					this.send(msg);
				}
			} 
<commit_msg>Fix some code idiocies that lambdagrrl found.<commit_after>module.exports = function(RED) {
	"use strict";
    
	function Fifo(config) {
		RED.nodes.createNode(this,config);
		
		this.queue = [];
		this.depth = config.depth;
		this.status({fill:"red",shape:"ring",text:"no value"});
		
		this.on('input', function (msg) {
			// are we full?
			// if so, boot some out
			if (this.queue.length >= this.depth) {
				while (this.queue.length >= this.depth) {
					var outgoing = this.queue.shift();
					this.send(outgoing);
				}
			} 

{'fraction_non_alphanumeric': 0.171455938697318, 'fraction_numerical': 0.0, 'mean_word_length': 2.973384030418251, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4514436', 'n_tokens_mistral': 430, 'n_tokens_neox': 356, 'n_words': 75}