<commit_before>var express = require('express');
var _ = require('lodash');
var router = express.Router();

router.get('/', function(req, res) {
	req.getCredentials(function(error, credentials){
		if(error) res.status(500).json({ error: "Not Authenticated" });
		
		res.json(req.body);
	});
});

module.exports = router;<commit_msg>Updated API<commit_after>var express = require('express');
var _ = require('lodash');
var router = express.Router();

router.route('/:id').put(function(req, res) {
	req.getCredentials(function(error, credentials){
		if(error) res.status(500).json({ error: "Not Authenticated" });
		
		res.json(req.body);
	});
});

module.exports = router;
{'fraction_non_alphanumeric': 0.19523099850968703, 'fraction_numerical': 0.00894187779433681, 'mean_word_length': 5.72, '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': '7449935', 'n_tokens_mistral': 232, 'n_tokens_neox': 216, 'n_words': 41}