<commit_before>/*******************************************************************************
* bare_minimum.c
*
* <NAME> 2016
* This is meant to be a skeleton program for robotics cape projects. 
*******************************************************************************/

#include <robotics_cape.h>
#include <useful_includes.h>

int main(){
	// always initialize cape library first
	initialize_cape();
	printf("\nHello BeagleBone\n");
	
	// Keep Running until program state changes to EXITING
	while(get_state() != EXITING){
		// handle other states
		if(get_state() == RUNNING){
			// do things
		}
		else if(get_state() == PAUSED){
			// do other things
		}
		// always sleep at some point in your loops to avoid locking the CPU
		usleep(100000);
	}
	
	cleanup_cape(); // exit cleanly
	return 0;
}
<commit_msg>set state to running at the beginning<commit_after>/*******************************************************************************
* bare_minimum.c
*
* <NAME> 2016
* This is meant to be a skeleton program for robotics cape projects. 
*******************************************************************************/

#include <robotics_cape.h>
#include <useful_includes.h>

int main(){
	// always initialize cape library first
	initialize_cape();
	printf("\nHello BeagleBone\n");
	set_state(RUNNING);
	// Keep Running until state changes to EXITING
	while(get_state()!=EXITING){
		// handle other states
		if(get_state()==RUNNING){
			// do things
		}
		else if(get_state()==PAUSED){
			// do other things
		}
		// always sleep at some point
		usleep(100000);
	}
	
	cleanup_cape(); // exit cleanly
	return 0;
}

{'fraction_non_alphanumeric': 0.2935049019607843, 'fraction_numerical': 0.013480392156862746, 'mean_word_length': 4.670138888888889, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6702201', 'n_tokens_mistral': 524, 'n_tokens_neox': 459, 'n_words': 139}