<commit_before>#!/bin/bash

#####################################
##### Functional for DSpace-5.3 #####
#####################################

# $1: <PASSWORD>_password, $2: admin_email
CUR_DIR=`pwd`
WAIT_TIME=20

cd;systemctl stop docker-*.scope;
sleep $WAIT_TIME
docker exec -d dspace sv stop tomcat8
sleep $WAIT_TIME
docker exec -d dspace /dspace/bin/dspace create-administrator -e $2 -f changeme -l changeme -c en -p $1
sleep $WAIT_TIME
docker exec -d dspace /dspace/bin/dspace user -d -m <EMAIL>
sleep $WAIT_TIME
docker exec -d dspace sv start tomcat8
sleep $WAIT_TIME
docker exec -ti dspace bash -c 'sudo -u postgres psql -U postgres -d dspace -c "alter user dspace password $1;"' -- \'$1\'
sleep $WAIT_TIME
docker exec -ti dspace bash -c 'sed -i "s/db.password *= * *dspace/db.password=$1/g" /dspace/config/dspace.cfg' -- $1\
&& docker start dspace\
&& rm -f $CUR_DIR/logs\
&& rm -f $CUR_DIR/${BASH_SOURCE[0]}<commit_msg>Edited DSpace.sh to correctly install sudo<commit_after>#!/bin/bash

#####################################
##### Functional for DSpace-5.3 #####
#####################################

# $1: <PASSWORD>_password, $2: admin_email
CUR_DIR=`pwd`
WAIT_TIME=20

cd;systemctl stop docker-*.scope;
sleep $WAIT_TIME
docker exec -d dspace sv stop tomcat8
sleep $WAIT_TIME
docker exec -d dspace /dspace/bin/dspace create-administrator -e $2 -f changeme -l changeme -c en -p $1
sleep $WAIT_TIME
docker exec -d dspace /dspace/bin/dspace user -d -m <EMAIL>
sleep $WAIT_TIME
docker exec -d dspace sv start tomcat8
sleep $WAIT_TIME
docker exec -ti dspace bash -c 'apt-get update; apt-get install -y sudo; sudo -u postgres psql -U postgres -d dspace -c "alter user dspace password $1;"' -- \'$1\'
sleep $WAIT_TIME
docker exec -ti dspace bash -c 'sed -i "s/db.password *= * *dspace/db.password=$1/g" /dspace/config/dspace.cfg' -- $1\
&& docker start dspace\
&& rm -f $CUR_DIR/logs\
&& rm -f $CUR_DIR/${BASH_SOURCE[0]}
{'fraction_non_alphanumeric': 0.21287642782969884, 'fraction_numerical': 0.01557632398753894, 'mean_word_length': 4.2650273224043715, 'pattern_counts': {'":': 0, '<': 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': '3710442', 'n_tokens_mistral': 719, 'n_tokens_neox': 678, 'n_words': 222}