<commit_before>var express = require('express');
var router = express.Router();
var isAuthenticated = require('../server.js').isAuthenticated;

var list_active = require('../controllers/members/list_active');
var list_all = require('../controllers/members/list_all');
var post = require('../controllers/members/post');
var get = require('../controllers/members/get');
var put = require('../controllers/members/put');
var del = require('../controllers/members/delete');


// LIST
router.get('/members/active', list_active.request);

// LIST (ONLY MEMBERS)
router.get('/members/all', list_all.request);

// POST (ONLY MEMBERS)
router.post('/members', post.request);

// GET
router.get('/members/:member_id', get.request);

// PUT (ONLY MEMBERS)
router.put('/members/:member_id', put.request);

// DELETE (ONLY MEMBERS)
router.delete('/members/:member_id', del.request);


module.exports = router;
<commit_msg>Updated routes<commit_after>var express = require('express');
var router = express.Router();
var isAuthenticated = require('../server.js').isAuthenticated;

var list_active = require('../controllers/members/list_active');
var list_all = require('../controllers/members/list_all');
var post = require('../controllers/members/post');
var get = require('../controllers/members/get');
var put = require('../controllers/members/put');
var del = require('../controllers/members/delete');


// LIST
router.get('/members/active', isAuthenticated, list_active.request);

// LIST (ONLY MEMBERS)
router.get('/members/all', isAuthenticated, list_all.request);

// POST (ONLY MEMBERS)
router.post('/members', isAuthenticated, post.request);

// GET
router.get('/members/:member_id', isAuthenticated, get.request);

// PUT (ONLY MEMBERS)
router.put('/members/:member_id', isAuthenticated, put.request);

// DELETE (ONLY MEMBERS)
router.delete('/members/:member_id', isAuthenticated, del.request);


module.exports = router;

{'fraction_non_alphanumeric': 0.18675013041210226, 'fraction_numerical': 0.0, 'mean_word_length': 5.10828025477707, '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': '2049548', 'n_tokens_mistral': 602, 'n_tokens_neox': 601, 'n_words': 117}