<commit_before>#pragma once

#include <stdint.h>

// Reasonable color correction values from
// https://github.com/FastLED/FastLED/blob/master/color.h
// TypicalSMD5050   = ( 255, 176, 240 )
// UncorrectedColor = ( 255, 255, 255 )

#define COLOR_CORRECT(pixel, scale) ( (pixel * (scale + 1)) >> 8 )

#define CC_R(pixel) COLOR_CORRECT(pixel, 255)
#define CC_G(pixel) COLOR_CORRECT(pixel, 176)
#define CC_B(pixel) COLOR_CORRECT(pixel, 240)

#define NUM_TREADS     (3*32*5*3)
#define NUM_BARREL     (80*3)
#define NUM_PANELS     (10*3)
#define MAX_EFFECTS     20

#define RAINBOW_LENGTH 768

extern char fastled_rainbow[RAINBOW_LENGTH][3];
extern char linear_rainbow[RAINBOW_LENGTH][3];

#define RAINBOW_R(idx) fastled_rainbow[(idx) % RAINBOW_LENGTH][0]
#define RAINBOW_G(idx) fastled_rainbow[(idx) % RAINBOW_LENGTH][1]
#define RAINBOW_B(idx) fastled_rainbow[(idx) % RAINBOW_LENGTH][2]

union color {
	struct {
		uint8_t         red;
		uint8_t         green;
		uint8_t         blue;
		uint8_t         alpha;         // unused<commit_msg>Update to exact pixel counts.<commit_after>#pragma once

#include <stdint.h>

// Reasonable color correction values from
// https://github.com/FastLED/FastLED/blob/master/color.h
// TypicalSMD5050   = ( 255, 176, 240 )
// UncorrectedColor = ( 255, 255, 255 )

#define COLOR_CORRECT(pixel, scale) ( (pixel * (scale + 1)) >> 8 )

#define CC_R(pixel) COLOR_CORRECT(pixel, 255)
#define CC_G(pixel) COLOR_CORRECT(pixel, 176)
#define CC_B(pixel) COLOR_CORRECT(pixel, 240)

#define NUM_TREADS     (478*3)
#define NUM_BARREL     (76*3)
#define NUM_PANELS     (10*3)
#define MAX_EFFECTS     20

#define RAINBOW_LENGTH 768

extern char fastled_rainbow[RAINBOW_LENGTH][3];
extern char linear_rainbow[RAINBOW_LENGTH][3];

#define RAINBOW_R(idx) fastled_rainbow[(idx) % RAINBOW_LENGTH][0]
#define RAINBOW_G(idx) fastled_rainbow[(idx) % RAINBOW_LENGTH][1]
#define RAINBOW_B(idx) fastled_rainbow[(idx) % RAINBOW_LENGTH][2]

union color {
	struct {
		uint8_t         red;
		uint8_t         green;
		uint8_t         blue;
		uint8_t         alpha;         // unused
{'fraction_non_alphanumeric': 0.12638154733301296, 'fraction_numerical': 0.05526189332051898, 'mean_word_length': 4.17910447761194, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '6500729', 'n_tokens_mistral': 938, 'n_tokens_neox': 816, 'n_words': 167}