<commit_before>'use strict';
module.exports = function(app) {
	app.get('/authenticate', function(req, res) {
		if (req.query.name) {
			req.session.user = req.query.name;
			req.session.group = 'basic';
			res.redirect('/');
		} else {
			res.set('Content-Type', 'text/html');
			res.send(`
				<meta charset="utf-8">
				<form action="" method="get">
				<label>Přezdívka: <input type="text" name="name"></label>
				<button type="submit">Přihlásit se</button>
				</form>
			`);
		}<commit_msg>autofocus simple auth nickname field<commit_after>'use strict';
module.exports = function(app) {
	app.get('/authenticate', function(req, res) {
		if (req.query.name) {
			req.session.user = req.query.name;
			req.session.group = 'basic';
			res.redirect('/');
		} else {
			res.set('Content-Type', 'text/html');
			res.send(`
				<meta charset="utf-8">
				<form action="" method="get">
				<label>Přezdívka: <input type="text" name="name" autofocus></label>
				<button type="submit">Přihlásit se</button>
				</form>
			`);
		}
{'fraction_non_alphanumeric': 0.2029268292682927, 'fraction_numerical': 0.001951219512195122, 'mean_word_length': 3.706422018348624, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2703369', 'n_tokens_mistral': 434, 'n_tokens_neox': 369, 'n_words': 67}