<commit_before>#include "../include/kernel.h"
#include "../include/yrws.h"

extern struct Layer_Master *LAYER_MASTER;

void draw_window(i16_t start_x, i16_t start_y, i16_t width, i16_t height){
      struct Layer *window = layer_alloc(LAYER_MASTER);
      u8_t *window_buf = (u8_t *)memory_alloc_4k(memman, width * height);
      layer_chbuf(window, window_buf);
      modify_layer(window, width, height, 255);
      int i;
      for(i = 0;i < width*height;i++){
            window->data[i] = 0;
      }
      move_layer(LAYER_MASTER, window, 100, 100);
      layer_ch_position(LAYER_MASTER, window, 2);

      redraw_all_layer(LAYER_MASTER, window, 0, 0, binfo->scrny, binfo->scrny);
}
<commit_msg>ウィンドウのデザインを適当にしてみた<commit_after>#include "../include/kernel.h"
#include "../include/yrws.h"

extern struct Layer_Master *LAYER_MASTER;

void draw_window(i16_t start_x, i16_t start_y, i16_t width, i16_t height){
      struct Layer *window = layer_alloc(LAYER_MASTER);
      u8_t *window_buf = (u8_t *)memory_alloc_4k(memman, width * height);
      layer_chbuf(window, window_buf);
      modify_layer(window, width, height, 255);

      boxfill8(window->data, width, __RGB256COL__(255, 29, 63), 0, 0, 16, 16);
      boxfill8(window->data, width, __RGB256COL__(181, 255, 69), 16, 0, 32, 16);
      boxfill8(window->data, width, __RGB256COL__(58, 137, 255), 32, 0, 48, 16);
      boxfill8(window->data, width, __RGB256COL__(0, 0, 0), 48, 0, width, 16);
      boxfill8(window->data, width, __RGB256COL__(255, 255, 255), 0, 16, width, height);

      move_layer(LAYER_MASTER, window, 100, 100);
      layer_ch_position(LAYER_MASTER, window, 2);

      redraw_all_layer(LAYER_MASTER, window, 0, 0, binfo->scrny, binfo->scrny);
}

{'fraction_non_alphanumeric': 0.14235909355026147, 'fraction_numerical': 0.07611853573503777, 'mean_word_length': 4.079646017699115, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 13, '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': '5729934', 'n_tokens_mistral': 770, 'n_tokens_neox': 657, 'n_words': 144}