<commit_before>#!/bin/bash
# (use "chmod +rx scriptname" to make script executable)
#
# For use on any Unix system
#
# Execute this script with "git" as default directory to
# build a release version of skirt in the "release" directory
# using your current local copy of the code
#
# By default the build uses five parallel threads; you can
# specify another number as the first command line argument
#

# determine the qmake install path

#####################################################
### Search for the most recent version of Qt first ##
#####################################################

# try the path targeted by the one-click Qt installer
if [ -e "$HOME/Qt5.3.2/5.3/clang_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.3.2/5.3/clang_64/bin/qmake
fi

# try the path targeted by the one-click Qt installer on Ubuntu
if [ -e "$HOME/Qt5.3.2/5.3/gcc_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.3.2/5.3/gcc_64/bin/qmake
fi

# try the path targeted by ./makeQt_everywhere.sh
if [ -e "$HOME/Qt/Desktop/5.3.2/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt/Desktop/5.3.2/bin/qmake
fi

# try the path in /usr/local used on Ghent research team computers
if [ -e "/usr/local/Qt/5.3.2/bin/qmake" ]
then
    QMAKEPATH=/usr/local/Qt/5.3.2/bin/qmake
fi

#############################################################################################
## Search for the older Qt version that is also supported (and a lot of SKIRT users have)  ##
#############################################################################################

# try the path targeted by the one-click Qt installer on Mac
if [ -e "$HOME/Qt5.2.1/5.2.1/clang_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.2.1/5.2.1/clang_64/bin/qmake
fi

# try the path targeted by the one-click Qt installer on Ubuntu
if [ -e "$HOME/Qt5.2.1/5.2.1/gcc_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.2.1/5.2.1/gcc_64/bin/qmake
fi

# try the path targeted by ./makeQt_everywhere.sh
if [ -e "$HOME/Qt/Desktop/5.2.1/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt/Desktop/5.2.1/bin/qmake
fi
<commit_msg>Added support for Qt 5.4.0<commit_after>#!/bin/bash
# (use "chmod +rx scriptname" to make script executable)
#
# For use on any Unix system
#
# Execute this script with "git" as default directory to
# build a release version of skirt in the "release" directory
# using your current local copy of the code
#
# By default the build uses five parallel threads; you can
# specify another number as the first command line argument
#

# determine the qmake install path

#####################################################
### Search for the most recent version of Qt first ##
#####################################################

# VERSION 5.4.0

# try the path targeted by the one-click Qt installer
if [ -e "$HOME/Qt5.4.0/5.4/clang_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.4.0/5.4/clang_64/bin/qmake
fi

# try the path targeted by the one-click Qt installer on Ubuntu
if [ -e "$HOME/Qt5.4.0/5.4/gcc_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.4.0/5.4/gcc_64/bin/qmake
fi

# try the path targeted by ./makeQt_everywhere.sh
if [ -e "$HOME/Qt/Desktop/5.4.0/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt/Desktop/5.4.0/bin/qmake
fi

# try the path in /usr/local used on Ghent research team computers
if [ -e "/usr/local/Qt/5.4.0/bin/qmake" ]
then
    QMAKEPATH=/usr/local/Qt/5.4.0/bin/qmake
fi

#############################################################################################
## Search for other supported versions of Qt  ##
#############################################################################################

# VERSION 5.3.2

# try the path targeted by the one-click Qt installer
if [ -e "$HOME/Qt5.3.2/5.3/clang_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.3.2/5.3/clang_64/bin/qmake
fi

# try the path targeted by the one-click Qt installer on Ubuntu
if [ -e "$HOME/Qt5.3.2/5.3/gcc_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.3.2/5.3/gcc_64/bin/qmake
fi

# try the path targeted by ./makeQt_everywhere.sh
if [ -e "$HOME/Qt/Desktop/5.3.2/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt/Desktop/5.3.2/bin/qmake
fi

# try the path in /usr/local used on Ghent research team computers
if [ -e "/usr/local/Qt/5.3.2/bin/qmake" ]
then
    QMAKEPATH=/usr/local/Qt/5.3.2/bin/qmake
fi

# VERSION 5.2.1

# try the path targeted by the one-click Qt installer on Mac
if [ -e "$HOME/Qt5.2.1/5.2.1/clang_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.2.1/5.2.1/clang_64/bin/qmake
fi

# try the path targeted by the one-click Qt installer on Ubuntu
if [ -e "$HOME/Qt5.2.1/5.2.1/gcc_64/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt5.2.1/5.2.1/gcc_64/bin/qmake
fi

# try the path targeted by ./makeQt_everywhere.sh
if [ -e "$HOME/Qt/Desktop/5.2.1/bin/qmake" ]
then
    QMAKEPATH=$HOME/Qt/Desktop/5.2.1/bin/qmake
fi

{'fraction_non_alphanumeric': 0.2415682967959528, 'fraction_numerical': 0.04384485666104553, 'mean_word_length': 3.7213930348258706, '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': '2699756', 'n_tokens_mistral': 1811, 'n_tokens_neox': 1697, 'n_words': 459}