<commit_before>#!/bin/bash
userPassword=$1

#download the packages
cd /tmp
wget -c http://swupdate.openvpn.org/as/openvpn-as-2.1.9-Ubuntu16.amd_64.deb
#sudo apt-get update

#install the software
sudo dpkg -i openvpn-as-2.1.9-Ubuntu16.amd_64.deb
#sudo apt-get -y install openvpn-as

#update the password for user openvpn
sudo echo "openvpn:$userPassword"|sudo chpasswd
<commit_msg>Network config<commit_after>#!/bin/bash
userPassword=$1

#download the packages
cd /tmp
wget -c http://swupdate.openvpn.org/as/openvpn-as-2.1.9-Ubuntu16.amd_64.deb
#sudo apt-get update

#install the software
sudo dpkg -i openvpn-as-2.1.9-Ubuntu16.amd_64.deb
#sudo apt-get -y install openvpn-as

#update the password for user openvpn
sudo echo "openvpn:$userPassword"|sudo chpasswd

#configure server network settings
PUBLICIP=$(curl -s ifconfig.me)
sudo apt-get install sqlite3
sudo sqlite3 "/usr/local/openvpn_as/etc/db/config.db" "update config set value='$PUBLICIP' where name='host.name';"

#restart OpenVPN AS service
sudo systemctl restart openvpnas

{'fraction_non_alphanumeric': 0.11872586872586872, 'fraction_numerical': 0.03088803088803089, 'mean_word_length': 4.858757062146893, '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': '3833340', 'n_tokens_mistral': 433, 'n_tokens_neox': 382, 'n_words': 99}