<commit_before><commit_msg>piglow experimental code for LED control<commit_after>package main

import (
	"log"
	"time"
)

func main() {
	p, err := piglow.NewPiglow()
	if err != nil {
		log.Fatal("Couldn't create a Piglow: ", err)
	}

	// p.SetLED(0, 0)
	// p.SetLED(1, 0)
	p.SetTentacle(0, 255)
	err = p.Apply()
	if err != nil { // Apply the changes
		log.Fatal("Couldn't apply changes: ", err)
	}
	time.Sleep(time.Second)
	p.SetTentacle(0, 0)
	err = p.Apply()
	if err != nil { // Apply the changes
		log.Fatal("Couldn't apply changes: ", err)
	}
	time.Sleep(time.Second)
	p.SetTentacle(1, 255)
	err = p.Apply()
	if err != nil { // Apply the changes
		log.Fatal("Couldn't apply changes: ", err)
	}
	time.Sleep(time.Second)
	p.SetTentacle(1, 0)
	err = p.Apply()
	if err != nil { // Apply the changes
		log.Fatal("Couldn't apply changes: ", err)
	}
	time.Sleep(time.Second)
	p.SetTentacle(2, 255)
	err = p.Apply()
	if err != nil { // Apply the changes
		log.Fatal("Couldn't apply changes: ", err)
	}
	time.Sleep(time.Second)
	p.SetTentacle(2, 0)
	err = p.Apply()
	if err != nil { // Apply the changes
		log.Fatal("Couldn't apply changes: ", err)
	}
}
{'fraction_non_alphanumeric': 0.17247386759581881, 'fraction_numerical': 0.01916376306620209, 'mean_word_length': 3.352272727272727, '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': '3758320', 'n_tokens_mistral': 506, 'n_tokens_neox': 463, 'n_words': 116}