<commit_before>#!/usr/bin/python

import os
import sys

try:
	from fabricate import *
except ImportError, e:
	print "Couldn't find the fabricate module."
	sys.exit(1)

sources = ['multicast.c']
target = 'multicast'
includes = []

cflags = ['-O2', '-std=gnu99'] + includes

def build():
	compile()
	link()

def compile():
	for source in sources:
		run('gcc', cflags, '-c', source, '-o', source.replace('.c', '.o'))

def link():
	objects = [s.replace('.c', '.o') for s in sources]
	run('gcc', objects, '-o', target)

def clean():
	autoclean()

if __name__ == '__main__':
	main()<commit_msg>Made script wait for program to exit<commit_after>#!/usr/bin/python

import os
import sys

try:
	from fabricate import *
	from Executor import *
except ImportError, e:
	print "Couldn't find the fabricate module."
	sys.exit(1)



e = Executor(logPrefix="[multicast] ")


sources = ['multicast.c']
target = 'multicast'
includes = []

cflags = ['-O2', '-std=gnu99'] + includes

def build():
	compile()
	link()

def compile():
	for source in sources:
		run('gcc', cflags, '-c', source, '-o', source.replace('.c', '.o'))

def link():
	objects = [s.replace('.c', '.o') for s in sources]
	run('gcc', objects, '-o', target)

def run_multicast():
	build()
	e.execCommand([ './multicast', '172.16.50.10', '192.168.3.11'])
	e.wait()
	

def clean():
	autoclean()

if __name__ == '__main__':
	main()
{'fraction_non_alphanumeric': 0.19796215429403202, 'fraction_numerical': 0.018922852983988356, 'mean_word_length': 4.169172932330827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7046411', 'n_tokens_mistral': 541, 'n_tokens_neox': 514, 'n_words': 148}