<commit_before>#!/bin/sh

### BEGIN INIT INFO
# Provides:          warp10
# Required-Start:    
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Warp data platform
# Description:       Warp stores sensor data
### END INIT INFO

# Source function library.
if [ -e /lib/lsb/init-functions ]; then
  . /lib/lsb/init-functions
fi

OS=$(uname -s)

#JAVA_HOME=/opt/java8
#WARP10_HOME=/opt/warp10-@VERSION@

if [ -z "$JAVA_HOME" ]; then
  echo "JAVA_HOME not set";
  exit 1
fi

# If WARP10_HOME is not defined, set it to the parent directory
if [ -z "${WARP10_HOME}" ]; then
  if [ "Darwin" = "${OS}" ]
  then
    pushd $(dirname $0)/.. > /dev/null 2>&1
    WARP10_HOME=`pwd`
    popd > /dev/null 2>&1
  else
    WARP10_HOME=$(dirname $(readlink -f $0))/..
  fi
fi

#
# Data directory that contains logs, leveldb, config defined ?
#
#WARP10_DATA_DIR=/data

if [ -z "${WARP10_DATA_DIR}" ]; then
  WARP10_DATA_DIR=${WARP10_HOME}
fi

#
# PID File
#
PID_FILE=${WARP10_HOME}/logs/warp10.pid

#
# File to indicate this is the first init of Warp 10 (bootstrap)
#
FIRSTINIT_FILE=${WARP10_HOME}/logs/.firstinit
<commit_msg>add export of WARP10_HOME and JAVA_HOME<commit_after>#!/bin/sh

### BEGIN INIT INFO
# Provides:          warp10
# Required-Start:    
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Warp data platform
# Description:       Warp stores sensor data
### END INIT INFO

# Source function library.
if [ -e /lib/lsb/init-functions ]; then
  . /lib/lsb/init-functions
fi

OS=$(uname -s)

#JAVA_HOME=/opt/java8
#WARP10_HOME=/opt/warp10-@VERSION@

if [ -z "$JAVA_HOME" ]; then
  echo "JAVA_HOME not set";
  exit 1
fi

# If WARP10_HOME is not defined, set it to the parent directory
if [ -z "${WARP10_HOME}" ]; then
  if [ "Darwin" = "${OS}" ]
  then
    pushd $(dirname $0)/.. > /dev/null 2>&1
    WARP10_HOME=`pwd`
    popd > /dev/null 2>&1
  else
    WARP10_HOME=$(dirname $(readlink -f $0))/..
  fi
fi

export JAVA_HOME
export WARP10_HOME

#
# Data directory that contains logs, leveldb, config defined ?
#
#WARP10_DATA_DIR=/data

if [ -z "${WARP10_DATA_DIR}" ]; then
  WARP10_DATA_DIR=${WARP10_HOME}
fi

#
# PID File
#
PID_FILE=${WARP10_HOME}/logs/warp10.pid

#
# File to indicate this is the first init of Warp 10 (bootstrap)
#
FIRSTINIT_FILE=${WARP10_HOME}/logs/.firstinit

{'fraction_non_alphanumeric': 0.1430374421539756, 'fraction_numerical': 0.03954564577198149, 'mean_word_length': 3.2540250447227193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3386132', 'n_tokens_mistral': 993, 'n_tokens_neox': 916, 'n_words': 247}