<commit_before>var express = require('express');
var crypto = require('crypto');
var http = require('http');
var fs = require('fs');
var xml2js = require('node-xml');
var moment = require('moment');
var stathat = require('stathat');
var hash = require('./pass').hash;
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var session = require('express-session');

var app = express();
var httpport = 18080;
var net = require('net');
var sockets = [];
var port = 5566;
var guestId = 0;

var redis = require('redis');	//need change to MongoDB.
var username = 'mokFrawqakB29yzOyEbQi9lZ';         
var password = '<PASSWORD>'; 
var db_host = 'redis.duapp.com';   
var db_port = 80;
var db_name = 'mFOxVJbbxPkGyeMbVIAO';       
var options = {"no_ready_check":true};

var Users = {
	"Device1"  : "00000000",
	"Device2"  : "00000000",
	"Device3"  : "00000000"
};
	
function bindRedis(FromUserName, deviceId , callback) {
	var client = redis.createClient(db_port, db_host, options);
	client.on("error", function (err) {
		console.log("Error " + err);
	});

	client.auth(username + '-' + password + '-' + db_name);

	client.set(FromUserName, deviceId);

	client.get(FromUserName, function(err, result) {
		if (err) {
			console.log(err);
		}
		console.log("bindRedis " + FromUserName + " " + result);
		callback(result);    
	}); 
}
<commit_msg>Test to merge branch 'dev'<commit_after>var express = require('express');
var crypto = require('crypto');
var http = require('http');
var fs = require('fs');
var xml2js = require('node-xml');
var moment = require('moment');
var stathat = require('stathat');
var hash = require('./pass').hash;
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var session = require('express-session');

var app = express();
var httpport = 18080;
var net = require('net');
var sockets = [];
var port = 5566;
var guestId = 0;

var redis = require('redis');	//need change to MongoDB. 
var username = 'mokFrawqakB29yzOyEbQi9lZ';         //branch dev test.
var password = '<PASSWORD>'; 
var db_host = 'redis.duapp.com';   
var db_port = 80;
var db_name = 'mFOxVJbbxPkGyeMbVIAO';       
var options = {"no_ready_check":true};

var Users = {
	"Device1"  : "00000000",
	"Device2"  : "00000000",
	"Device3"  : "00000000"
};
	
function bindRedis(FromUserName, deviceId , callback) {
	var client = redis.createClient(db_port, db_host, options);
	client.on("error", function (err) {
		console.log("Error " + err);
	});

	client.auth(username + '-' + password + '-' + db_name);

	client.set(FromUserName, deviceId);

	client.get(FromUserName, function(err, result) {
		if (err) {
			console.log(err);
		}
		console.log("bindRedis " + FromUserName + " " + result);
		callback(result);    
	}); 
}

{'fraction_non_alphanumeric': 0.17279942279942279, 'fraction_numerical': 0.031024531024531024, 'mean_word_length': 4.4694280078895465, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 6, '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': '849213', 'n_tokens_mistral': 1061, 'n_tokens_neox': 966, 'n_words': 231}