<commit_before>const express = require('express');

module.exports = (rpc, conn) => {
	const router = new express.Router();

	const task_queue = 'miniexample_quiz_taskworker'; // for stuff that'll need ML, etc.
	const db_read_queue = 'miniexample_quiz_dbread'; // simple endpoints
	const db_write_queue = 'miniexample_quiz_dbwrite'; // simple endpoints

	// everything is just going to use POST as of 7/23/18's meeting
	const stdPosts = [
		// currently in use
		{ path: '/createUser', method: 'generateUser', queue: db_write_queue },
		{ path: '/startExperiment', method: 'startExperiment', queue: task_queue },
		{ path: '/getMetaQuestionsForUser', method: 'getMetaQuestionsForUser', queue: db_read_queue },
		{ path: '/getStimuliForUser', method: 'getStimuliForUser', queue: db_read_queue },
		{ path: '/metaResponse', method: 'insertMetaResponse', queue: db_write_queue },
		{ path: '/stimulusResponse', method: 'insertStimulusResponse', queue: db_write_queue },

		// currently unused
		{ path: '/getAllStimuli', method: 'getAllStimuli', queue: db_read_queue },
		{ path: '/nextStimulus', method: 'nextStimulus', queue: task_queue },
		{ path: '/feedback', method: 'getFeedback', queue: task_queue },
		{ path: '/activateStimuli', method: 'activateStimuli', queue: task_queue }
		{ path: '/users/:auth_id', method: 'updateUser', queue: db_write_queue },
		{ path: '/createUserWithAuth', method: 'generateUserWithAuth', queue: db_write_queue },
	];

	stdPosts.forEach(point =>
		router.post(point.path, (req, res, next) => {
			console.log(`${point.path} hit`);<commit_msg>commented out unused endpoints (want to make sure what's going on)<commit_after>const express = require('express');

module.exports = (rpc, conn) => {
	const router = new express.Router();

	const task_queue = 'miniexample_quiz_taskworker'; // for stuff that'll need ML, etc.
	const db_read_queue = 'miniexample_quiz_dbread'; // simple endpoints
	const db_write_queue = 'miniexample_quiz_dbwrite'; // simple endpoints

	// everything is just going to use POST as of 7/23/18's meeting
	const stdPosts = [
		// currently in use
		{ path: '/createUser', method: 'generateUser', queue: db_write_queue },
		{ path: '/startExperiment', method: 'startExperiment', queue: task_queue },
		//{ path: '/getMetaQuestionsForUser', method: 'getMetaQuestionsForUser', queue: db_read_queue },
		{ path: '/getStimuliForUser', method: 'getStimuliForUser', queue: db_read_queue },
		{ path: '/metaResponse', method: 'insertMetaResponse', queue: db_write_queue },
		{ path: '/stimulusResponse', method: 'insertStimulusResponse', queue: db_write_queue },

		// currently unused
		//{ path: '/getAllStimuli', method: 'getAllStimuli', queue: db_read_queue },
		//{ path: '/nextStimulus', method: 'nextStimulus', queue: task_queue },
		//{ path: '/feedback', method: 'getFeedback', queue: task_queue },
		//{ path: '/activateStimuli', method: 'activateStimuli', queue: task_queue }
		//{ path: '/users/:auth_id', method: 'updateUser', queue: db_write_queue },
		//{ path: '/createUserWithAuth', method: 'generateUserWithAuth', queue: db_write_queue },
	];

	stdPosts.forEach(point =>
		router.post(point.path, (req, res, next) => {
			console.log(`${point.path} hit`);
{'fraction_non_alphanumeric': 0.15305805650419124, 'fraction_numerical': 0.003104625892579944, 'mean_word_length': 5.137142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5211597', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1036, 'n_words': 261}