<commit_before>#!/bin/bash

set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CACHEDIR=$DIR/_cache
BUILDDIR=$DIR/_build
POSTGREVER="9.4.4"
DEVIVEHIVEVER="2.0.7"
DEVICEHIVEADMINCPVER="2.0.2"

if [ "$1" = "--noarm" ]; then
  NOARM="1"
  echo armhf is disabled
fi

function download() {
  mkdir -p $CACHEDIR
  (cd $CACHEDIR && wget -nc $1)
}

function unpack() {
  (cd $CACHEDIR && tar xf $1)
}

function build_postgre() {
  cp $CACHEDIR/postgresql-$POSTGREVER $CACHEDIR/postgresql-$POSTGREVER-$1 -rn
  if [ ! -f $CACHEDIR/postgresql-$POSTGREVER-$1/config.status ]; then
    (cd $CACHEDIR/postgresql-$POSTGREVER-$1 && ./configure --disable-float8-byval --without-openssl --without-pam --without-perl --without-python --without-readline --without-tcl --host=$2 --prefix=$BUILDDIR/psql-$1)<commit_msg>update versions<commit_after>#!/bin/bash

set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CACHEDIR=$DIR/_cache
BUILDDIR=$DIR/_build
POSTGREVER="9.4.4"
DEVIVEHIVEVER="2.0.9"
DEVICEHIVEADMINCPVER="2.0.3"

if [ "$1" = "--noarm" ]; then
  NOARM="1"
  echo armhf is disabled
fi

function download() {
  mkdir -p $CACHEDIR
  (cd $CACHEDIR && wget -nc $1)
}

function unpack() {
  (cd $CACHEDIR && tar xf $1)
}

function build_postgre() {
  cp $CACHEDIR/postgresql-$POSTGREVER $CACHEDIR/postgresql-$POSTGREVER-$1 -rn
  if [ ! -f $CACHEDIR/postgresql-$POSTGREVER-$1/config.status ]; then
    (cd $CACHEDIR/postgresql-$POSTGREVER-$1 && ./configure --disable-float8-byval --without-openssl --without-pam --without-perl --without-python --without-readline --without-tcl --host=$2 --prefix=$BUILDDIR/psql-$1)
{'fraction_non_alphanumeric': 0.19482120838471023, 'fraction_numerical': 0.02466091245376079, 'mean_word_length': 3.948170731707317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4271594', 'n_tokens_mistral': 652, 'n_tokens_neox': 658, 'n_words': 124}