<commit_before>module.exports = function(app, database){
	
	// api --------------------------------------------------------------------
	
	// get entire portfolio
	app.get('/api/portfolio', function(req, res){
		res.json(database.data);
	});
	
	// application ------------------------------------------------------------
	app.get('/', function(req, res){
		res.sendfile('./public/index.html');
	});
	
	app.get('/:folder/:file', function(req, res){
		res.json('{"folder":"' + folder + '","file":"' + file + '"}');
		//res.sendfile('./public/' + folder + '/' + file);<commit_msg>working on it...<commit_after>module.exports = function(app, database){
	
	// api --------------------------------------------------------------------
	
	// get entire portfolio
	app.get('/api/portfolio', function(req, res){
		res.json(database.data);
	});
	
	// application ------------------------------------------------------------
	app.get('/', function(req, res){
		res.sendfile('./public/index.html');
	});
	
	app.get('/:folder/:file', function(req, res){
		res.json('{"folder":"' + req.params.folder + '","file":"' + req.params.file + '"}');
		//res.sendfile('./public/' + folder + '/' + file);
{'fraction_non_alphanumeric': 0.4164546225614928, 'fraction_numerical': 0.0, 'mean_word_length': 1.5764192139737991, 'pattern_counts': {'":': 4, '<': 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': '2792559', 'n_tokens_mistral': 340, 'n_tokens_neox': 317, 'n_words': 53}