<commit_before># pimail - Mail/Faxwidget for the EP


Find a random MEP and write a mail or a fax in your browser.

## Installation

pimail depends on:

* web.py
* Jinja2

install with ```pip install -r requirements.txt```

Edit the mail.tmpl and files in static/ to your liking

Fill data.json with an array of data about the MEPs (or MPs or whatever)

and start with: ``python pimail.py``

this will run a webserver on port 8080

## Contribution

Contributions are always welcome! What you can do

* Test it and give us Feedback (use the github issues)
* Refine the Design - look at the static/ directory and the templates
* Fiddle with the code. Look at the issues and implement missing features.

## embed

you can easily use our widget on your own website. Just copy&paste this html  embed code. 

<b>Mail: </b>
`<object data="https://faxjh.savetheinternet.eu/" width="630" height="390" ></object>`

<b>Fax: </b>
`<object data="https://faxjh.savetheinternet.eu/fax/" width="630" height="390" ></object>`
<b>Tweet: </b>
`<object data="https://faxjh.savetheinternet.eu/tweet/" width="630" height="390" ></object>`
<commit_msg>small changes<commit_after># pimail - Mail/Faxwidget for the EP


Find a random MEP and write a mail or a fax in your browser.

## Installation

pimail depends on:

* web.py
* Jinja2

install with ```pip install -r requirements.txt```

Edit the mail.tmpl and files in static/ to your liking

Fill data.json with an array of data about the MEPs (or MPs or whatever)

and start with: ``python pimail.py``

this will run a webserver on port 8080

## Contribution

Contributions are always welcome! What you can do

* Test it and give us Feedback (use the github issues)
* Refine the Design - look at the static/ directory and the templates
* Fiddle with the code. Look at the issues and implement missing features.

## embed

you can easily use our widget on your own website. Just copy&paste this html  embed code. 

<b>Mail: </b>
`<object data="https://faxjh.savetheinternet.eu/" width="630" height="390" ></object>`

<b>Fax: </b>
`<object data="https://faxjh.savetheinternet.eu/fax/" width="630" height="390" ></object>`
<b>Tweet: </b>
`<object data="https://faxjh.savetheinternet.eu/tweet/" width="630" height="390" ></object>`



{'fraction_non_alphanumeric': 0.11946902654867257, 'fraction_numerical': 0.020353982300884955, 'mean_word_length': 4.162100456621005, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 6, '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': '1234017', 'n_tokens_mistral': 802, 'n_tokens_neox': 721, 'n_words': 299}