<commit_before>#![no_std]

use core::fmt;
use core::fmt::Write;

mod color;
use color::Color;

const ROWS: usize = 25;
const COLS: usize = 80;
const COL_BYTES: usize = COLS * 2;

pub struct Vga<T: AsMut<[u8]>> {
    slice: T,
    buffer: [u8; ROWS * COL_BYTES],
    position: usize,
}

impl<T: AsMut<[u8]>> Vga<T> {
    pub fn new(mut slice: T) -> Vga<T> {
        // we must have enough bytes of backing storage to make this work.
        assert_eq!(slice.as_mut().len(), ROWS * COL_BYTES);

        Vga {
            slice: slice,
            buffer: [0; ROWS * COL_BYTES],
            position: 0,
        }
    }

    pub fn flush(&mut self) {
      panic!()
    }

    fn write_byte(&mut self, byte: u8) {
        let i = self.position;

        if byte == '\n' as u8 {<commit_msg>lol just put the line your gonna add in a commment ok<commit_after>#![no_std]

use core::fmt;
use core::fmt::Write;

mod color;
use color::Color;

const ROWS: usize = 25;
const COLS: usize = 80;
const COL_BYTES: usize = COLS * 2;

pub struct Vga<T: AsMut<[u8]>> {
    slice: T,
    buffer: [u8; ROWS * COL_BYTES],
    position: usize,
}

impl<T: AsMut<[u8]>> Vga<T> {
    pub fn new(mut slice: T) -> Vga<T> {
        // we must have enough bytes of backing storage to make this work.
        assert_eq!(slice.as_mut().len(), ROWS * COL_BYTES);

        Vga {
            slice: slice,
            buffer: [0; ROWS * COL_BYTES],
            position: 0,
        }
    }

    pub fn flush(&mut self) {
      // self.slice.as_mut().clone_from_slice(&self.buffer);
      panic!()
    }

    fn write_byte(&mut self, byte: u8) {
        let i = self.position;

        if byte == '\n' as u8 {
{'fraction_non_alphanumeric': 0.1470412432755529, 'fraction_numerical': 0.01434548714883443, 'mean_word_length': 2.244186046511628, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '5790438', 'n_tokens_mistral': 635, 'n_tokens_neox': 622, 'n_words': 183}