<commit_before>#------------------------------------------------------------------------------
# GENERAL
#------------------------------------------------------------------------------
echo "------------------------------------------------------------------------"
echo "Setting up environment for UCNSIM"
echo "------------------------------------------------------------------------"

if [[ `uname -n` == "MJRasoBarnett.local" ]] ; then
	# First test if we are running on matt's machine
	echo "Configuring for Matt's local machine"
	export UCN_DIR=${HOME}/Projects/ucnsim/source
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	# Define path to ROOT installation
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}/Apps/ROOT/root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
	# Define path to GSL installation
	export GSL=${HOME}/Apps/GSL/gsl
elif [[ `uname -n` == "simon-mbp.pact.cpes.susx.ac.uk" ]] ; then # Need Simon's local hostname
	# Test if we are running on simon's machine
	echo "Configuring for Simon's local machine"
	export UCN_DIR=${HOME}/Software/ucnsim # Simon to fill in here where he stores the code	
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}Software/ROOT/v5.24.00 # Simon to fill in where he keeps his root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
elif [[ `uname -n` == "neutrino.pact.cpes.susx.ac.uk" ]] ; then 
	# Test if we are running on neutrino
	echo "Configuring for neutrino remote machine"
	export UCN_DIR=/export/eppcode/ucnsim
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	export default="default"
   if [[ "${ROOTSYS:-default}" == "default" ]] ; then
		export ROOTSYS=/export/eppcode/ROOT/v5.24.00b
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
	# Add more machines here as necessary
elif [[ `uname -n` == "ubuntu" ]] ; then 
	# Test if we are running on matt's linux virtual machine
	echo "Configuring for Matt's linux virtual machine"
	export UCN_DIR=${HOME}/code/git/ucnsim
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}/code/root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
elif [[ `uname -n` == "feynman" ]] ; then 
	# Test if we are running on matt's linux virtual machine
	echo "Configuring for Feynman remote machine"
	export UCN_DIR=${HOME}/projects/ucnsim
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}/root/root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
fi
#------------------------------------------------------------------------------
# ROOT & UCN_DIR PATHS
#------------------------------------------------------------------------------
if [[ -n "${LD_LIBRARY_PATH}" ]] ; then
	export LD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib:${LD_LIBRARY_PATH}
else
	export LD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib
fi

if [[ `uname` == Darwin ]] ; then
  if [[ -n "${DYLD_LIBRARY_PATH}" ]] ; then
   export DYLD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib:${DYLD_LIBRARY_PATH}
  else
   export DYLD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib
  fi<commit_msg>Add GSL path to ucnsim.sh<commit_after>#------------------------------------------------------------------------------
# GENERAL
#------------------------------------------------------------------------------
echo "------------------------------------------------------------------------"
echo "Setting up environment for UCNSIM"
echo "------------------------------------------------------------------------"

if [[ `uname -n` == "MJRasoBarnett.local" ]] ; then
	# First test if we are running on matt's machine
	echo "Configuring for Matt's local machine"
	export UCN_DIR=${HOME}/Projects/ucnsim/source
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	# Define path to ROOT installation
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}/Apps/ROOT/root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
	# Define path to GSL installation
	export GSL=${HOME}/Apps/GSL/gsl
elif [[ `uname -n` == "simon-mbp.pact.cpes.susx.ac.uk" ]] ; then # Need Simon's local hostname
	# Test if we are running on simon's machine
	echo "Configuring for Simon's local machine"
	export UCN_DIR=${HOME}/Software/ucnsim # Simon to fill in here where he stores the code	
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}Software/ROOT/v5.24.00 # Simon to fill in where he keeps his root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
elif [[ `uname -n` == "neutrino.pact.cpes.susx.ac.uk" ]] ; then 
	# Test if we are running on neutrino
	echo "Configuring for neutrino remote machine"
	export UCN_DIR=/export/eppcode/ucnsim
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	export default="default"
   if [[ "${ROOTSYS:-default}" == "default" ]] ; then
		export ROOTSYS=/export/eppcode/ROOT/v5.24.00b
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
	# Add more machines here as necessary
elif [[ `uname -n` == "ubuntu" ]] ; then 
	# Test if we are running on matt's linux virtual machine
	echo "Configuring for Matt's linux virtual machine"
	export UCN_DIR=${HOME}/code/git/ucnsim
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}/code/root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
elif [[ `uname -n` == "feynman" ]] ; then 
	# Test if we are running on matt's linux virtual machine
	echo "Configuring for Feynman remote machine"
	export UCN_DIR=${HOME}/projects/ucnsim
	export UCN_GEOM=${UCN_DIR}/geom
	export PATH=${UCN_DIR}/bin:${PATH}
	if [[ -z "${ROOTSYS}" ]] ; then
		export ROOTSYS=${HOME}/root/root
		export PATH=${ROOTSYS}/bin:${PATH}
		export MANPATH=${ROOTSYS}/man:${MANPATH}
	fi
	# Define path to GSL installation
	export GSL=${HOME}/gsl/gsl
fi
#------------------------------------------------------------------------------
# ROOT & UCN_DIR PATHS
#------------------------------------------------------------------------------
if [[ -n "${LD_LIBRARY_PATH}" ]] ; then
	export LD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib:${LD_LIBRARY_PATH}
else
	export LD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib
fi

if [[ `uname` == Darwin ]] ; then
  if [[ -n "${DYLD_LIBRARY_PATH}" ]] ; then
   export DYLD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib:${DYLD_LIBRARY_PATH}
  else
   export DYLD_LIBRARY_PATH=${UCN_DIR}/lib:${ROOTSYS}/lib
  fi
{'fraction_non_alphanumeric': 0.2766855977865152, 'fraction_numerical': 0.0029124799767001604, 'mean_word_length': 2.5329218106995883, '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': '1305188', 'n_tokens_mistral': 2389, 'n_tokens_neox': 2233, 'n_words': 542}