<commit_before>#!/bin/bash
# Example: ./bin/createhtml.sh NoInflections.txt Ngu-vung-Danh-tu-Thien-hoc.tab
# Run in root directory

echo $1
echo $2

BASE="${2%.*}"

echo $BASE
echo "./dict/$BASE.opf.patch"

cd "/workspaces/tudien/"

# Generates html and opf files
python ./bin/tab2opf.py -s vi -t vi ./dict/$2 -i ./dict/$1

# Move files to final directory
mkdir ./dict/$BASE
mv -f *.html ./dict/$BASE/
mv -f *.opf ./dict/$BASE/

# Apply patch to fix resultant .opf file
git apply "./dict/$BASE.opf.patch"

<commit_msg>Update folders<commit_after>#!/bin/bash
# Example: ./bin/createhtml.sh NoInflections.txt Ngu-vung-Danh-tu-Thien-hoc.tab
# Run in root directory

# echo $1
# echo $2

BASE="${2%.*}"

# echo $BASE
# echo "./dict/$BASE.opf.patch"

# cd "/workspaces/tudien/"

# Generates html and opf files
python ./bin/tab2opf.py -s vi -t vi ./dict/$2 -i ./dict/$1

# Move files to final directory
mkdir -p ./dict/$BASE
mv -f *.html ./dict/$BASE/
mv -f *.opf ./dict/$BASE/

# Apply patch to fix resultant .opf file
git apply "./dict/$BASE.opf.patch"


{'fraction_non_alphanumeric': 0.18285714285714286, 'fraction_numerical': 0.011428571428571429, 'mean_word_length': 2.9660377358490564, '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': '5240460', 'n_tokens_mistral': 412, 'n_tokens_neox': 393, 'n_words': 120}