<commit_before>#!/bin/bash

function proc_ctl {
	gksudo service $1 $2
}

case $2 in
server)
	case $3 in
	start)
		proc_ctl openerp-server-$1 start
		;;
	stop)
		proc_ctl openerp-server-$1 stop
		;;
	restart)
		proc_ctl openerp-server-$1 restart
		;;
	esac
	;;
web)
	case $3 in
	start)
		proc_ctl openerp-web-$1 start
		;;
	stop)
		proc_ctl openerp-web-$1 stop
		;;
	restart)
		proc_ctl openerp-web-$1 restart
		;;
	esac
	;;
all)
	case $3 in
	start)
		proc_ctl openerp-server-$1 start
		proc_ctl openerp-web-$1 start
		;;
	stop)
		proc_ctl openerp-server-$1 stop
		proc_ctl openerp-web-$1 stop
		;;
	restart)
		proc_ctl openerp-server-$1 restart
		proc_ctl openerp-web-$1 restart
		;;
	esac
	;;
apache)
	case $2 in
	start)
		proc_ctl apache2 start
		;;
	stop)
		proc_ctl apache2 stop
		;;
	restart)
		proc_ctl apache2 restart
		;;
	esac
	;;
postgresql)
	case $2 in
	start)
		proc_ctl postgresql-8.4 start
		;;
	stop)
		proc_ctl postgresql-8.4 stop
		;;
	restart)
		proc_ctl postgresql-8.4 restart
		;;
	esac
	;;
esac<commit_msg>chown openerp-dev-control.sh<commit_after>#!/bin/bash

function proc_ctl {
	gksudo service $1 $2
}

case $2 in
server)
	case $3 in
	start)
		gksudo service openerp-server-$1 start
		;;
	stop)
		gksudo service openerp-server-$1 stop
		;;
	restart)
		gksudo service openerp-server-$1 restart
		;;
	esac
	;;
web)
	case $3 in
	start)
		gksudo service openerp-web-$1 start
		;;
	stop)
		gksudo service openerp-web-$1 stop
		;;
	restart)
		gksudo service openerp-web-$1 restart
		;;
	esac
	;;
all)
	case $3 in
	start)
		gksudo service openerp-server-$1 start
		gksudo service openerp-web-$1 start
		;;
	stop)
		gksudo service openerp-server-$1 stop
		gksudo service openerp-web-$1 stop
		;;
	restart)
		gksudo service openerp-server-$1 restart
		gksudo service openerp-web-$1 restart
		;;
	esac
	;;
apache)
	case $2 in
	start)
		gksudo service apache2 start
		;;
	stop)
		gksudo service apache2 stop
		;;
	restart)
		gksudo service apache2 restart
		;;
	esac
	;;
postgresql)
	case $2 in
	start)
		gksudo service postgresql-8.4 start
		;;
	stop)
		gksudo service postgresql-8.4 stop
		;;
	restart)
		gksudo service postgresql-8.4 restart
		;;
	esac
	;;
esac
{'fraction_non_alphanumeric': 0.11070280202112999, 'fraction_numerical': 0.0266421681212678, 'mean_word_length': 3.0558659217877095, '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': '3222777', 'n_tokens_mistral': 1009, 'n_tokens_neox': 907, 'n_words': 228}