<commit_before>Meteor.methods({
  	/*
    data[0] = 111 (obrigatorio)
    data[1] = *nivel (obrigatorio)
    data[2] = nome (obrigatorio)
	data[3] = avatar (obrigatorio)
	data[4] = email (obrigatorio)
	data[5] = senha
	data[6] = facebook ID
	data[7] = google ID
	data[8] = programa ID (obrigatorio se tiver marcado o nivel como administrador do programa)
    data[9] = *status (default: 1)

    *
	level:
		0 = usuario comun
		1 = administrador do programa
		2 = administrador do sistema

    status:
      0 = inativo
      1 = ativo
  	*/
	'insertUser': function(data){
	    var msgError = '';
	    if(data[0] !== 111){
	      msgError = Meteor.call('msgFeedback', 'error', '000');
	    }else if(!data[1] || !data[2] || !data[3] || !data[4]){
	      msgError = Meteor.call('msgFeedback', 'error', '002');
	    }else if(data[1] === 1 && !data[8]){
	      msgError = Meteor.call('msgFeedback', 'error', '009');
	    }

		if(!msgError){
		    return User.insert(
		    	{
	    			level: data[1],
		    		name: data[2],
		    		avatar: data[3],
		    		email: data[4],
		    		password:<PASSWORD>(data[4] + data[5]).<PASSWORD>(),
		    		facebook_id: data[6],
		    		google_id: data[7],
		    		program_id: data[8],
		    		status: data[9],
		    		user_record: data[10],
		    		user_change: data[10],
		    		phone: null,
		    		confirmphone: false,
		    		date_record:Meteor.call('dateNow')['dateNow'],
		    		date_change:Meteor.call('dateNow')['dateNow']
		    	}
	    	);
	    	return Meteor.call('msgFeedback', 'sucess', '000');
		}else{
			throw new Meteor.Error(500, msgError);
		}
	},

	/*
    data[0] = 111 (obrigatorio)
    data[1] = *nivel (obrigatorio)<commit_msg>collection user<commit_after>Meteor.methods({
  	/*
    data[0] = 111 (obrigatorio)
    data[1] = *nivel (obrigatorio)
    data[2] = nome (obrigatorio)
	data[3] = avatar (obrigatorio)
	data[4] = email (obrigatorio)
	data[5] = senha
	data[6] = facebook ID
	data[7] = google ID
	data[8] = programa ID (obrigatorio se tiver marcado o nivel como administrador do programa)
    data[9] = *status (default: 1)

    *
	level:
		0 = usuario comun
		1 = administrador do programa
		2 = administrador do sistema

    status:
      0 = inativo
      1 = ativo
  	*/
	'insertUser': function(data){
	    var msgError = '';
	    if(data[0] !== 111){
	      msgError = Meteor.call('msgFeedback', 'error', '000');
	    }else if(!data[1] || !data[2] || !data[3] || !data[4]){
	      msgError = Meteor.call('msgFeedback', 'error', '002');
	    }else if(data[1] === 1 && !data[8]){
	      msgError = Meteor.call('msgFeedback', 'error', '009');
	    }

		if(!msgError){
		    User.insert(
		    	{
	    			level: data[1],
		    		name: data[2],
		    		avatar: data[3],
		    		email: data[4],
		    		password:<PASSWORD>.MD5(data[4] + data[5]).toString(),
		    		facebook_id: data[6],
		    		google_id: data[7],
		    		program_id: data[8],
		    		status: data[9],
		    		user_record: data[10],
		    		user_change: data[10],
		    		phone: null,
		    		confirmphone: false,
		    		date_record:Meteor.call('dateNow')['dateNow'],
		    		date_change:Meteor.call('dateNow')['dateNow']
		    	}
	    	);
	    	return Meteor.call('msgFeedback', 'sucess', '000');
		}else{
			throw new Meteor.Error(500, msgError);
		}
	},

	/*
    data[0] = 111 (obrigatorio)
    data[1] = *nivel (obrigatorio)
{'fraction_non_alphanumeric': 0.16959761549925484, 'fraction_numerical': 0.03845007451564829, 'mean_word_length': 2.6478260869565218, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6474559', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1301, 'n_words': 261}