<commit_before>#!/usr/bin/env bash

#general vars
echo ">>>> Installing iiif server"
export TC_USER=iiifserv
export TC_GROUP=iiifserv
export SVC=iiifserv
export SVC_DESC="BUDA IIIF Server"
export JAVA_HOME=`type -p javac|xargs readlink -f|xargs dirname|xargs dirname`
#export JAVA_HOME=/opt/java-jdk/jdk1.8.0_151
echo $JAVA_HOME

if [ -d /mnt/data ] ; then 
  export DATA_DIR=/mnt/data ; 
else
  export DATA_DIR=/usr/local ;
fi

sudo apt install libturbojpeg0-dev

echo ">>>> DATA_DIR: " $DATA_DIR
echo ">>>> JAVA_HOME: " $JAVA_HOME
export DOWNLOADS=$DATA_DIR/downloads
export THE_HOME=$DATA_DIR/$SVC
export IIIFSERV="buda-iiif-server"
export MAIN_PORT=13580

# add Service USER
echo ">>>> adding user: ${TC_USER}"
groupadd $TC_GROUP
# useradd -s /bin/false -g $TC_GROUP -d $THE_HOME $TC_USER
# during development let the user login
useradd -s /bin/bash -g $TC_GROUP -d $THE_HOME $TC_USER<commit_msg>fix libturbojpeg installation<commit_after>#!/usr/bin/env bash

#general vars
echo ">>>> Installing iiif server"
export TC_USER=iiifserv
export TC_GROUP=iiifserv
export SVC=iiifserv
export SVC_DESC="BUDA IIIF Server"
export JAVA_HOME=`type -p javac|xargs readlink -f|xargs dirname|xargs dirname`
#export JAVA_HOME=/opt/java-jdk/jdk1.8.0_151
echo $JAVA_HOME

if [ -d /mnt/data ] ; then 
  export DATA_DIR=/mnt/data ; 
else
  export DATA_DIR=/usr/local ;
fi

sudo apt install libturbojpeg0-dev libturbojpeg0 -y -q

echo ">>>> DATA_DIR: " $DATA_DIR
echo ">>>> JAVA_HOME: " $JAVA_HOME
export DOWNLOADS=$DATA_DIR/downloads
export THE_HOME=$DATA_DIR/$SVC
export IIIFSERV="buda-iiif-server"
export MAIN_PORT=13580

# add Service USER
echo ">>>> adding user: ${TC_USER}"
groupadd $TC_GROUP
# useradd -s /bin/false -g $TC_GROUP -d $THE_HOME $TC_USER
# during development let the user login
useradd -s /bin/bash -g $TC_GROUP -d $THE_HOME $TC_USER
{'fraction_non_alphanumeric': 0.12309368191721133, 'fraction_numerical': 0.013616557734204794, 'mean_word_length': 5.123333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1313909', 'n_tokens_mistral': 771, 'n_tokens_neox': 706, 'n_words': 182}