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

set -eu
# USAGE: ./remove_user.sh akvoflowsandbox userEmail

APP_ID=$1
SERVICE_ACCOUNT="sa-$APP_<EMAIL>"
P12_FILE_PATH="$FLOW_SERVER_CONFIG/$1/$1.p12"

echo "$1 "
java -cp bin:"lib/*" \
     org.akvo.gae.remoteapi.RemoteAPI \
     RemoveUsers \
     $APP_ID \
     $SERVICE_ACCOUNT \
     $P12_FILE_PATH \
     "$2"<commit_msg>[#3636] Fix current repo directory on bash script<commit_after>#!/usr/bin/env bash

set -eu
# USAGE: ./remove_user.sh akvoflowsandbox userEmail

APP_ID=$1
SERVICE_ACCOUNT="sa-$APP_ID<EMAIL>"
REPOS_HOME="$(cd $(dirname "$0")/../../.. && pwd)"
P12_FILE_PATH="$REPOS_HOME/akvo-flow-server-config/$1/$1.p12"

echo "$1 "
java -cp bin:"lib/*" \
     org.akvo.gae.remoteapi.RemoteAPI \
     RemoveUsers \
     $APP_ID \
     $SERVICE_ACCOUNT \
     $P12_FILE_PATH \
     "$2"
{'fraction_non_alphanumeric': 0.17328519855595667, 'fraction_numerical': 0.032490974729241874, 'mean_word_length': 3.2448979591836733, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1524868', 'n_tokens_mistral': 355, 'n_tokens_neox': 341, 'n_words': 54}