<commit_before>var sys = require('sys');
var xmpp = require('../lib/node-xmpp');
var argv = process.argv;

if (argv.length < 6) {
    sys.puts('Usage: node send_message.js <my-jid> <my-password> <server> <port> <my-text> <jid1> [jid2] ... [jidN]');
    process.exit(1);
}

var c = new xmpp.Component({ jid: argv[2],
			     password: argv[3],
			     host: argv[4],
			     port: Number(argv[5])
			   });
c.addListener('online',
	       function() {
		   argv.slice(7).forEach(
		       function(to) {
			   c.send(new xmpp.Element('message',
						   { to: to,
						     from: c.jid,
						     type: 'chat'}).
				  c('body').
				  t(argv[4]));
		       });

		   // nodejs has nothing left to do and will exit
		   c.end();
	       });
c.addListener('error',<commit_msg>Was using the wrong argument.<commit_after>var sys = require('sys');
var xmpp = require('../lib/node-xmpp');
var argv = process.argv;

if (argv.length < 6) {
    sys.puts('Usage: node send_message.js <my-jid> <my-password> <server> <port> <my-text> <jid1> [jid2] ... [jidN]');
    process.exit(1);
}

var c = new xmpp.Component({ jid: argv[2],
			     password: argv[3],
			     host: argv[4],
			     port: Number(argv[5])
			   });
c.addListener('online',
	       function() {
		   argv.slice(7).forEach(
		       function(to) {
			   c.send(new xmpp.Element('message',
						   { to: to,
						     from: c.jid,
						     type: 'chat'}).
				  c('body').
				  t(argv[6]));
		       });

		   // nodejs has nothing left to do and will exit
		   c.end();
	       });
c.addListener('error',
{'fraction_non_alphanumeric': 0.19196428571428573, 'fraction_numerical': 0.012755102040816327, 'mean_word_length': 2.1890243902439024, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '7229261', 'n_tokens_mistral': 673, 'n_tokens_neox': 562, 'n_words': 125}