<commit_before>#!/bin/bash

source ~/config.sh

id=$1
if [ $# -eq 0 ]
  then
    echo "First argument not given, ID=0"
  id=0
fi
cellsize=" "
if [ $# -eq 1 ]
  then
    echo "Second argument argument given, cellsize=$2"
  cellsize="-cellsize=$2 "
fi

echo "Killing processess named ${program}..."
pkill -f ${program}
echo "Starting client ${id}, socks=$socks, relayhostaddr=$relayhostaddr $cellsize $logParamsString log redirected to ${nohupoutfolder}${nohupclientname}${id}${nohupext}..."
nohup "${programpath}${program}" -client=$1 -socks=$socks -relayhostaddr=$relayhostaddr $cellsize $logParamsString 1>>${nohupoutfolder}${nohupclientname}${id}${nohupext} 2>&1 &
echo "Done."<commit_msg>Bug fix in scripts<commit_after>#!/bin/bash

source ~/config.sh

id=$1
if [ $# -eq 0 ]
  then
    echo "First argument not given, ID=0"
  id=0
fi
cellsize=" "
if [ $# -eq 2 ]
  then
    echo "Second argument argument given, cellsize=$2"
  cellsize="-cellsize=$2 "
fi

echo "Killing processess named ${program}..."
pkill -f ${program}
echo "Starting client ${id}, socks=$socks, relayhostaddr=$relayhostaddr $cellsize $logParamsString log redirected to ${nohupoutfolder}${nohupclientname}${id}${nohupext}..."
nohup "${programpath}${program}" -client=$1 -socks=$socks -relayhostaddr=$relayhostaddr $cellsize $logParamsString 1>>${nohupoutfolder}${nohupclientname}${id}${nohupext} 2>&1 &
echo "Done."
{'fraction_non_alphanumeric': 0.17303532804614274, 'fraction_numerical': 0.015861571737563085, 'mean_word_length': 5.485981308411215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7201761', 'n_tokens_mistral': 527, 'n_tokens_neox': 507, 'n_words': 122}