<commit_before>#!/usr/bin/env python

import os, sys, subprocess, re, shutil

MAKE_PARALLEL_JOBS = 3

make_flags = ['-j'+str(MAKE_PARALLEL_JOBS)]

ansi_grey = '\033[30m'
ansi_red = '\033[31m'
ansi_green = '\033[32m'
ansi_yellow = '\033[33m'
ansi_blue = '\033[34m'
ansi_magenta = '\033[35m'
ansi_cyan = '\033[36m'
ansi_white = '\033[37m'
ansi_end = '\033[0m'

def main():<commit_msg>add friendlier dev-build.py error messages if you don't have progs<commit_after>#!/usr/bin/env python

import os, sys, subprocess, re, shutil

MAKE_PARALLEL_JOBS = 3

make_flags = ['-j'+str(MAKE_PARALLEL_JOBS)]

ansi_grey = '\033[30m'
ansi_red = '\033[31m'
ansi_green = '\033[32m'
ansi_yellow = '\033[33m'
ansi_blue = '\033[34m'
ansi_magenta = '\033[35m'
ansi_cyan = '\033[36m'
ansi_white = '\033[37m'
ansi_end = '\033[0m'

def main():
	try: subprocess.call(['cmake', '--version'])
	except OSError:
		sys.stdout.write(ansi_red+"Error: 'cmake' not found; please install it."+ansi_end+'\n')
		sys.stdout.flush()
		exit(1)
	try: subprocess.call(['make', '--version'])
	except OSError:
		sys.stdout.write(ansi_red+"Error: 'make' not found; please install it."+ansi_end+'\n')
		sys.stdout.flush()
		exit(1)
	try: subprocess.call(['time', '-f', '', 'true'])
	except OSError:
		sys.stdout.write(ansi_red+"Error: GNU-compatible 'time' not found; please install it."+ansi_end+'\n')
		sys.stdout.flush()
		exit(1)
{'fraction_non_alphanumeric': 0.18772563176895307, 'fraction_numerical': 0.06714801444043321, 'mean_word_length': 5.078947368421052, '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': '4685692', 'n_tokens_mistral': 679, 'n_tokens_neox': 598, 'n_words': 116}