<commit_before>#!/bin/bash
cd `dirname $0`

rm -rf target
mkdir target

cp -rf homepage/. target

mkdir -p target/document/legacy/1.x
mkdir -p target/document/legacy/2.x
mkdir -p target/document/legacy/3.x

cp -rf document/legacy/1.x/cn target/document/legacy/1.x/cn
cp -rf document/legacy/2.x/cn target/document/legacy/2.x/cn
cp -rf document/legacy/2.x/en target/document/legacy/2.x/en
cp -rf document/legacy/2.x/cn target/document/legacy/3.x/cn
cp -rf document/legacy/2.x/en target/document/legacy/3.x/en

cd document/current
hugo

find ./ -name '*.html' -exec sed -i -e 's|[[:space:]]*<option id="\([a-zA-Z]\+\)" value="|<option id="\1" value="/document/current|g' {} \;

cd public/en<commit_msg>modify build.sh<commit_after>#!/bin/bash
cd `dirname $0`

rm -rf target
mkdir target

cp -rf homepage/. target

mkdir -p target/document/legacy/1.x
mkdir -p target/document/legacy/2.x
mkdir -p target/document/legacy/3.x

cp -rf document/legacy/1.x/cn target/document/legacy/1.x/cn
cp -rf document/legacy/2.x/cn target/document/legacy/2.x/cn
cp -rf document/legacy/2.x/en target/document/legacy/2.x/en
cp -rf document/legacy/3.x/* target/document/legacy/3.x/

cd document/current
hugo

find ./ -name '*.html' -exec sed -i -e 's|[[:space:]]*<option id="\([a-zA-Z]\+\)" value="|<option id="\1" value="/document/current|g' {} \;

cd public/en
{'fraction_non_alphanumeric': 0.19147344801795063, 'fraction_numerical': 0.020942408376963352, 'mean_word_length': 3.4158415841584158, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4677529', 'n_tokens_mistral': 567, 'n_tokens_neox': 544, 'n_words': 114}