<commit_before>#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"

echo "install required tools"
apt-get update
apt-get --assume-yes install zip

echo "build windows version"
sh build.sh win7-x64 $APPVEYOR_BUILD_VERSION

echo "pack windows release files"
cd ./build/win7-x64/ && zip -rq ../identitybase-$APPVEYOR_BUILD_VERSION.zip ./identitybase-$APPVEYOR_BUILD_VERSION && cd -

echo "build linux version"
sh build.sh linux-x64 $APPVEYOR_BUILD_VERSION

echo "pack linux release files"
tar -czf $DIR/build/identitybase-$APPVEYOR_BUILD_VERSION.tgz $DIR/build/linux-x64/identitybase-$APPVEYOR_BUILD_VERSION

echo "build docker image"
cp $DIR/distribution/Dockerfile $DIR/build/linux-x64
docker build $DIR/build/linux-x64 --build-arg VERSION=$APPVEYOR_BUILD_VERSION -t identitybasenet/identitybase:$APPVEYOR_BUILD_VERSION<commit_msg>Doing appveyor build scripts: Added more debug info<commit_after>#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"

echo "install required tools"
apt-get update
apt-get --assume-yes install zip

echo "build windows version"
sh build.sh win7-x64 $APPVEYOR_BUILD_VERSION

echo "pack windows release files: $DIR/build/win7-x64/identitybase-$APPVEYOR_BUILD_VERSION -> $DIR/build/identitybase-$APPVEYOR_BUILD_VERSION.zip"
cd ./build/win7-x64/ && zip -rq ../identitybase-$APPVEYOR_BUILD_VERSION.zip ./identitybase-$APPVEYOR_BUILD_VERSION && cd -

echo "build linux version"
sh build.sh linux-x64 $APPVEYOR_BUILD_VERSION

echo "pack linux release files: $DIR/build/linux-x64/identitybase-$APPVEYOR_BUILD_VERSION -> $DIR/build/identitybase-$APPVEYOR_BUILD_VERSION.tgz"
tar -czf $DIR/build/identitybase-$APPVEYOR_BUILD_VERSION.tgz $DIR/build/linux-x64/identitybase-$APPVEYOR_BUILD_VERSION

echo "build docker image"
cp $DIR/distribution/Dockerfile $DIR/build/linux-x64
docker build $DIR/build/linux-x64 --build-arg VERSION=$APPVEYOR_BUILD_VERSION -t identitybasenet/identitybase:$APPVEYOR_BUILD_VERSION
{'fraction_non_alphanumeric': 0.12182477967858994, 'fraction_numerical': 0.018144116122343183, 'mean_word_length': 5.609589041095891, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6370672', 'n_tokens_mistral': 709, 'n_tokens_neox': 684, 'n_words': 144}