<commit_before>#!/bin/sh
	echo -e "\E[33;40m[*] Checking if dnsmasq is installed.\e[0m"
	if [ -f /etc/dnsmasq.conf ]; then
	echo -e "\E[32;40m dnsmasq is installed \e[0m"
	sleep 1
	echo -e "\E[33;40m[*] Checking the dnsmasq.d folder [*]\e[0m"
    if [ -f /etc/dnsmasq.d/ads.dnsmasq.conf  ];  then
        sleep 1 
		echo -e "\E[32;40m[*] Updating your ad-block list [*]\e[0m"
		sleep 2
		curl -s "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro0&mimetype=plaintext" > /etc/dnsmasq.d/ads.dnsmasq.conf
		echo -e "reloading dnsmasq"
		/etc/init.d/dnsmasq restart
		echo -e "\E[32;40m updated ad list \e[0m"
	else 
		echo -e "\E[32;40m[*] This is your first time running this script! [*]\e[0m"
		sleep 1
		echo -e "\E[32;40m[*] Updating your ad-block list [*]\e[0m"
		sleep 2
		curl -s "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro0&mimetype=plaintext" > /etc/dnsmasq.d/ads.dnsmasq.conf
		echo -e "reloading dnsmasq"
		/etc/init.d/dnsmasq restart
		echo -e "\E[32;40m Done! \e[0m"
		
		fi
else 
	echo -e "\e[0;31m dnsmasq is not installed or missing \e[0m"
	exit 1
	fi

if [ -f /etc/cron.d/dnsmasq.cron ]; then
	echo -e "\E[32;40m Already added to Cron \e[0m"
	echo -e "\E[32;40m Finished Script \e[0m"
else
	read -p "Add to Cron? . (y/n) " REPLY
	if [ "$REPLY" = "y" ]; then
		echo -e "\E[33;40m[*] Adding Cron task [*]\e[0m"
		curl -s "https://raw.github.com/MLWALK3R/Automatic-dnsmasq-update/master/dnsmasq.cron" > /etc/cron.d/dnsmasq.cron
		 echo -e "Done"
		exit 1
	else
		echo -e "\E[32;40m Ok have it your way \e[0m"
		exit 1
  fi
fi<commit_msg>Formatting & better text reports<commit_after>#!/bin/sh
	echo -e "\E[33;40m[*] Checking if dnsmasq is installed.\e[0m"
	if [ -f /etc/dnsmasq.conf ]; then
	echo -e "\E[32;40m dnsmasq is installed \e[0m"
	sleep 1
	echo -e "\E[33;40m[*] Checking the dnsmasq.d folder [*]\e[0m"
    if [ -f /etc/dnsmasq.d/ads.dnsmasq.conf  ];  then
    	echo -e "\E[32;40m[*] Check done [*]\e[0m" 
		echo -e "\E[33;40m[*] Updating your ad-block list [*]\e[0m"
		sleep 2
		curl -s "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro0&mimetype=plaintext" > /etc/dnsmasq.d/ads.dnsmasq.conf
		echo -e "reloading dnsmasq"
		/etc/init.d/dnsmasq restart
		echo -e "\E[32;40m[*] updated ad list [*]\e[0m"
	else 
		echo -e "\E[32;40m[*] Check done [*]\e[0m" 
		echo -e "\E[32;40m[*] This is your first time running this script! [*]\e[0m"
		sleep 1
		echo -e "\E[32;40m[*] Updating your ad-block list [*]\e[0m"
		sleep 2
		curl -s "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro0&mimetype=plaintext" > /etc/dnsmasq.d/ads.dnsmasq.conf
		echo -e "reloading dnsmasq"
		/etc/init.d/dnsmasq restart
		echo -e "\E[32;40m[*] Update done [*]\e[0m"
		
		fi
else 
	echo -e "\e[0;31m dnsmasq is not installed or missing \e[0m"
	exit 1
	fi

if [ -f /etc/cron.d/dnsmasq.cron ]; then
	echo -e "\E[32;40m Cron already installed \e[0m"
	echo -e "\E[32;40m Finished Script \e[0m"
else
	read -p "Add to Cron? . (y/n) " REPLY
	if [ "$REPLY" = "y" ]; then
		echo -e "\E[33;40m[*] Adding Cron task [*]\e[0m"
		curl -s "https://raw.github.com/MLWALK3R/Automatic-dnsmasq-update/master/dnsmasq.cron" > /etc/cron.d/dnsmasq.cron
		echo -e "\E[32;40m[*] Done [*]\e[0m"
		exit 1
 	else
		echo -e "\E[32;40m Ok have it your way \e[0m"
		exit 1

  fi
fi
{'fraction_non_alphanumeric': 0.18086696562032886, 'fraction_numerical': 0.04902840059790733, 'mean_word_length': 3.130864197530864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '699892', 'n_tokens_mistral': 1744, 'n_tokens_neox': 1548, 'n_words': 370}