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

//Databases
var database = {
	"https://www.tablethotels.com" : "Tablet Hotels", 
	"https://www.google.com": "Google",
	"http://www.festus.me" : "My Portfolio",
	"https://www.twitter.com": "twitter",
	"https://www.yahoo.com": "Yahoo",
	"https://www.cnn.com" : "CNN"
}

//SEND URLS to the app
router.get('/bookmarks', function(req, res){
	res.send(database);
});


//POST for New URLS
router.post('/addbookmark', function(req, res) {
	req.on("data", function(data_) {
		data_ = JSON.parse(data_);
		if(database[data_.url]) {       //Check if value if exist in database
			res.send("Exist");
		}
		else {
			database[data_.url] = data_.title;
			res.send("Successful");
		}<commit_msg>Warning message for not entering title<commit_after>var express =  require('express');
var router = express.Router();

//Databases
var database = {
	"https://www.tablethotels.com" : "Tablet Hotels", 
	"https://www.google.com": "Google",
	"http://www.festus.me" : "My Portfolio",
	"https://www.twitter.com": "twitter",
	"https://www.yahoo.com": "Yahoo",
	"http://www.bloomberg.com" : "Bloomberg"
}

//SEND URLS to the app
router.get('/bookmarks', function(req, res){
	res.send(database);
});


//POST for New URLS
router.post('/addbookmark', function(req, res) {
	req.on("data", function(data_) {
		data_ = JSON.parse(data_);
		if(database[data_.url]) {       //Check if value if exist in database
			res.send("Exist");
		}
		else {
			database[data_.url] = data_.title;
			res.send("Successful");
		}
{'fraction_non_alphanumeric': 0.20076726342711, 'fraction_numerical': 0.0, 'mean_word_length': 3.9213836477987423, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 12, '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': '717165', 'n_tokens_mistral': 594, 'n_tokens_neox': 561, 'n_words': 117}