<commit_before>#!/bin/bash

source $1

function runFilter(){
    PROVISION_ID=$1
    CONFIGURATION_EXEC_ID=$2
    
    DEPLOY_EXEC_ID=`curl -k -u $USER_USERNAME:$USER_PASSWORD -H "Content-type: application/json" -X POST -d "{\"provisionID\":\"$PROVISION_ID\",\"managerType\":\"ansible\",\"configurationID\":\"$CONFIGURATION_EXEC_ID\"}" $HOST/drip-api/user/v1.0/deployer/deploy`
}


function printResult(){
    DEPLOY_EXEC_ID=$1
    declare -A ANSIBLE_OUT
    
    while IFS="=" read -r key value; do ANSIBLE_OUT[$key]="$value"; done < <(curl -k -u $USER_USERNAME:$USER_PASSWORD -X GET $HOST/drip-api/user/v1.0/deployer/$DEPLOY_EXEC_ID | jq .ansibleOutputList | jq -r "to_entries|map(\"\(.key)=\(.value)\")|.[]")
    for key in "${!ANSIBLE_OUT[@]}"; do  curl -k -u $USER_USERNAME:$USER_PASSWORD $HOST/drip-api/user/v1.0/deployer/ansible/${ANSIBLE_OUT[$key]} 2>/dev/null | jq .result; done
}


if [ ! -f index_file ]; then
    echo "index=\"0\"" > index_file
fi
source index_file
# echo "${PROV_IDS[$index]}"

runFilter ${PROV_IDS[$index]} $CONFIGURATION_ID
echo $DEPLOY_EXEC_ID
printResult $DEPLOY_EXEC_ID

((index++))
if [ "$index" -ge "${#PROV_IDS[*]}" ]; then<commit_msg>Update staticEuroArgoUsecase.sh<commit_after>#!/bin/bash

source $1

function runFilter(){
    PROVISION_ID=$1
    CONFIGURATION_ID=$2
    
    DEPLOY_ID=`curl -k -u $USER_USERNAME:$USER_PASSWORD -H "Content-type: application/json" -X POST -d "{\"provisionID\":\"$PROVISION_ID\",\"managerType\":\"ansible\",\"configurationID\":\"$CONFIGURATION_ID\"}" $HOST/drip-api/user/v1.0/deployer/deploy`
}


function printResult(){
    DEPLOY_ID=$1
    declare -A ANSIBLE_OUT
    
    while IFS="=" read -r key value; do ANSIBLE_OUT[$key]="$value"; done < <(curl -k -u $USER_USERNAME:$USER_PASSWORD -X GET $HOST/drip-api/user/v1.0/deployer/$DEPLOY_ID | jq .ansibleOutputList | jq -r "to_entries|map(\"\(.key)=\(.value)\")|.[]")
    for key in "${!ANSIBLE_OUT[@]}"; do  curl -k -u $USER_USERNAME:$USER_PASSWORD $HOST/drip-api/user/v1.0/deployer/ansible/${ANSIBLE_OUT[$key]} 2>/dev/null | jq .result; done
}


if [ ! -f index_file ]; then
    echo "index=\"0\"" > index_file
fi
source index_file
# echo "${PROV_IDS[$index]}"

runFilter ${PROV_IDS[$index]} $CONFIGURATION_ID
echo $DEPLOY_ID
printResult $DEPLOY_ID

((index++))
if [ "$index" -ge "${#PROV_IDS[*]}" ]; then
{'fraction_non_alphanumeric': 0.19793902962644913, 'fraction_numerical': 0.010304851867754402, 'mean_word_length': 4.406032482598608, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 7, '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': '1534844', 'n_tokens_mistral': 978, 'n_tokens_neox': 923, 'n_words': 170}