<commit_before>#!/bin/sh
## run as root
# curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/slackware/bumblebeeMultilibSetup.sh | sh


if [ ! $UID = 0 ]; then
  cat << EOF
This script must be run as root.
EOF
  exit 1
fi


cd
git clone https://github.com/WhiteWolf1776/Bumblebee-SlackBuilds.git

cd Bumblebee-SlackBuilds/
./download.sh
groupadd bumblebee
usermod -G bumblebee -a ry
usermod -G bumblebee -a root
cd libbsd/
./libbsd.SlackBuild
upgradepkg --install-new /tmp/libbsd-*_bbsb.txz
cd ../bumblebee/
./bumblebee.SlackBuild
upgradepkg --install-new /tmp/bumblebee-*_bbsb.txz
cd ../bbswitch/
./bbswitch.SlackBuild
upgradepkg --install-new /tmp/bbswitch-*_bbsb.txz
cd ../primus/
COMPAT32=yes ./primus.SlackBuild
upgradepkg --install-new /tmp/primus-*_bbsb.txz
cd ../nouveau-blacklist/
upgradepkg xf86-video-nouveau-blacklist-noarch-1.txz
echo xf86-video-nouveau >> /etc/slackpkg/blacklist
echo "[0-9]+_bbsb" >> /etc/slackpkg/blacklist
cd ../libvdpau/
./libvdpau.SlackBuild
upgradepkg --install-new /tmp/libvdpau-*_bbsb.txz
cd ../nvidia-kernel/
COMPAT32=yes ./nvidia-kernel.SlackBuild
upgradepkg --install-new /tmp/nvidia-kernel-*_bbsb.txz
cd ../nvidia-bumblebee/
COMPAT32=yes ./nvidia-bumblebee.SlackBuild
upgradepkg --install-new /tmp/nvidia-bumblebee-*_bbsb.txz
chmod +x /etc/rc.d/rc.bumblebeed
/etc/rc.d/rc.bumblebeed start

if [ -z "$( cat /etc/rc.d/rc.local | grep bumblebeed )" ]; then
  echo "if [ -x /etc/rc.d/rc.bumblebeed ]; then
    /etc/rc.d/rc.bumblebeed start
  fi" >> /etc/rc.d/rc.local
fi

if [ -z "$( cat /etc/rc.d/rc.local_shutdown | grep bumblebeed )" ]; then
  echo "if [ -x /etc/rc.d/rc.bumblebeed ]; then
    /etc/rc.d/rc.bumblebeed stop
  fi" >> /etc/rc.d/rc.local_shutdown
fi

<commit_msg>make indentation tidy<commit_after>#!/bin/sh
## run as root
# curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/slackware/bumblebeeMultilibSetup.sh | sh


if [ ! $UID = 0 ]; then
  cat << EOF
This script must be run as root.
EOF
  exit 1
fi


cd
git clone https://github.com/WhiteWolf1776/Bumblebee-SlackBuilds.git

cd Bumblebee-SlackBuilds/
./download.sh
groupadd bumblebee
usermod -G bumblebee -a ry
usermod -G bumblebee -a root
cd libbsd/
./libbsd.SlackBuild
upgradepkg --install-new /tmp/libbsd-*_bbsb.txz
cd ../bumblebee/
./bumblebee.SlackBuild
upgradepkg --install-new /tmp/bumblebee-*_bbsb.txz
cd ../bbswitch/
./bbswitch.SlackBuild
upgradepkg --install-new /tmp/bbswitch-*_bbsb.txz
cd ../primus/
COMPAT32=yes ./primus.SlackBuild
upgradepkg --install-new /tmp/primus-*_bbsb.txz
cd ../nouveau-blacklist/
upgradepkg xf86-video-nouveau-blacklist-noarch-1.txz
echo xf86-video-nouveau >> /etc/slackpkg/blacklist
echo "[0-9]+_bbsb" >> /etc/slackpkg/blacklist
cd ../libvdpau/
./libvdpau.SlackBuild
upgradepkg --install-new /tmp/libvdpau-*_bbsb.txz
cd ../nvidia-kernel/
COMPAT32=yes ./nvidia-kernel.SlackBuild
upgradepkg --install-new /tmp/nvidia-kernel-*_bbsb.txz
cd ../nvidia-bumblebee/
COMPAT32=yes ./nvidia-bumblebee.SlackBuild
upgradepkg --install-new /tmp/nvidia-bumblebee-*_bbsb.txz
chmod +x /etc/rc.d/rc.bumblebeed
/etc/rc.d/rc.bumblebeed start

if [ -z "$( cat /etc/rc.d/rc.local | grep bumblebeed )" ]; then
echo "if [ -x /etc/rc.d/rc.bumblebeed ]; then
  /etc/rc.d/rc.bumblebeed start
fi" >> /etc/rc.d/rc.local
fi

if [ -z "$( cat /etc/rc.d/rc.local_shutdown | grep bumblebeed )" ]; then
echo "if [ -x /etc/rc.d/rc.bumblebeed ]; then
  /etc/rc.d/rc.bumblebeed stop
fi" >> /etc/rc.d/rc.local_shutdown
fi


{'fraction_non_alphanumeric': 0.15841013824884792, 'fraction_numerical': 0.010944700460829493, 'mean_word_length': 3.446862996158771, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4900591', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1498, 'n_words': 276}