<commit_before>#include <stm32f4_discovery.h>
#include <os.h>

sem_t sem;
tsk_t cons; OS_STK(cons_stk);
tsk_t prod; OS_STK(prod_stk, 512);

void consumer()
{
	sem_wait(&sem);
	LED_Tick();
}

void producer()
{
	tsk_delay(SEC);
	sem_give(&sem);
}

int main()
{
	LED_Init();

	sem_init(&sem, 0, semBinary);
	tsk_init(&cons, consumer, cons_stk, sizeof(cons_stk));
	tsk_init(&prod, producer, prod_stk, sizeof(prod_stk));
	tsk_stop();
}
<commit_msg>Update init-2.c<commit_after>#include <stm32f4_discovery.h>
#include <os.h>

sem_t sem;
tsk_t cons; OS_TSK_STACK(cons_stk);
tsk_t prod; OS_TSK_STACK(prod_stk, 512);

void consumer()
{
	sem_wait(&sem);
	LED_Tick();
}

void producer()
{
	tsk_delay(SEC);
	sem_give(&sem);
}

int main()
{
	LED_Init();

	sem_init(&sem, 0, semBinary);
	tsk_init(&cons, consumer, cons_stk, sizeof(cons_stk));
	tsk_init(&prod, producer, prod_stk, sizeof(prod_stk));
	tsk_stop();
}

{'fraction_non_alphanumeric': 0.17333333333333334, 'fraction_numerical': 0.016666666666666666, 'mean_word_length': 6.508333333333334, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1021317', 'n_tokens_mistral': 434, 'n_tokens_neox': 417, 'n_words': 73}