<commit_before>#!/bin/bash
#
# sones GraphDB - Community Edition - http://www.sones.com
# Copyright (C) 2007-2011 sones GmbH
#
# This file is part of sones GraphDB Community Edition.
#
# sones GraphDB is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, version 3 of the License.
# 
# sones GraphDB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with sones GraphDB. If not, see <http://www.gnu.org/licenses/>.
# 
# This is the build script for sones GraphDB 2.0 Community Edition
# 
# There are several commandline options available:
#
# -h 	will display a help
# -d	do a DEBUG build (DEFAULT)
# -r	do a RELEASE build
# -p	do a partial build (can be combined with -d/-r)
#
# Last changes: 31-July-2011, <NAME>
#

echo "sones GraphDB 2.0 Build Script (C) sones GmbH 2007-2011";
echo "";

option=$1
option2=$2

if [ $# -lt 1 ]; then
echo "Type -h for build options.";
option="-d";
option2="-d";
fi

if [ $option == "-h" ]; then
echo "-r build a release";
echo "-d build with debug symbols";
echo "-p build partially (can be combined with -r and -d)";
exit 0
fi

if [ $option == "-p" ] || [ $option2 == "-p" ]; then
echo "Doing a partially build";
else
./clearDirectory.sh Applications *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphDB *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphDS *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphFS *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphQL *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh Library *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt<commit_msg>small build script bugfix (GRAPHDB-337)<commit_after>#!/bin/bash
#
# sones GraphDB - Community Edition - http://www.sones.com
# Copyright (C) 2007-2011 sones GmbH
#
# This file is part of sones GraphDB Community Edition.
#
# sones GraphDB is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, version 3 of the License.
# 
# sones GraphDB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with sones GraphDB. If not, see <http://www.gnu.org/licenses/>.
# 
# This is the build script for sones GraphDB 2.0 Community Edition
# 
# There are several commandline options available:
#
# -h 	will display a help
# -d	do a DEBUG build (DEFAULT)
# -r	do a RELEASE build
# -p	do a partial build (can be combined with -d/-r)
#
# Last changes: 31-July-2011, <NAME>
#

echo "sones GraphDB 2.0 Build Script (C) sones GmbH 2007-2011";

option=$1
option2=$2

if [ $# -lt 1 ]; then
echo "Type -h for build options.";
option="-d";
option2="-d";
fi

if [ $option == "-p" ] && [ -z "$option2" ]; then
option2="-d";
fi

if [ $option == "-h" ]; then
echo "-r build a release";
echo "-d build with debug symbols";
echo "-p build partially (can be combined with -r and -d)";
exit 0
fi

if [ $option == "-p" ] || [ $option2 == "-p" ]; then
echo "Doing a partially build";
else
./clearDirectory.sh Applications *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphDB *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphDS *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphFS *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh GraphQL *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
./clearDirectory.sh Library *.pidb *.dll *.exe *.mdb *.pdb *.FilesWrittenAbsolute.txt
{'fraction_non_alphanumeric': 0.1304244723737254, 'fraction_numerical': 0.0173108845150581, 'mean_word_length': 3.7181208053691277, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '571448', 'n_tokens_mistral': 1475, 'n_tokens_neox': 1294, 'n_words': 562}