<commit_before>#!/bin/sh

cd `dirname "$0"`

FILES="requirements.txt player.py start.sh pixel.gif"
DEST_PATH="/root/simpleplayer/"

function sync() {
  TARGET=$1
  ssh $TARGET ipe-rw
  rsync -v $FILES $TARGET:$DEST_PATH
  scp rc.local $TARGET:/etc/rc.local
  ssh $TARGET ipe-ro
}

sync $1




<commit_msg>better sync<commit_after>#!/bin/sh

cd `dirname "$0"`

FILES="requirements.txt player.py start.sh pixel.gif"

sync_rpi() {
  TARGET=$1
  DEST_PATH="/root/simpleplayer/"
  ssh $TARGET ipe-rw
  rsync -v $FILES $TARGET:$DEST_PATH
  #scp rc.local $TARGET:/etc/rc.local
  ssh $TARGET pip install cherrypy
  ssh $TARGET ipe-ro
  ssh $TARGET reboot
}


sync_ubuntu() {
  TARGET=$1
  DEST_PATH="/home/ju/simpleplayer"
  rsync -v $FILES $TARGET:$DEST_PATH
 # ssh $TARGET pip install cherrypy
 # ssh $TARGET sudo reboot
}

sync_rpi $1





{'fraction_non_alphanumeric': 0.14148681055155876, 'fraction_numerical': 0.008393285371702638, 'mean_word_length': 3.7714285714285714, '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': '1702824', 'n_tokens_mistral': 357, 'n_tokens_neox': 317, 'n_words': 78}