<commit_before>#!/bin/bash

set -e

mkdir -p arangodb
cd arangodb
export ARANGODB_ROOT_PASSWD=password

curl -OL https://download.arangodb.com/arangodb38/DEBIAN/Release.key
sudo apt-key add - < Release.key

echo 'deb https://download.arangodb.com/arangodb38/DEBIAN/ /' | sudo tee /etc/apt/sources.list.d/arangodb.list
sudo apt-get install apt-transport-https
sudo apt-get update || true

sudo sh -c 'echo arangodb3 arangodb3/password password $<PASSWORD> | debconf-set-selections'
sudo sh -c 'echo arangodb3 arangodb3/password_again password $<PASSWORD> | debconf-set-selections'

sudo apt-get install arangodb3=3.8.1-1

printf "\n\n"
echo "#################################"
echo "# Now configuring the server..."
echo "#################################"
printf "\n"

echo "1/3 - Creating 'phpfastcache' user:"
curl -X POST -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/user <<EOF
{
  "user" : "phpfastcache",
  "passwd" : "<PASSWORD>"<commit_msg>Fixed Arangodb user password<commit_after>#!/bin/bash

set -e

mkdir -p arangodb
cd arangodb
export ARANGODB_ROOT_PASSWD=password

curl -OL https://download.arangodb.com/arangodb38/DEBIAN/Release.key
sudo apt-key add - < Release.key

echo 'deb https://download.arangodb.com/arangodb38/DEBIAN/ /' | sudo tee /etc/apt/sources.list.d/arangodb.list
sudo apt-get install apt-transport-https
sudo apt-get update || true

sudo sh -c 'echo arangodb3 arangodb3/password password $<PASSWORD>ODB_ROOT_PASSWD | debconf-set-selections'
sudo sh -c 'echo arangodb3 arangodb3/password_again password $<PASSWORD> | debconf-set-selections'

sudo apt-get install arangodb3=3.8.1-1

printf "\n\n"
echo "#################################"
echo "# Now configuring the server..."
echo "#################################"
printf "\n"

echo "1/3 - Creating 'phpfastcache' user:"
curl -X POST -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/user <<EOF
{
  "user" : "phpfastcache",
  "passwd" : "<PASSWORD>"
{'fraction_non_alphanumeric': 0.1969111969111969, 'fraction_numerical': 0.01833976833976834, 'mean_word_length': 4.602702702702703, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6020150', 'n_tokens_mistral': 794, 'n_tokens_neox': 716, 'n_words': 172}