<commit_before>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

curl -s https://syncthing.net/release-key.txt | sudo apt-key add - &&
echo deb http://apt.syncthing.net/ syncthing release | sudo tee /etc/apt/sources.list.d/syncthing-release.list &&

sudo apt-get update &&
sudo apt-get -y upgrade &&
sudo apt-get -y dist-upgrade &&
sudo apt-get -y install openssh-server openvpn syncthing syncthing-gtk &&

echo &&
printf "Enter the address of the default route (corresponding FakeRouter): " &&
read -r DEFAULT_ROUTE &&

CONFIG_SRC="${DIR}/fakeClient-boot-config" &&
CONFIG_DST='/etc/network/if-up.d/fakeClient-boot-config' &&
TMPFILE="$(mktemp)" &&
cp "${CONFIG_SRC}" "${TMPFILE}" &&
sed -i "s/@@@@@1@@@@@/${DEFAULT_ROUTE}/g" "${TMPFILE}" &&<commit_msg>Syncthing.<commit_after>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

sudo apt-get update &&
sudo apt-get -y upgrade &&
sudo apt-get -y dist-upgrade &&
sudo apt-get -y install curl openssh-server openvpn &&

curl -s https://syncthing.net/release-key.txt | sudo apt-key add - &&
echo deb http://apt.syncthing.net/ syncthing release | sudo tee /etc/apt/sources.list.d/syncthing-release.list &&
sudo apt-get update &&
sudo apt-get -y install syncthing syncthing-gtk &&

echo &&
printf "Enter the address of the default route (corresponding FakeRouter): " &&
read -r DEFAULT_ROUTE &&

CONFIG_SRC="${DIR}/fakeClient-boot-config" &&
CONFIG_DST='/etc/network/if-up.d/fakeClient-boot-config' &&
TMPFILE="$(mktemp)" &&
cp "${CONFIG_SRC}" "${TMPFILE}" &&
sed -i "s/@@@@@1@@@@@/${DEFAULT_ROUTE}/g" "${TMPFILE}" &&
{'fraction_non_alphanumeric': 0.20125, 'fraction_numerical': 0.0025, 'mean_word_length': 4.464163822525597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6185077', 'n_tokens_mistral': 605, 'n_tokens_neox': 573, 'n_words': 134}