<commit_before>plumber
=======

A simple data transformation pipeline.


Installation::

```bash
pip install -e git+git://github.com/gustavofonseca/plumber.git#egg=plumber
```


Usage example::

```python
import plumber


class StripPipe(plumber.Pipe):
    def transform(self, data):
        return data.strip()

class UpperPipe(plumber.Pipe):
    def transform(self, data):
        return data.upper()

ppl = plumber.Pipeline(StripPipe, UpperPipe)
transformed_data = ppl.run([" I am the Great Cornholio!"])

for td in transformed_data:
    print(td)

I AM THE GREAT CORNHOLIO!
```<commit_msg>minor change<commit_after>plumber
=======

A simple data transformation pipeline.


Installation::

```bash
pip install -e git+git://github.com/gustavofonseca/plumber.git#egg=plumber
```


Usage example::

```python
import plumber


class StripPipe(plumber.Pipe):
    def transform(self, data):
        return data.strip()

class UpperPipe(plumber.Pipe):
    def transform(self, data):
        return data.upper()

ppl = plumber.Pipeline(StripPipe(), UpperPipe())
transformed_data = ppl.run([" I am the Great Cornholio!"])

for td in transformed_data:
    print(td)

I AM THE GREAT CORNHOLIO!
```
{'fraction_non_alphanumeric': 0.1345668629100084, 'fraction_numerical': 0.0, 'mean_word_length': 4.36036036036036, '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': '2691268', 'n_tokens_mistral': 433, 'n_tokens_neox': 401, 'n_words': 103}