<commit_before>#!/bin/bash

ARCH=$1
DUNITER_VER=$2
NVER="v5.9.1"
DUNITER_DEB_VER=" $DUNITER_VER"
echo "$ARCH"
echo "$NVER"
echo "$DUNITER_VER"
echo "$DUNITER_DEB_VER"

echo "Downloading Nodejs"
wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-${ARCH}.tar.gz
echo "Extracting Nodejs"
tar xzf node-${NVER}-linux-${ARCH}.tar.gz
mv node-${NVER}-linux-${ARCH} node
rm node-${NVER}-linux-${ARCH}.tar.gz

echo "npm install"
node/bin/npm install
node/bin/npm prune --production
SRC=`pwd`
echo $SRC

# Install UI
npm install duniter-ui
rm -Rf node_modules/duniter-ui/node_modules

cd ..
mkdir -p duniter_release/sources
cp -R ${SRC}/* duniter_release/sources/

# Creating DEB packaging<commit_msg>[fix] ARM build was broken, it requires Node 6 but Node 5 was used<commit_after>#!/bin/bash

ARCH=$1
DUNITER_VER=$2
NVER="v6.9.4"
DUNITER_DEB_VER=" $DUNITER_VER"
echo "$ARCH"
echo "$NVER"
echo "$DUNITER_VER"
echo "$DUNITER_DEB_VER"

echo "Downloading Nodejs"
wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-${ARCH}.tar.gz
echo "Extracting Nodejs"
tar xzf node-${NVER}-linux-${ARCH}.tar.gz
mv node-${NVER}-linux-${ARCH} node
rm node-${NVER}-linux-${ARCH}.tar.gz

echo "npm install"
node/bin/npm install
node/bin/npm prune --production
SRC=`pwd`
echo $SRC

# Install UI
node/bin/npm install duniter-ui --production
rm -Rf node_modules/duniter-ui/node_modules

cd ..
mkdir -p duniter_release/sources
cp -R ${SRC}/* duniter_release/sources/

# Creating DEB packaging
{'fraction_non_alphanumeric': 0.1674641148325359, 'fraction_numerical': 0.008202323991797676, 'mean_word_length': 4.879518072289157, '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': '7223708', 'n_tokens_mistral': 605, 'n_tokens_neox': 585, 'n_words': 133}