<commit_before>var studentsController = require('../controllers/students');
var teachersController = require('../controllers/teachers');
var authenticationController = require('../controllers/authenticate');

module.exports = function(app, io) {

  app.get('/login', authenticationController.login);
  app.get('/signup', authenticationController.signup);
    
  app.get('/teachers/thumbs', teachersController.thumbsCheck);

  app.get('/teachers/lessons/:classId', teachersController.getLessons);
  app.get('/teachers/polls/:lessonId', teachersController.getPolls);

  app.post('/teachers/polls', teachersController.newPoll);
  

  app.get('/students/ready', studentsController.readyStage.bind(null, io));
};<commit_msg>Change thumbsCheck and poll route to generic poll route<commit_after>var studentsController = require('../controllers/students');
var teachersController = require('../controllers/teachers');
var authenticationController = require('../controllers/authenticate');

module.exports = function(app, io) {

  app.get('/login', authenticationController.login);
  app.get('/signup', authenticationController.signup);
    
  app.post('/teachers/poll', teachersController.pollClass.bind(null, io));

  app.get('/teachers/lessons/:classId', teachersController.getLessons);
  app.get('/teachers/polls/:lessonId', teachersController.getPolls);  

  app.get('/students/ready', studentsController.readyStage.bind(null, io));
};
{'fraction_non_alphanumeric': 0.15932914046121593, 'fraction_numerical': 0.0, 'mean_word_length': 6.054187192118227, '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': '7356085', 'n_tokens_mistral': 410, 'n_tokens_neox': 403, 'n_words': 61}