<commit_before>#!/bin/bash
aplay /usr/share/naoqi/wav/chimes_short.wav

rm -rf ./backup
mkdir ./backup
cp -r /home/nao/naoqi/Config ./backup
cp -R /home/nao/bin ./backup

# stop naoqi and/or naoth
if [ -f "./deploy/home/nao/bin/naoth" ]; then
  /etc/init.d/naoth stop
fi

if [ -f "./deploy/home/nao/bin/libnaosmal.so" ]; then
  /etc/init.d/naoqi stop
fi

# remove files that will be copied
if [ -d "./deploy/home/nao/naoqi/Config" ]; then
  rm -rf /home/nao/Config/general
  rm -f /home/nao/Config/reachability_grid.dat
  rm -rf /home/nao/Config/robot_heads
  rm -rf /home/nao/Config/robots
  rm -rf /home/nao/Config/scheme
  rm -rf /home/nao/Config/scheme.cfg
  rm -rf /home/nao/Config/private
fi
if [ -f "./deploy/home/nao/bin/naoth" ]; then
  rm -f /home/nao/bin/naoth
fi
if [ -f "./deploy/home/nao/bin/libnaosmal.so" ]; then
  rm -f /home/nao/bin/libnaosmal.so
fi

# copy files that exist in deploy folder
if [ -d "./deploy/home/nao/naoqi/Config" ]; then
  sudo -u nao cp -nr ./deploy/home/nao/naoqi/Config/* /home/nao/Config/
fi

if [ -d "./deploy/home/nao/bin" ]; then
  sudo -u nao cp ./deploy/home/nao/bin/* /home/nao/bin/
fi

mkdir -p /home/nao/Media/
cp ./anDieArbeit.wav /home/nao/Media/

# start naoqi/naoth again
if [ -f "./deploy/home/nao/bin/libnaosmal.so" ]; then
  /etc/init.d/naoqi start
fi
if [ -f "./deploy/home/nao/bin/naoth" ]; then
  /etc/init.d/naoth start
fi
<commit_msg>don't try to copy unused soundfile<commit_after>#!/bin/bash
aplay /usr/share/naoqi/wav/chimes_short.wav

rm -rf ./backup
mkdir ./backup
cp -r /home/nao/naoqi/Config ./backup
cp -R /home/nao/bin ./backup

# stop naoqi and/or naoth
if [ -f "./deploy/home/nao/bin/naoth" ]; then
  /etc/init.d/naoth stop
fi

if [ -f "./deploy/home/nao/bin/libnaosmal.so" ]; then
  /etc/init.d/naoqi stop
fi

# remove files that will be copied
if [ -d "./deploy/home/nao/naoqi/Config" ]; then
  rm -rf /home/nao/Config/general
  rm -f /home/nao/Config/reachability_grid.dat
  rm -rf /home/nao/Config/robot_heads
  rm -rf /home/nao/Config/robots
  rm -rf /home/nao/Config/scheme
  rm -rf /home/nao/Config/scheme.cfg
  rm -rf /home/nao/Config/private
fi
if [ -f "./deploy/home/nao/bin/naoth" ]; then
  rm -f /home/nao/bin/naoth
fi
if [ -f "./deploy/home/nao/bin/libnaosmal.so" ]; then
  rm -f /home/nao/bin/libnaosmal.so
fi

# copy files that exist in deploy folder
if [ -d "./deploy/home/nao/naoqi/Config" ]; then
  sudo -u nao cp -nr ./deploy/home/nao/naoqi/Config/* /home/nao/Config/
fi

if [ -d "./deploy/home/nao/bin" ]; then
  sudo -u nao cp ./deploy/home/nao/bin/* /home/nao/bin/
fi

# start naoqi/naoth again
if [ -f "./deploy/home/nao/bin/libnaosmal.so" ]; then
  /etc/init.d/naoqi start
fi
if [ -f "./deploy/home/nao/bin/naoth" ]; then
  /etc/init.d/naoth start
fi

{'fraction_non_alphanumeric': 0.1772197962154294, 'fraction_numerical': 0.0, 'mean_word_length': 2.602883355176933, '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': '6185162', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1200, 'n_words': 269}