<commit_before>#!/bin/sh
#################################################
# 
# Purpose: Installation of Kosmo into Xubuntu
# Author:  SAIG <<EMAIL>>
#
#################################################
# Copyright (c) 2009 Open Geospatial Foundation
# Copyright (c) 2009 SAIG
#
# Licensed under the GNU GPL.
# 
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library 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 General Public License for more details, either
# in the "LICENSE.GPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/gpl.html".
##################################################

# About:
# =====
# This script will install Kosmo 1.2.1 into Xubuntu

# Running:
# =======
# sudo ./install_kosmo.sh

echo TYPE YOUR USER NAME:
read USER_NAME
TMP="/tmp/kosmo_downloads"
INSTALL_FOLDER="/usr/lib"
KOSMO_FOLDER="$INSTALL_FOLDER/kosmo_1_2_1"
BIN="/usr/bin"
USER_HOME="/home/$USER_NAME"

## Setup things... ##
 
# check required tools are installed
if [ ! -x "`which wget`" ] ; then
   echo "ERROR: wget is required, please install it and try again" 
   exit 1
fi
# create tmp folders
mkdir $TMP
cd $TMP


## Install Application ##

# get kosmo
if [ -f "kosmo_1_2_1_linux_jre.tar.gz" ]
then
   echo "Kosmo_1_2_1 has already been downloaded."
else
   wget http://www.saig.es/descargas/dloads/kosmo/kosmo_1_2_1_linux_jre.tar.gz
fi

# unpack it and copy it to /usr/lib
tar xvfz kosmo_1_2_1_linux_jre.tar.gz -C $INSTALL_FOLDER<commit_msg>Set username is script instead of prompting for it, as the script is to be run automatically<commit_after>#!/bin/sh
#################################################
# 
# Purpose: Installation of Kosmo into Xubuntu
# Author:  SAIG <<EMAIL>>
#
#################################################
# Copyright (c) 2009 Open Geospatial Foundation
# Copyright (c) 2009 SAIG
#
# Licensed under the GNU GPL.
# 
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library 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 General Public License for more details, either
# in the "LICENSE.GPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/gpl.html".
##################################################

# About:
# =====
# This script will install Kosmo 1.2.1 into Xubuntu

# Running:
# =======
# sudo ./install_kosmo.sh

USER_NAME="user"
TMP="/tmp/kosmo_downloads"
INSTALL_FOLDER="/usr/lib"
KOSMO_FOLDER="$INSTALL_FOLDER/kosmo_1_2_1"
BIN="/usr/bin"
USER_HOME="/home/$USER_NAME"

## Setup things... ##
 
# check required tools are installed
if [ ! -x "`which wget`" ] ; then
   echo "ERROR: wget is required, please install it and try again" 
   exit 1
fi
# create tmp folders
mkdir $TMP
cd $TMP


## Install Application ##

# get kosmo
if [ -f "kosmo_1_2_1_linux_jre.tar.gz" ]
then
   echo "Kosmo_1_2_1 has already been downloaded."
else
   wget http://www.saig.es/descargas/dloads/kosmo/kosmo_1_2_1_linux_jre.tar.gz
fi

# unpack it and copy it to /usr/lib
tar xvfz kosmo_1_2_1_linux_jre.tar.gz -C $INSTALL_FOLDER
{'fraction_non_alphanumeric': 0.17397222978491697, 'fraction_numerical': 0.015790906615845358, 'mean_word_length': 4.558245083207262, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1959720', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1160, 'n_words': 413}