<commit_before>#!/bin/sh
# Finish deploying the SEAD API and landing zone

# Get source directory, current working directory by default
SRC="`pwd`"
test -n "$1" && SRC="$1"
if ! test -d "$SRC"; then
    echo "Fatal: failed to locate source directory ${SRC}"
    exit 1
fi

# Set target directories
LZ='/home/landingzone/landingzone'
API='/home/seadapi/api'

# Copy server code and set ownership
rsync -avc ${SRC}/landingzone/ ${LZ}/
chown -R landingzone:landingzone $LZ
rsync -avc ${SRC}/api/ ${API}/
chown -R seadapi:seadapi ${API}
for module in constants database decoders eGaugeHandlers seadPlugHandlers rpi1Handlers; do
    mkdir -p /home/landingzone/go/src/github.com/seadsystem/Backend/DB/landingzone/$module
    rsync -avc ${LZ}/$module/ /home/landingzone/go/src/github.com/seadsystem/Backend/DB/landingzone/$module/
done
chown -R landingzone:db /home/landingzone
su -c "env GOPATH='/home/landingzone/go' go build -o ~landingzone/go/bin/landingzone ${LZ}/main.go" - landingzone 

# Start each server
service seadapi start
service landingzone start<commit_msg>Modified deployment script to use new package names.<commit_after>#!/bin/sh
# Finish deploying the SEAD API and landing zone

# Get source directory, current working directory by default
SRC="`pwd`"
test -n "$1" && SRC="$1"
if ! test -d "$SRC"; then
    echo "Fatal: failed to locate source directory ${SRC}"
    exit 1
fi

# Set target directories
LZ='/home/landingzone/landingzone'
API='/home/seadapi/api'

# Copy server code and set ownership
rsync -avc ${SRC}/landingzone/ ${LZ}/
chown -R landingzone:landingzone $LZ
rsync -avc ${SRC}/api/ ${API}/
chown -R seadapi:seadapi ${API}
for module in constants database decoders handlers; do
    mkdir -p /home/landingzone/go/src/github.com/seadsystem/Backend/DB/landingzone/$module
    rsync -avc ${LZ}/$module/ /home/landingzone/go/src/github.com/seadsystem/Backend/DB/landingzone/$module/
done
chown -R landingzone:db /home/landingzone
su -c "env GOPATH='/home/landingzone/go' go build -o ~landingzone/go/bin/landingzone ${LZ}/main.go" - landingzone 

# Start each server
service seadapi start
service landingzone start
{'fraction_non_alphanumeric': 0.1297423887587822, 'fraction_numerical': 0.003278688524590164, 'mean_word_length': 4.380352644836272, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4925465', 'n_tokens_mistral': 754, 'n_tokens_neox': 739, 'n_words': 216}