<commit_before>mpas_xarray.py
===============================================================================
Wrapper to handle importing MPAS files into xarray (https://github.com/pydata/xarray)

 Module does
 1. Converts MPAS "xtime" to xarray time dimension is assigned via
    `preprocess_mpas`.
 2. Provides capability to remove redundant time entries from
    reading of multiple netCDF datasets via
    `remove_repeated_time_index`.

 Example Usage:

```
from mpas_xarray import preprocess_mpas, remove_repeated_time_index

ds = xarray.open_mfdataset('globalStats*nc', preprocess=preprocess_mpas)
ds = remove_repeated_time_index(ds)
```

To test:

```
tar xzvf globalStatsShort.tgz
python mpas_xarray.py -f "globalStats*nc"
```

This outputs a simple time-series plot of Time vs. Time to test functionality.
<commit_msg>Fixes minor typos in README<commit_after>mpas_xarray.py
===============================================================================
Wrapper to handle importing MPAS files into xarray (https://github.com/pydata/xarray)

 Module does
 1. Converts MPAS "xtime" to xarray time.  Time dimension is assigned via
    `preprocess_mpas`.
 2. Provides capability to remove redundant time entries from
    reading of multiple netCDF datasets via
    `remove_repeated_time_index`.

 Example Usage:

```
from mpas_xarray import preprocess_mpas, remove_repeated_time_index

ds = xarray.open_mfdataset('globalStats*nc', preprocess=preprocess_mpas)
ds = remove_repeated_time_index(ds)
```

To test:

```
tar xzvf globalStatsShort.tgz
python mpas_xarray.py -f "globalStats*nc"
```

This outputs a simple time-series plot of Time vs. Time to test functionality.

{'fraction_non_alphanumeric': 0.16417910447761194, 'fraction_numerical': 0.0023880597014925373, 'mean_word_length': 5.704, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5054583', 'n_tokens_mistral': 515, 'n_tokens_neox': 480, 'n_words': 153}