<commit_before>
function SockRage(_uri, _reference) {

	this.uri = _uri;
	this.reference = _reference;
	this.socket = io(_uri);

	this.set = function(data) {

		var dataEntity = {
			operation : "create",
			reference : this.reference,
			datas : data
		};

		this.socket.emit('reference-listening', dataEntity);
	}

	this.get = function(_id) {

		var dataEntity = {
			_id : _id,
			operation : "getById",
			reference : this.reference
		}

	this.socket.emit('reference-listening', dataEntity);

	}

	this.list = function() {

		var dataEntity = {
			operation : "getAll",
			reference : this.reference
		}

		this.socket.emit('reference-listening', dataEntity);
	}

	this.delete = function(_id) {

		var dataEntity = {
			_id : _id,
			operation : "delete",
			reference : this.reference
		}

		this.socket.emit('reference-listening', dataEntity);
	}

	this.update = function(_id, data) {

		var dataEntity = {
			_id : _id,
			operation : "update",
			reference : this.reference,
			datas : data
		};

		this.socket.emit('reference-listening', dataEntity);
	}

	//TODO

	this.on = function() {
	  this.socket.on(this.reference, function (data) {
	    	SockRage.listenerCallback(data);
	  });
	}

	this.listenerCallback = function(data) {

		console.log(data);
	}

}<commit_msg>client alpha 1<commit_after>function SockRage(_uri, _reference) {

		this.uri = _uri;
		this.reference = _reference;
		this.socket = io(_uri);

		this.set = function(data) {

			var dataEntity = {
			operation : "create",
			reference : this.reference,
			datas : data
			};

			this.socket.emit('reference-listening', dataEntity);
		}

		this.get = function(_id) {

		var dataEntity = {
			_id : _id,
			operation : "getById",
			reference : this.reference
		}

		this.socket.emit('reference-listening', dataEntity);

		}

		this.list = function() {

		var dataEntity = {
			operation : "getAll",
			reference : this.reference
		}

			this.socket.emit('reference-listening', dataEntity);
		}

		this.delete = function(_id) {

		var dataEntity = {
			_id : _id,
			operation : "delete",
			reference : this.reference
		}

			this.socket.emit('reference-listening', dataEntity);
		}

		this.update = function(_id, data) {

			var dataEntity = {
				_id : _id,
			operation : "update",
			reference : this.reference,
			datas : data
			};

			this.socket.emit('reference-listening', dataEntity);
		}

		this.on = function(callback) {
	  this.socket.on(this.reference, callback);
		}

}
{'fraction_non_alphanumeric': 0.1421031262687779, 'fraction_numerical': 0.0004060089321965083, 'mean_word_length': 3.1066666666666665, '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': '2531565', 'n_tokens_mistral': 985, 'n_tokens_neox': 820, 'n_words': 157}