<commit_before>#!/bin/bash

SCRIPT_NAME=$(basename $BASH_SOURCE)
SCRIPT_LOGFILE="./logs/"$(basename -s .sh $BASH_SOURCE)".log"
mkdir -p ./logs && chmod 755 ./logs

echo "running "$SCRIPT_NAME

# tested: works on ubuntu 14.04.3 gnome


sudo apt-get -y install mysql-workbench


# @todo fix that
# there is a bug affecting versions of 14.04 with mysql5.6+ installed:
# https://bugs.launchpad.net/ubuntu/+source/mysql-workbench/+bug/1287424
<commit_msg>fix mysql-workbench installed when mysql5.6+ is installed (ubuntu 14.04 bug)<commit_after>#!/bin/bash

SCRIPT_NAME=$(basename $BASH_SOURCE)
SCRIPT_LOGFILE="./logs/"$(basename -s .sh $BASH_SOURCE)".log"
mkdir -p ./logs && chmod 755 ./logs

echo "running "$SCRIPT_NAME

# tested: works on ubuntu 14.04.3 gnome


#
# there is a bug affecting versions of 14.04 with mysql5.6+ installed:
# https://bugs.launchpad.net/ubuntu/+source/mysql-workbench/+bug/1287424
#
# so instead of using version available in ubuntu repos, well download it from oracle CDN
#
# OLD:   sudo apt-get -y install mysql-workbench
#

if hash mysql-workbench 2>/dev/null; then
	echo "  mysql-workbench already installed"
else

	echo "  mysql-workbench not installed => installing mysql-workbench"

	URL='http://cdn.mysql.com//Downloads/MySQLGUITools/mysql-workbench-community-6.2.5-1ubu1404-amd64.deb'
	#URL='http://cdn.mysql.com//Downloads/MySQLGUITools/mysql-workbench-community-6.3.6-1ubu1404-amd64.deb'
	FILE=`mktemp`
	wget "$URL" -qO $FILE
	sudo dpkg -i $FILE
	rm $FILE

fi








{'fraction_non_alphanumeric': 0.1383898868928809, 'fraction_numerical': 0.04590818363273453, 'mean_word_length': 4.1331058020477816, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2102671', 'n_tokens_mistral': 631, 'n_tokens_neox': 533, 'n_words': 136}