<commit_before>const path = require('path');
var fs = require('fs');
var ejs = require('ejs');

var config = JSON.parse(fs.readFileSync(path.join(__dirname, "../../config.json")));
var useRadioButtons = config.maxChoicesPerVoter === 1;

var compiled = ejs.compile(fs.readFileSync(path.join(__dirname, 'votingBooth.ejs'), 'utf8'));
var html = compiled({ seperateAuthentication: config.seperateAuthentication, randomness : config.userChosenRandomness, showOtp : config.showOtp, radioButtons: useRadioButtons});
fs.writeFileSync(path.join(__dirname, "../votingBooth.html"), html);

compiled = ejs.compile(fs.readFileSync(path.join(__dirname, 'selectBooth.ejs'), 'utf8'));
var js = compiled({ seperateAuthentication: config.seperateAuthentication, randomness : config.userChosenRandomness, showOtp : config.showOtp });<commit_msg>useRadioButtons should compile for selecBooth.js not VotingBooth.html<commit_after>const path = require('path');
var fs = require('fs');
var ejs = require('ejs');

var config = JSON.parse(fs.readFileSync(path.join(__dirname, "../../config.json")));
var useRadioButtons = config.maxChoicesPerVoter === 1;

var compiled = ejs.compile(fs.readFileSync(path.join(__dirname, 'votingBooth.ejs'), 'utf8'));
var html = compiled({ seperateAuthentication: config.seperateAuthentication, randomness : config.userChosenRandomness, showOtp : config.showOtp});
fs.writeFileSync(path.join(__dirname, "../votingBooth.html"), html);

compiled = ejs.compile(fs.readFileSync(path.join(__dirname, 'selectBooth.ejs'), 'utf8'));
var js = compiled({ seperateAuthentication: config.seperateAuthentication, randomness : config.userChosenRandomness, showOtp : config.showOtp, radioButtons: useRadioButtons});
{'fraction_non_alphanumeric': 0.15231400117164617, 'fraction_numerical': 0.0035149384885764497, 'mean_word_length': 7.455445544554456, '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': '5813805', 'n_tokens_mistral': 529, 'n_tokens_neox': 526, 'n_words': 104}