<commit_before>#!/bin/sh -e
#
# cjdns-install
#
# Prepratory script for cjdns installation and update.
#

# Create network tunnel device
mkdir /dev/net/tun
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun

# Install cjdns
wget https://raw.githubusercontent.com/mecctro/cjdns-install/master/nsroute
mv nsroute /etc/init.d/nsroute
chmod +x /etc/init.d/nsroute
update-rc.d nsroute defaults
service nsroute install
mkdir /var/log/cjdns
echo '' >> /var/log/cjdns/cjdns.logvv

# Correct PATH and prep for go installation
mkdir -p $HOME/projects/go
export PATH=$PATH:$HOME/bin:/opt/cjdns
echo 'export PATH=$PATH:$HOME/bin:/opt/cjdns' >> ~/.bashrc
export GOPATH=$PATH:$HOME/projects/go
echo 'export GOPATH=$PATH:$HOME/projects/go' >> ~/.bashrc
export PATH=$PATH:$HOME/projects/go/bin
echo 'export PATH=$PATH:$HOME/projects/go/bin' >> ~/.bashrc

# Install cjdcmd-ng
apt-get install go -y
go get github.com/ehmry/cjdcmd-ng

# Generate config / clean config json
cjdroute --genconf > /etc/cjdroute.config
cjdroute --cleanconf > /etc/cjdroute.config > /etc/cjdroute.conf
rm -rf /etc/cjdroute.config

# Link config with cjdcmd
cjdcmd cjdnsadmin --file=/etc/cjdroute.conf

# Setup CRON for auto-updates (check once daily @ 12 PM)
echo '0 0 * * * root /etc/init.d/nsroute 2>&1 >> /var/log/cjdns/cjdns.log' >> /etc/cron.d/cjdns
<commit_msg>spelling corrections<commit_after>#!/bin/sh -e
#
# cjdns-install
#
# Prepratory script for cjdns installation and update.
#

# Create network tunnel device
mkdir /dev/net/tun
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun

# Install cjdns
wget https://raw.githubusercontent.com/mecctro/cjdns-install/master/nsroute
mv nsroute /etc/init.d/nsroute
chmod +x /etc/init.d/nsroute
update-rc.d nsroute defaults
service nsroute install
mkdir /var/log/cjdns
echo '' >> /var/log/cjdns/cjdns.log

# Correct PATH and prep for go installation
mkdir -p $HOME/projects/go
export PATH=$PATH:$HOME/bin:/opt/cjdns
echo 'export PATH=$PATH:$HOME/bin:/opt/cjdns' >> ~/.bashrc
export GOPATH=$PATH:$HOME/projects/go
echo 'export GOPATH=$PATH:$HOME/projects/go' >> ~/.bashrc
export PATH=$PATH:$HOME/projects/go/bin
echo 'export PATH=$PATH:$HOME/projects/go/bin' >> ~/.bashrc

# Install cjdcmd-ng
apt-get install go -y
go get github.com/ehmry/cjdcmd-ng

# Generate config / clean config json
cjdroute --genconf > /etc/cjdroute.config
cjdroute --cleanconf > /etc/cjdroute.config > /etc/cjdroute.conf
rm -rf /etc/cjdroute.config

# Link config with cjdcmd
cjdcmd cjdnsadmin --file=/etc/cjdroute.conf

# Setup CRON for auto-updates (check once daily @ 12 PM)
echo '0 0 * * * root /etc/init.d/nsroute 2>&1 >> /var/log/cjdns/cjdns.log' >> /etc/cron.d/cjdns

{'fraction_non_alphanumeric': 0.14527662777568687, 'fraction_numerical': 0.010538200978547234, 'mean_word_length': 4.0150943396226415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '2079270', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1013, 'n_words': 241}