<commit_before>#!/bin/bash

SCRIPT_NAME=$(basename $BASH_SOURCE)
SCRIPT_LOGFILE="./logs/"$(basename -s .sh $BASH_SOURCE)".log"

echo "running "$SCRIPT_NAME

# tested: works on ubuntu 16.04 gnome

# add nvidia ppa
grep graphics-drivers/ppa /etc/apt/sources.list /etc/apt/sources.list.d/*

if [ "$?" != "0" ] ; then
	echo "  nvidia ppa already added"
else
	echo "  nvidia ppa not added yet"

	sudo apt-get -y purge nvidia-*
	sudo add-apt-repository ppa:graphics-drivers/ppa
	sudo apt-get -y update
fi

# install nvidia drivers and nvidia prime
dpkg-query -l "nvidia-prime" | grep -q ^.i

if [ "$?" != "0" ] ; then
	echo "  nvidia-prime package already installed"
else
	echo "  nvidia-prime package not installed"

	sudo apt-get -y install nvidia-367 nvidia-prime
	
	#sudo service gdm3 restart

fi



<commit_msg>nvidia installer<commit_after>#!/bin/bash

SCRIPT_NAME=$(basename $BASH_SOURCE)
SCRIPT_LOGFILE="./logs/"$(basename -s .sh $BASH_SOURCE)".log"

echo "running "$SCRIPT_NAME

# tested: works on ubuntu 16.04 gnome

# add nvidia ppa
sudo apt-get -y purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get -y update

# install nvidia drivers and nvidia prime
sudo apt-get -y install nvidia-367 nvidia-prime


echo "	you should reboot now"





{'fraction_non_alphanumeric': 0.12381703470031545, 'fraction_numerical': 0.013406940063091483, 'mean_word_length': 3.8435114503816794, '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': '2319227', 'n_tokens_mistral': 534, 'n_tokens_neox': 444, 'n_words': 137}