<commit_before>var express = require("express");

var app = express();

//setting localhost and port
app.set('port', process.env.PORT || 8000);

app.get('/', function(req, res){
	res.json("WELCOME TO BLOG EXPRESS APPLICATION")
});

// custom 404 page<commit_msg>added route for home page, added middleware for static files<commit_after>var express = require("express");
var path = require('path');

var app = express();

//setting localhost and port
app.set('port', process.env.PORT || 8000);

app.use(express.static(__dirname + '/public'));

app.get('/', function(req, res){
	res.json("WELCOME TO BLOG EXPRESS APPLICATION")
});

//adding route for homepage
app.get('/home', function(req, res){
	res.sendFile(path.join(__dirname + '/views/home.html'));
});

// custom 404 page
{'fraction_non_alphanumeric': 0.17783505154639176, 'fraction_numerical': 0.01804123711340206, 'mean_word_length': 5.023255813953488, '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': '1898264', 'n_tokens_mistral': 260, 'n_tokens_neox': 240, 'n_words': 70}