<commit_before>#!/bin/bash

# copies files that are in the same location on multiple servers
# usage: multi-scp.sh username remote_path local_path [server1 server2 server3...]

if [ $# -lt 4 ]
then
    echo "usage: multi-scp.sh username remote_path local_path [server1 server2 server3...]"
    exit
fi

username=$1
remote_path=$2
local_path=$3

servers=()

#collect the servers
for i in $(seq 4 $#); do
    scp -r $username@${!i}:$remote_path ${local_path}_${!i}
done<commit_msg>Remove unused servers array<commit_after>#!/bin/bash

# copies files that are in the same location on multiple servers
# usage: multi-scp.sh username remote_path local_path [server1 server2 server3...]

if [ $# -lt 4 ]
then
    echo "usage: multi-scp.sh username remote_path local_path [server1 server2 server3...]"
    exit
fi

username=$1
remote_path=$2
local_path=$3

#collect the servers
for i in $(seq 4 $#); do
    scp -r $username@${!i}:$remote_path ${local_path}_${!i}
done
{'fraction_non_alphanumeric': 0.13020833333333334, 'fraction_numerical': 0.022916666666666665, 'mean_word_length': 4.338888888888889, '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': '3336470', 'n_tokens_mistral': 339, 'n_tokens_neox': 327, 'n_words': 107}