<commit_before>use core::iter::Repeat;
use std::io::BufferedReader;
use std::io::stdio::StdReader;

pub struct Tape {
    content: Vec<u8>,
    pointer: uint
}

impl Tape {
    pub fn new() -> Tape {
        Tape {
            content: Repeat::new(0u8).take(30_000u).collect(),
            pointer: 0,
        }
    }

    pub fn inc(&mut self) {
        *self.content.get_mut(self.pointer) += 1u8;
    }

    pub fn dec(&mut self) {
        *self.content.get_mut(self.pointer) -= 1u8;
    }

    pub fn next(&mut self) {
        self.pointer += 1;
    }

    pub fn prev(&mut self) {
        self.pointer -= 1;
    }

    pub fn char_value(&mut self) -> char {
        self.content[self.pointer] as char
    }

    pub fn value(&mut self) -> u8 {
        self.content[self.pointer]
    }


    pub fn read_value(&mut self, reader: &mut BufferedReader<StdReader>) {
        let value = reader.read_char().ok().unwrap() as u8;
        self.set_value(value)
    }

    fn set_value(&mut self, value: u8) {
        *self.content.get_mut(self.pointer) = value;
    }
}<commit_msg>Remove extra space<commit_after>use core::iter::Repeat;
use std::io::BufferedReader;
use std::io::stdio::StdReader;

pub struct Tape {
    content: Vec<u8>,
    pointer: uint
}

impl Tape {
    pub fn new() -> Tape {
        Tape {
            content: Repeat::new(0u8).take(30_000u).collect(),
            pointer: 0,
        }
    }

    pub fn inc(&mut self) {
        *self.content.get_mut(self.pointer) += 1u8;
    }

    pub fn dec(&mut self) {
        *self.content.get_mut(self.pointer) -= 1u8;
    }

    pub fn next(&mut self) {
        self.pointer += 1;
    }

    pub fn prev(&mut self) {
        self.pointer -= 1;
    }

    pub fn char_value(&mut self) -> char {
        self.content[self.pointer] as char
    }

    pub fn value(&mut self) -> u8 {
        self.content[self.pointer]
    }

    pub fn read_value(&mut self, reader: &mut BufferedReader<StdReader>) {
        let value = reader.read_char().ok().unwrap() as u8;
        self.set_value(value)
    }

    fn set_value(&mut self, value: u8) {
        *self.content.get_mut(self.pointer) = value;
    }
}
{'fraction_non_alphanumeric': 0.14656771799628943, 'fraction_numerical': 0.016697588126159554, 'mean_word_length': 2.135174418604651, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7182353', 'n_tokens_mistral': 782, 'n_tokens_neox': 745, 'n_words': 166}