<commit_before># wc.rs
wc implemented in rust

## TODO
* Handle --files0-from
* To improve performance, only process data if it needs to be printed.
  This means handing off the set of required fields to process_reader,
  and short-circuiting some of the processing used to extract `bytes`,
  `lines`, `chars`, `max_line_length`, or `words` if they're not needed.<commit_msg>Note problems w/ non-utf8 files<commit_after># wc.rs
wc implemented in rust

## TODO
* Handle --files0-from
* To improve performance, only process data if it needs to be printed.
  This means handing off the set of required fields to process_reader,
  and short-circuiting some of the processing used to extract `bytes`,
  `lines`, `chars`, `max_line_length`, or `words` if they're not needed.
* Figure out how to detect/handle non-utf8 encoded files. Right now
  wc.rs yields an error in such cases:

```
% ./target/debug/wc non-utf8-file
wc: non-utf8-file: invalid utf-8: invalid byte near index 1
```
{'fraction_non_alphanumeric': 0.09304703476482618, 'fraction_numerical': 0.0081799591002045, 'mean_word_length': 4.1798941798941796, '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': '5052978', 'n_tokens_mistral': 295, 'n_tokens_neox': 284, 'n_words': 133}