<commit_before>#include <nic.h>
#include <thread.h>
#include "pcm_thread.h"
#include "rgb_led_controller.h"
#include "tools.h"

__USING_SYS

const NIC::Address src(0x01);
const unsigned char PROTOCOL_ID = 56;

int sender_thread(RGB* color) {
	while (true) {
		(*color) = getColor();
                Thread::yield();
    		//led_ctrl.setColor(color);
                //nic.send(src, PROTOCOL_ID, &color, sizeof(color));
        }
}

int sender() {
	//NIC nic;
	//RGBLEDController led_ctrl;
        RGB color(20, 100, 255);

        //unsigned char a = 20, b = 100, c = 255;
	GPIO_Pin* red_led = new GPIO_Pin(10);
	GPIO_Pin* green_led = new GPIO_Pin(9);
	GPIO_Pin* blue_led = new GPIO_Pin(11);
	//red_led.put(0);

        Thread* t = new Thread(&pcm_thread, red_led, &color.red);
        Thread* u = new Thread(&pcm_thread, green_led, &color.green);
        Thread* v = new Thread(&pcm_thread, blue_led, &color.blue);
        //t->join();
        //u->join();
        //v->join();*/
        //Thread* w = new Thread(&sender_thread, &color);
	/*while (true) {<commit_msg>Progresssssss<commit_after>#include <nic.h>
#include <thread.h>
#include "pcm_thread.h"
#include "rgb_led_controller.h"
#include "tools.h"

__USING_SYS

const NIC::Address src(0x01);
const unsigned char PROTOCOL_ID = 56;

int sender_thread(RGB* color) {
	/*while (true) {
		(*color) = getColor();
    		//led_ctrl.setColor(color);
                //nic.send(src, PROTOCOL_ID, &color, sizeof(color));
        }*/
        for (unsigned char i = 0;; ++i) {
            (*color) = getColor();
        }
}

int sender() {
	//NIC nic;
	//RGBLEDController led_ctrl;
        RGB color(20, 100, 255);

        //unsigned char a = 20, b = 100, c = 255;
	GPIO_Pin* red_led = new GPIO_Pin(10);
	//GPIO_Pin* green_led = new GPIO_Pin(9);
	//GPIO_Pin* blue_led = new GPIO_Pin(11);
	//red_led.put(0);

        Thread* t = new Thread(&pcm_thread, red_led, &color);
        //Thread* u = new Thread(&pcm_thread, green_led, &color.green);
        //Thread* v = new Thread(&pcm_thread, blue_led, &color.blue);
        //t->join();
        //u->join();
        //v->join();*/
        Thread* w = new Thread(&sender_thread, &color);
	/*while (true) {
{'fraction_non_alphanumeric': 0.17304189435336975, 'fraction_numerical': 0.025045537340619307, 'mean_word_length': 2.7427597955706986, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '5966029', 'n_tokens_mistral': 852, 'n_tokens_neox': 804, 'n_words': 189}