<commit_before># linux_raw_input_rs

Simple library for reading keyboard input directly from input events in linux systems.
Example of code using it:
```
let device_path : String = get_input_devices().iter().nth(0).expect("Problem with iterator").to_string();
    let mut reader = InputReader::new(device_path);
    loop {
        let input = reader.current_state();
        if input.is_key_event(){
            println!("Key {:?} now has state {:?}", input.get_key(), input.event_type());
        }
    }
```<commit_msg>Updating description<commit_after># linux_raw_input_rs

[![](http://meritbadge.herokuapp.com/linux_raw_input_rs)](https://crates.io/crates/linux_raw_input_rs)

Simple library for reading keyboard input directly from input events in linux systems.

```
linux_raw_input_rs = "0.1.1"
```

Example of code using it:
```
let device_path : String = get_input_devices().iter().nth(0).expect("Problem with iterator").to_string();
    let mut reader = InputReader::new(device_path);
    loop {
        let input = reader.current_state();
        if input.is_key_event(){
            println!("Key {:?} now has state {:?}", input.get_key(), input.event_type());
        }
    }
```
Root access is required for program to run
{'fraction_non_alphanumeric': 0.1408906882591093, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 3.9243027888446216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5116805', 'n_tokens_mistral': 392, 'n_tokens_neox': 372, 'n_words': 96}