<commit_before>const http = require("http");
const childProcess = require("child_process");
const spawn = childProcess.spawn;

const server = http.createServer(function(req, res) {
  if (req.url == "/build" && req.method == "POST") {
    if (req.headers && req.headers["x-api-key"] == process.env.BUILD_SERVER_API_KEY) {
      const buildPs = spawn("node", [ "build.js" ]);<commit_msg>catch trailing urls on build server<commit_after>const http = require("http");
const childProcess = require("child_process");
const spawn = childProcess.spawn;

const server = http.createServer(function(req, res) {
  if ((req.url == "/build" || req.url == "/build/") && req.method == "POST") {
    if (req.headers && req.headers["x-api-key"] == process.env.BUILD_SERVER_API_KEY) {
      const buildPs = spawn("node", [ "build.js" ]);
{'fraction_non_alphanumeric': 0.1845965770171149, 'fraction_numerical': 0.0, 'mean_word_length': 4.7272727272727275, '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': '57333', 'n_tokens_mistral': 262, 'n_tokens_neox': 261, 'n_words': 59}