<commit_before>#!/bin/bash


function services_ps_cmd {
	sudo systemctl $1 ioc-as-ps-test
}

function services_vaca_cmd {
	sudo systemctl $1 ioc-as-vaca.service
}

function services_ma_cmd {
	# tb
	sudo systemctl $1 ioc-tb-ma-dipole-fam
	sudo systemctl $1 ioc-tb-ma-corrector
	sudo systemctl $1 ioc-tb-ma-multipole
	# bo
	sudo systemctl $1 ioc-bo-ma-dipole-fam
	sudo systemctl $1 ioc-bo-ma-corrector
	sudo systemctl $1 ioc-bo-ma-multipole-fam
	# ts
	sudo systemctl $1 ioc-ts-ma-dipole-fam
	sudo systemctl $1 ioc-ts-ma-corrector
	sudo systemctl $1 ioc-ts-ma-multipole
	# si
	sudo systemctl $1 ioc-si-ma-dipole-fam
	sudo systemctl $1 ioc-si-ma-corrector-slow
	sudo systemctl $1 ioc-si-ma-corrector-fast
	sudo systemctl $1 ioc-si-ma-multipole-fam
	sudo systemctl $1 ioc-si-ma-quadrupole-trim
	# pm
	sudo systemctl $1 ioc-as-pm
}

function services_posang_cmd {
	sudo systemctl $1 ioc-tb-ap-posang
	sudo systemctl $1 ioc-ts-ap-posang
}

function services_ti_cmd {
  sudo systemctl $1 ioc-as-ti-bo-mags.service
  sudo systemctl $1 ioc-as-ti-clocks.service
  sudo systemctl $1 ioc-as-ti-events.service
  sudo systemctl $1 ioc-as-ti-li-all.service
  sudo systemctl $1 ioc-as-ti-others.service
  sudo systemctl $1 ioc-as-ti-si-bo-bpms.service
  sudo systemctl $1 ioc-as-ti-si-corrs.service
  sudo systemctl $1 ioc-as-ti-si-dig.service
  sudo systemctl $1 ioc-as-ti-si-dip-quads.service
  sudo systemctl $1 ioc-as-ti-si-sexts-skews.service
}

if [ "$1" = "start" ]; then
	services_vaca_cmd start
	services_ps_cmd start
	services_ma_cmd start
	services_posang_cmd start
	services_ti_cmd start
elif [ "$1" = "stop" ]; then
	services_vaca_cmd stop
	services_posang_cmd stop
	services_ma_cmd stop
	services_ps_cmd stop
	services_ti_cmd stop
elif [ "$1" = "status" ]; then
	sudo systemctl status ioc-*
fi<commit_msg>add orbit and sofb services to sirius-ioc-services.sh.<commit_after>#!/bin/bash


function services_ps_cmd {
	sudo systemctl $1 ioc-as-ps-test
}

function services_vaca_cmd {
	sudo systemctl $1 ioc-as-vaca.service
}

function services_ma_cmd {
	# tb
	sudo systemctl $1 ioc-tb-ma-dipole-fam
	sudo systemctl $1 ioc-tb-ma-corrector
	sudo systemctl $1 ioc-tb-ma-multipole
	# bo
	sudo systemctl $1 ioc-bo-ma-dipole-fam
	sudo systemctl $1 ioc-bo-ma-corrector
	sudo systemctl $1 ioc-bo-ma-multipole-fam
	# ts
	sudo systemctl $1 ioc-ts-ma-dipole-fam
	sudo systemctl $1 ioc-ts-ma-corrector
	sudo systemctl $1 ioc-ts-ma-multipole
	# si
	sudo systemctl $1 ioc-si-ma-dipole-fam
	sudo systemctl $1 ioc-si-ma-corrector-slow
	sudo systemctl $1 ioc-si-ma-corrector-fast
	sudo systemctl $1 ioc-si-ma-multipole-fam
	sudo systemctl $1 ioc-si-ma-quadrupole-trim
	# pm
	sudo systemctl $1 ioc-as-pm
}

function services_posang_cmd {
	sudo systemctl $1 ioc-tb-ap-posang
	sudo systemctl $1 ioc-ts-ap-posang
}

function services_ti_cmd {
  sudo systemctl $1 ioc-as-ti-bo-mags.service
  sudo systemctl $1 ioc-as-ti-clocks.service
  sudo systemctl $1 ioc-as-ti-events.service
  sudo systemctl $1 ioc-as-ti-li-all.service
  sudo systemctl $1 ioc-as-ti-others.service
  sudo systemctl $1 ioc-as-ti-si-bo-bpms.service
  sudo systemctl $1 ioc-as-ti-si-corrs.service
  sudo systemctl $1 ioc-as-ti-si-dig.service
  sudo systemctl $1 ioc-as-ti-si-dip-quads.service
  sudo systemctl $1 ioc-as-ti-si-sexts-skews.service
}

function services_sofb_cmd {
	sudo systemctl $1 ioc-si-ap-orbit.service
	sudo systemctl $1 ioc-si-ap-sofb.service
}

if [ "$1" = "start" ]; then
	services_vaca_cmd start
	services_ps_cmd start
	services_ma_cmd start
	services_ti_cmd start
	services_posang_cmd start
	services_sofb_cmd start
elif [ "$1" = "stop" ]; then
	services_vaca_cmd stop
	services_ps_cmd stop
	services_ma_cmd stop
	services_ti_cmd stop
	services_posang_cmd stop
	services_sofb_cmd stop
elif [ "$1" = "status" ]; then
	sudo systemctl status ioc-*
fi
{'fraction_non_alphanumeric': 0.10653371818420362, 'fraction_numerical': 0.017318289162949356, 'mean_word_length': 3.8622448979591835, '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': '2942649', 'n_tokens_mistral': 1663, 'n_tokens_neox': 1588, 'n_words': 357}