<commit_before>const fs = require("fs-extra");
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const convert = require('xml-js');

const base_url = "http://127.0.0.1:8080";

const output_dir = `static/html`;

let failures = 0;
let passes = 0;

const test_status_code = async (page, status, location) => {

  if (location == undefined) {
    location = null;
  } else if (!location.startsWith('http')) {
    location = base_url + location;<commit_msg>Redirect paths are now relative<commit_after>const fs = require("fs-extra");
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const convert = require('xml-js');

const base_url = "http://127.0.0.1:8080";

const output_dir = `static/html`;

let failures = 0;
let passes = 0;

const test_status_code = async (page, status, location) => {

  if (location == undefined) {
    location = null;
{'fraction_non_alphanumeric': 0.1891891891891892, 'fraction_numerical': 0.025945945945945945, 'mean_word_length': 4.32183908045977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, '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': '3844994', 'n_tokens_mistral': 315, 'n_tokens_neox': 298, 'n_words': 79}