<commit_before>#!/bin/bash -e
outputHandler "section" "WKHTML"
outputHandler "comment" "http://wkhtmltopdf.org - LGPLv3"

if test "$install_wkhtml" = "Y"; then

	# WKHTML - FORCE PASSWORD RENEWAL
	outputHandler "comment" "Using /srv/tools/bin/wkhtmltopdf"
	#sudo apt install -y wkhtmltopdf
	# installedPackage "wkhtmltopdf"
	# sudo cp /srv/tools/conf/wkhtmltoimage /usr/bin/static_wkhtmltoimage
	# sudo cp /srv/tools/conf/wkhtmltopdf /usr/bin/static_wkhtmltopdf
	#wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
	#wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
	wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
	tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
	cd wkhtmltox/bin/
	sudo mv wkhtmltopdf  /usr/bin/wkhtmltopdf
	sudo mv wkhtmltoimage  /usr/bin/wkhtmltoimage

else
	outputHandler "section" "skipping WKHTML"
fi
<commit_msg>temp fix test for wkhtmltopdf 0.12.5_1<commit_after>#!/bin/bash -e
outputHandler "section" "WKHTML"
outputHandler "comment" "http://wkhtmltopdf.org - LGPLv3"

if test "$install_wkhtml" = "Y"; then

	# WKHTML - FORCE PASSWORD RENEWAL
	outputHandler "comment" "Using /srv/tools/bin/wkhtmltopdf"
	#sudo apt install -y wkhtmltopdf
	# installedPackage "wkhtmltopdf"
	# sudo cp /srv/tools/conf/wkhtmltoimage /usr/bin/static_wkhtmltoimage
	# sudo cp /srv/tools/conf/wkhtmltopdf /usr/bin/static_wkhtmltopdf
	#wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
	#wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
	
	sudo wget -P Downloads https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb 
	cd ~/Downloads
	sudo apt install xfonts-75dpi
	sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
	sudo cp wkhtmltopdf /srv/tools/bin/wkhtmltopdf

else
	outputHandler "section" "skipping WKHTML"
fi

{'fraction_non_alphanumeric': 0.13435795736241943, 'fraction_numerical': 0.04709965294992563, 'mean_word_length': 4.381333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2105180', 'n_tokens_mistral': 962, 'n_tokens_neox': 841, 'n_words': 133}