<commit_before>
#[cfg(test)]
mod test {
    use super::super::*;
    use sdl2::keyboard::Keycode;

    #[test]
    fn test_default()
    {
        let mut keypad = Keypad::default();
        let keys: [Keycode; 16] = [X, Num1, Num2, Num3, Q, W, E, A, S, D, Z, C, Num4, R, F, V];

        for i in 0..keys.len()
        {
            assert_eq!(keypad.pressed(i), false);
        }
    }

    #[test]
    fn test_pressing_keys()
    {
        let mut keypad = Keypad::default();
        let keys: [Keycode; 16] = [X, Num1, Num2, Num3, Q, W, E, A, S, D, Z, C, Num4, R, F, V];

        for i in 0..keys.len()
        {
            keypad.press(keys[i], true);
            assert!(keypad.pressed(i));
            
            keypad.press(keys[i], false);
            assert_eq!(keypad.pressed(i), false);
        }
    }
}<commit_msg>whitespace<commit_after>#[cfg(test)]
mod test {
    use super::super::*;
    use sdl2::keyboard::Keycode;

    #[test]
    fn test_default()
    {
        let mut keypad = Keypad::default();
        // Ordered based on order in file
        let keys: [Keycode; 16] = [X, Num1, Num2, Num3, Q, W, E, A, S, D, Z, C, Num4, R, F, V];

        for i in 0..keys.len()
        {
            assert_eq!(keypad.pressed(i), false);
        }
    }

    #[test]
    fn test_pressing_keys()
    {
        let mut keypad = Keypad::default();
        // Ordered based on order in file
        let keys: [Keycode; 16] = [X, Num1, Num2, Num3, Q, W, E, A, S, D, Z, C, Num4, R, F, V];

        for i in 0..keys.len()
        {
            keypad.press(keys[i], true);
            assert!(keypad.pressed(i));
            
            keypad.press(keys[i], false);
            assert_eq!(keypad.pressed(i), false);
        }
    }
}
{'fraction_non_alphanumeric': 0.16762342135476463, 'fraction_numerical': 0.01722158438576349, 'mean_word_length': 1.749211356466877, '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': '1412776', 'n_tokens_mistral': 670, 'n_tokens_neox': 634, 'n_words': 169}