<commit_before>const express = require('express');
const app = express();

const path = require('path');
const routes = require('./myRoutes.js');

app.get('/', function(req, res) {
  res.send('something');
});

app.get(routes.login, function(req, res) {
  res.send('Login page');
});

app.get(routes.register, function(req, res) {
  res.send('Register Page');
});

app.get(routes.dashboard, function(req, res) {
  res.send('DashBoard/Home Page');
});

app.get(routes.tasks, function(req, res) {
  res.send('All Tasks Page');
});

app.get(routes.task, function(req, res) {
  res.send('Ind Task Page'+ req.params.id);
});

app.get(routes.socketenter, function(req, res) {
  res.send('Socket Send Test Page');
});

app.get(routes.socketreceive, function(req, res) {
  res.send('Socket Receive Test Page');
});


app.listen(8000, function() {
  console.log('app running on 8000');
});<commit_msg>Add feature to send task.html on get to \task\<commit_after>const express = require('express');
const app = express();

const path = require('path');
const routes = require('./myRoutes.js');

app.get('/', function(req, res) {
  res.send('something');
});

app.get(routes.login, function(req, res) {
  res.send('Login page');
});

app.get(routes.register, function(req, res) {
  res.send('Register Page');
});

app.get(routes.dashboard, function(req, res) {
  res.send('DashBoard/Home Page');
});

app.get(routes.tasks, function(req, res) {
  res.send('All Tasks Page');
});

app.get(routes.task, function(req, res) {
//  res.sendFile('Ind Task Page'+ req.params.id);
  
  res.sendFile('static/html/task.html', {root: __dirname} )


});

app.get(routes.socketenter, function(req, res) {
  res.send('Socket Send Test Page');
});

app.get(routes.socketreceive, function(req, res) {
  res.send('Socket Receive Test Page');
});


app.listen(8000, function() {
  console.log('app running on 8000');
});
{'fraction_non_alphanumeric': 0.20497881355932204, 'fraction_numerical': 0.00847457627118644, 'mean_word_length': 4.8847352024922115, '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': '24793', 'n_tokens_mistral': 671, 'n_tokens_neox': 666, 'n_words': 139}