<commit_before>var voters = require('../voteData.json');
var profile = require('../profiles.json');

var index = 1;

exports.view = function(req, res) {
	index = parseInt(voters[0].index);
	res.render('vote', voters[index]);
}

exports.setIndex = function(req, res) {
	if (index == 5)
		index = 1
	else
		index++
	voters[0].index = index.toString();
}

exports.giveBones = function(req, res) {
	console.log(parseInt(profile[0].bones));
	console.log(parseInt(req.body.bones));
	profile[0].bones = parseInt(profile[0].bones) + parseInt(req.body.boneValue);
	console.log(profile[0].bones);
}<commit_msg>Bone gaining functionality through voting page sunglesses emoji<commit_after>var voters = require('../voteData.json');
var profile = require('../profiles.json');

var index = 1;

exports.view = function(req, res) {
	index = parseInt(voters[0].index);
	res.render('vote', voters[index]);
}

exports.setIndex = function(req, res) {
	if (index == 5)
		index = 1
	else
		index++
	voters[0].index = index.toString();
}

exports.giveBones = function(req, res) {
	profile[0].cashmonkey = parseInt(profile[0].cashmonkey) + parseInt(req.body.boneValue);
	console.log(profile[0].bones);
}
{'fraction_non_alphanumeric': 0.18251273344651953, 'fraction_numerical': 0.014431239388794566, 'mean_word_length': 5.108808290155441, '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': '2795341', 'n_tokens_mistral': 432, 'n_tokens_neox': 419, 'n_words': 79}