<commit_before>#!/bin/sh
# Installation of MapTiler application
#
# In case anything fails please contact: <NAME> <<EMAIL>>
#
# UbuntuGIS repository added to the Apt (same like in QGIS and GRASS)

TMP=/tmp/maptiler_downloads
MAPTILERDEB="maptiler_1.0.beta1_all.deb"

cd $TMP

#Add repositories
wget -r https://svn.osgeo.org/osgeo/livedvd/gisvm/trunk/sources.list.d/ubuntugis.list \
   --output-document=/etc/apt/sources.list.d/ubuntugis.list

#Add signed key for the repository
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160  

apt-get update

# Install dependencies

PACKAGES="python python-wxgtk2.8 python-gdal"

TO_INSTALL=""

for PACKAGE in $PACKAGES ; do
  if [ `dpkg -l $PACKAGE | grep -c '^ii'` -eq 0 ] ; then
    TO_INSTALL="$TO_INSTALL $PACKAGE"
  fi
done

if [ -n "$TO_INSTALL" ] ; then
  echo "Installing: $TO_INSTALL"
  apt-get --assume-yes install $TO_INSTALL

  if [ $? -ne 0 ] ; then
    echo "ERROR: package install failed"
    exit 1
  fi 
fi

# If MapTiler is not installed then download the .deb package and install it
if [ `dpkg -l maptiler | grep -c '^ii'` -eq 0 ] ; then
  wget -c http://maptiler.googlecode.com/files/$MAPTILERDEB
  dpkg -i $MAPTILERDEB
  rm $MAPTILERDEB
fi

# Test if installation was correct and create the Desktop icon<commit_msg>minor cleanups, keep downloaded data<commit_after>#!/bin/sh
# Installation of MapTiler application
#
# In case anything fails please contact: <NAME> <<EMAIL>>
#
# UbuntuGIS repository added to the Apt (same like in QGIS and GRASS)

TMP=/tmp/maptiler_downloads
MAPTILERDEB="maptiler_1.0.beta1_all.deb"

cd "$TMP"

#Add repositories
wget -r https://svn.osgeo.org/osgeo/livedvd/gisvm/trunk/sources.list.d/ubuntugis.list \
   --output-document=/etc/apt/sources.list.d/ubuntugis.list

#Add signed key for repositorys LTS and non-LTS
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68436DDF  
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160  
apt-get update


# Install dependencies
PACKAGES="python python-wxgtk2.8 python-gdal"

echo "Installing: $PACKAGES"
apt-get --assume-yes install $PACKAGES
if [ $? -ne 0 ] ; then
   echo "ERROR: package install failed"
   exit 1
fi


# If MapTiler is not installed then download the .deb package and install it
if [ `dpkg -l maptiler | grep -c '^ii'` -eq 0 ] ; then
  wget -c "http://maptiler.googlecode.com/files/$MAPTILERDEB"
  dpkg -i "$MAPTILERDEB"
  #rm "$MAPTILERDEB"
fi

# Test if installation was correct and create the Desktop icon
{'fraction_non_alphanumeric': 0.11668003207698477, 'fraction_numerical': 0.0136327185244587, 'mean_word_length': 3.7888675623800383, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4787290', 'n_tokens_mistral': 982, 'n_tokens_neox': 906, 'n_words': 266}