<commit_before>
var	fs = require('fs-extra'),
	marked = require('marked'),
	path = require('path'),
	pkg = fs.readJsonSync(path.join(__dirname + '/../package.json')),
    	nbbId = pkg.name.replace(/nodebb-plugin-/, ''),
	Plugin = {
		admin: {
			menu: function(custom_header) {
				custom_header.plugins.push({
					"route": '/plugins/' + nbbId,
					"icon": 'icon-edit',
					"name": nbbId
				});

				return custom_header;
			},
			route: function(custom_routes, callback) {
				fs.readFile(path.join(__dirname, '../README.md'), function(err, tpl) {
					marked(tpl.toString(), function(err, content){
						if (err) throw err;

						custom_routes.routes.push({
							route: '/plugins/' + nbbId,
							method: "get",
							options: function(req, res, callback) {
								callback({
									req: req,
									res: res,
									route: '/plugins/' + nbbId,
									name: Plugin,
									content: content
								});
							}
						});

						callback(null, custom_routes);
					});
				});
			}
		}
	};

module.exports = Plugin;<commit_msg>Update index.js<commit_after>
var	fs = require('fs-extra'),
	marked = require('marked'),
	path = require('path'),
	pkg = fs.readJsonSync(path.join(__dirname + '/../package.json')),
    	nbbId = pkg.name.replace(/nodebb-plugin-/, ''),
	Plugin = {
		admin: {
			menu: function(custom_header) {
				custom_header.plugins.push({
					"route": '/plugins/' + nbbId,
					"icon": 'icon-edit',
					"name": nbbId
				});

				return custom_header;
			},
			route: function(custom_routes, callback) {
				fs.readFile(path.join(__dirname, '/../README.md'), function(err, tpl) {
					marked(tpl.toString(), function(err, content){
						if (err) throw err;

						custom_routes.routes.push({
							route: '/plugins/' + nbbId,
							method: "get",
							options: function(req, res, callback) {
								callback({
									req: req,
									res: res,
									route: '/plugins/' + nbbId,
									name: Plugin,
									content: content
								});
							}
						});

						callback(null, custom_routes);
					});
				});
			}
		}
	};

module.exports = Plugin;
{'fraction_non_alphanumeric': 0.17515468824369348, 'fraction_numerical': 0.0, 'mean_word_length': 2.315457413249211, 'pattern_counts': {'":': 6, '<': 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': '3045058', 'n_tokens_mistral': 989, 'n_tokens_neox': 697, 'n_words': 134}