<commit_before>module.exports = function(app) {
	var route = {};

	// index.html
	route.index = function (req, res) {
		/** Code to get the list of routes**/
		var app_routes = app._router.map;
		var routes = [];
		for (var i = 0; i < app_routes.get.length; i++) {
			routes.push({
				path : app_routes.get[i].path,
				method : 'GET'
			});
		};

		for (var i = 0; i < app_routes.post.length; i++) {
			routes.push({
				path : app_routes.post[i].path,
				method : 'POST'
			});
		};

		for (var i = 0; i < app_routes.put.length; i++) {
			routes.push({
				path : app_routes.put[i].path,
				method : 'PUT'
			});
		};

		for (var i = 0; i < app_routes.delete.length; i++) {
			routes.push({
				path : app_routes.delete[i].path,
				method : 'DELETE'
			});
		};

		/** Code to get the list of routes**/
		res.render('index', {locals: { routes: routes }});
	};

	app.get('/', route.index);
};<commit_msg>Fixed issue#10 for getting default routes for the index page<commit_after>module.exports = function(app) {
    var route = {};
    // index.html
    route.index = function (req, res) {
        /** Code to get the list of routes**/
        var app_routes = app._router.stack;
        var routes = [];
        for (var i = 0; i < app_routes.length; i++) {
            var appRoute = app_routes[i].route;
            if((typeof appRoute != 'undefined')){
                routes.push({
                    path : appRoute.path,
                    method : appRoute.stack[0].method.toUpperCase()
                });
            }
        }

        res.render('index', {locals: { routes: routes }});
    };

    app.get('/', route.index);
};
{'fraction_non_alphanumeric': 0.17253948967193194, 'fraction_numerical': 0.004860267314702308, 'mean_word_length': 2.107547169811321, 'pattern_counts': {'":': 0, '<': 8, '<?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': '6248041', 'n_tokens_mistral': 613, 'n_tokens_neox': 561, 'n_words': 136}