<commit_before>PATH_PROJECT="/home/aline/utilitarios/workspaces/datasetBreakingChanges/survey_whyWeBreakAPIs_projects"

clear;

echo "Process path $PATH_PROJECT"
count=1;
while read line 
do  
	echo ""
	echo ""	
	echo "###################### PROJECT $count -  $line ######################"
	cd $PATH_PROJECT"/"$line
	git clean -df
	git checkout -- .
	git fetch --all
	for branch in `git branch -r | sed -r 's/^.{9}//' | grep -v HEAD` ; do 
	#for branch in `git branch -r | cut -d '/' -f2 | grep -v HEAD` ; do 
		echo ""
		echo "-----"
		echo "CHECKOUT $branch"
		git checkout $branch && git pull origin $branch;
	done
	count=$((count+1));
done < $1

cd $PATH_PROJECT
<commit_msg>Correção do script para atualizar todas as branches dos sistemas.<commit_after>PATH_PROJECT="/home/aline/utilitarios/workspaces/datasetBreakingChanges/survey_whyWeBreakAPIs_projects"

clear;

echo "Process path $PATH_PROJECT"
count=1;
while read line 
do  
	echo ""
	echo ""	
	echo "###################### PROJECT $count -  $line ######################"
	cd $PATH_PROJECT"/"$line
	for branch in `git branch -r | sed -r 's/^.{9}//' | grep -v HEAD` ; do 
		echo ""
		echo "-----"
		echo "CHECKOUT $branch"
		git checkout $branch
		git reset --hard "origin/"$branch ## reset modificações na branch.
		git pull origin $branch;
	done
	count=$((count+1));
done < $1

cd $PATH_PROJECT

{'fraction_non_alphanumeric': 0.1982313927781872, 'fraction_numerical': 0.006632277081798084, 'mean_word_length': 3.8156028368794326, 'pattern_counts': {'":': 0, '<': 5, '<?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': '806231', 'n_tokens_mistral': 506, 'n_tokens_neox': 474, 'n_words': 138}