<commit_before>let path = require("path");

let express = require("express");


let app = express();

// settings
app.set("view engine", "pug");

// middleware
app.use("/static", express.static(path.join(__dirname, "static")));

// home page
app.get("/", (req, res) => {
  res.render("index");
});

// registration page
app.get("/register", (req, res) => {
  res.render("register");
});

// login page
app.get("/login", (req, res) => {
  res.render("login");
});

// dashboard page
app.get("/dashboard", (req, res) => {
  res.render("dashboard");
});


app.listen(3000);<commit_msg>Defining our static path as a variable.<commit_after>let path = require("path");

let express = require("express");


let app = express();

// settings
app.set("view engine", "pug");
app.set("staticDir", path.join(__dirname, "static"));

// middleware
app.use("/static", express.static(app.get("staticDir")));

// home page
app.get("/", (req, res) => {
  res.render("index");
});

// registration page
app.get("/register", (req, res) => {
  res.render("register");
});

// login page
app.get("/login", (req, res) => {
  res.render("login");
});

// dashboard page
app.get("/dashboard", (req, res) => {
  res.render("dashboard");
});


app.listen(3000);
{'fraction_non_alphanumeric': 0.24554294975688817, 'fraction_numerical': 0.006482982171799027, 'mean_word_length': 4.277777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '160910', 'n_tokens_mistral': 425, 'n_tokens_neox': 418, 'n_words': 91}