<commit_before>#!/bin/bash

export USER=$(whoami)
export SGE_CONFIG_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export SGE_ROOT=/var/lib/gridengine
echo $SGE_CONFIG_DIR
sed -i -r "s/^(127.0.0.1\s)(localhost\.localdomain\slocalhost)/\1localhost localhost.localdomain ${HOSTNAME} /" /etc/hosts
cp /etc/resolv.conf /etc/resolv.conf.orig
echo "domain ${HOSTNAME}" >> /etc/resolv.conf
# Update everything.
yum -y update -q
yum -y install gridengine gridengine-qmaster
# Do this in a separate step to give master time to start
yum -y install libdrmaa.so.1.0 gridengine-execd
cp ${SGE_ROOT}/default/common/act_qmaster ${SGE_ROOT}/default/common/act_qmaster.orig
echo $HOSTNAME > ${SGE_ROOT}/default/common/act_qmaster
service gridengine-master restart
service gridengine-exec restart
export CORES=$(grep -c '^processor' /proc/cpuinfo)
cp $SGE_CONFIG_DIR/user.conf.tmpl $SGE_CONFIG_DIR/user.conf
sed -i -r "s/template/${USER}/" $SGE_CONFIG_DIR/user.conf
qconf -suserl | xargs -r -I {} qconf -du {} arusers
qconf -suserl | xargs -r qconf -duser<commit_msg>gridengine/install_ge.sh: Install the EPEL repo (required for `gridengine` and friends).<commit_after>#!/bin/bash

export USER=$(whoami)
export SGE_CONFIG_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export SGE_ROOT=/var/lib/gridengine
echo $SGE_CONFIG_DIR
sed -i -r "s/^(127.0.0.1\s)(localhost\.localdomain\slocalhost)/\1localhost localhost.localdomain ${HOSTNAME} /" /etc/hosts
cp /etc/resolv.conf /etc/resolv.conf.orig
echo "domain ${HOSTNAME}" >> /etc/resolv.conf
# Update everything.
yum -y update -q
yum -y install epel-release
yum -y install gridengine gridengine-qmaster
# Do this in a separate step to give master time to start
yum -y install libdrmaa.so.1.0 gridengine-execd
cp ${SGE_ROOT}/default/common/act_qmaster ${SGE_ROOT}/default/common/act_qmaster.orig
echo $HOSTNAME > ${SGE_ROOT}/default/common/act_qmaster
service gridengine-master restart
service gridengine-exec restart
export CORES=$(grep -c '^processor' /proc/cpuinfo)
cp $SGE_CONFIG_DIR/user.conf.tmpl $SGE_CONFIG_DIR/user.conf
sed -i -r "s/template/${USER}/" $SGE_CONFIG_DIR/user.conf
qconf -suserl | xargs -r -I {} qconf -du {} arusers
qconf -suserl | xargs -r qconf -duser
{'fraction_non_alphanumeric': 0.14588023412877082, 'fraction_numerical': 0.009004952723998198, 'mean_word_length': 4.801566579634465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7285993', 'n_tokens_mistral': 835, 'n_tokens_neox': 816, 'n_words': 200}