<commit_before>#!/bin/bash

path=build
template='<html><head><meta http-equiv="refresh" content="0;url=REPLACE_ME" /></head></html>'

rm -f ./build/*
mkdir -p $path

cat redirects.yml | while read line
do
  contents=(${line//: / })
  url=${contents[1]}
  file_path=$path/${contents[0]}.html

  if [ "$url" ]; then
    echo ${template/REPLACE_ME/$url} > $file_path
  fi;
done<commit_msg>aaa.html —> aaa/index.html<commit_after>#!/bin/bash

path=build
template='<html><head><meta http-equiv="refresh" content="0;url=REPLACE_ME" /></head></html>'

cat redirects.yml | while read line
do
  contents=(${line//: / })
  url=${contents[1]}
  mkdir -p $path/${contents[0]}

  if [ "$url" ]; then
    echo ${template/REPLACE_ME/$url} > $path/${contents[0]}/index.html
  fi;
done
{'fraction_non_alphanumeric': 0.22005208333333334, 'fraction_numerical': 0.009114583333333334, 'mean_word_length': 4.453900709219858, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 16, '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': '3768637', 'n_tokens_mistral': 303, 'n_tokens_neox': 292, 'n_words': 55}