<commit_before>#!/usr/bin/env bash


echo "Getting settings"
settingsPath=$1
. $settingsPath

if [ -z "$puppetColor" ]; then
  puppetColor="false"
fi

echo "Uploading puppet"
ssh $userName@$hostName "
  rm -rf ~/puppet;
  mkdir -p ~/puppet;
"
for module in $(echo $modules | tr ":" "\n")
do
  scp -r -q $module $userName@$hostName:~/puppet/$(basename $module)
done

echo "Applying puppet"
ssh $userName@$hostName "
  sudo puppet apply --verbose --color $puppetColor --modulepath ~/puppet ~/puppet/$entryPoint;
  rm -rf ~/puppet;
"
echo "Done"<commit_msg>Expand all command switches to full notation<commit_after>#!/usr/bin/env bash

modulePath='~/puppet'

echo "Getting settings"
settingsPath=$1
. $settingsPath

# zero
if [ -z "$puppetColor" ]; then
  puppetColor="false"
fi

echo "Uploading puppet"
ssh $userName@$hostName "
  rm --recursive --force $modulePath;
  mkdir --parents $modulePath;
"
for module in $(echo $modules | tr ":" "\n")
do
  # recursively, quiet & with compression
  scp -r -q -C $module $userName@$hostName:$modulePath/$(basename $module)
done

echo "Applying puppet"
ssh $userName@$hostName "
  sudo puppet apply --verbose --color $puppetColor --modulepath $modulePath $modulePath/$entryPoint;
  rm --recursive --force $modulePath;
"
echo "Done"
{'fraction_non_alphanumeric': 0.15196850393700786, 'fraction_numerical': 0.0015748031496062992, 'mean_word_length': 4.295833333333333, 'pattern_counts': {'":': 2, '<': 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': '5403723', 'n_tokens_mistral': 482, 'n_tokens_neox': 455, 'n_words': 130}