<commit_before>#!/bin/bash
if [[ -n "$1" && -n "$2"  ]] ; then

	rm PokerTH-$1-src.tar.bz2
	rm -r PokerTH-$1-src
	mkdir PokerTH-$1-src
	cd PokerTH-$1-src
	
	# CHECKOUT PokerTH SOURCECODE
	if [[ -n "$3" ]] ; then
	  svn co http://pokerth.svn.sourceforge.net/svnroot/pokerth/trunk/pokerth . -r $3
	else
	  svn co http://pokerth.svn.sourceforge.net/svnroot/pokerth/trunk/pokerth .
	fi

	# CLEAN SOURCES
	svn cleanup
	find . -type d -name .svn -exec rm -rf {} \;
	find . -type f -name .directory -exec rm -rf {} \;
	find . -type f -name *~ -exec rm -rf {} \;
	rm -rf debug
	rm -rf mocs
	rm -rf obj
	rm -rf old
	rm -rf qtc-gdbmacros
	rm -rf release
	rm -rf uics
	rm -rf bin
	rm -rf lib	

	cd ..
	tar -cvjf PokerTH-$1-src.tar.bz2 PokerTH-$1-src/
	scp PokerTH-$1-src.tar.bz2 doitux,<EMAIL>:/home/frs/project/p/po/pokerth/pokerth/$2/
	md5sum PokerTH-$1-src.tar.bz2
	  
	rm PokerTH-$1-src.tar.bz2
	rm -r PokerTH-$1-src

else
echo "Please use 'linux-create-release.sh version sf-dir-version (svn-rev)'"
fi<commit_msg>changed svn to git for src release script<commit_after>#!/bin/bash
if [[ -n "$1" && -n "$2"  ]] ; then

	rm PokerTH-$1-src.tar.bz2
	rm -r PokerTH-$1-src
	mkdir PokerTH-$1-src
	cd PokerTH-$1-src
	
	# CHECKOUT PokerTH SOURCECODE
	if [[ -n "$3" ]] ; then
	  git clone https://github.com/pokerth/pokerth.git . -r $3
	else
	  git clone https://github.com/pokerth/pokerth.git .
	fi

	# CLEAN SOURCES
	find . -type d -name .git -exec rm -rf {} \;
	find . -type f -name .directory -exec rm -rf {} \;
	find . -type f -name *~ -exec rm -rf {} \;
	rm -rf debug
	rm -rf mocs
	rm -rf obj
	rm -rf old
	rm -rf qtc-gdbmacros
	rm -rf release
	rm -rf uics
	rm -rf bin
	rm -rf lib	

	cd ..
	tar -cvjf PokerTH-$1-src.tar.bz2 PokerTH-$1-src/
	scp PokerTH-$1-src.tar.bz2 doitux,<EMAIL>:/home/frs/project/p/po/pokerth/pokerth/$2/
	md5sum PokerTH-$1-src.tar.bz2
	  
	rm PokerTH-$1-src.tar.bz2
	rm -r PokerTH-$1-src

else
echo "Please use 'linux-create-release.sh version sf-dir-version (git-rev)'"
fi
{'fraction_non_alphanumeric': 0.16843166918809885, 'fraction_numerical': 0.02118003025718608, 'mean_word_length': 2.4868189806678385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5410257', 'n_tokens_mistral': 942, 'n_tokens_neox': 899, 'n_words': 226}