<commit_before># fontawesome-to-android
Convert font awesome icons to png and place them in android density buckets

Forked from [odyniec/font-awesome-to-png](https://github.com/odyniec/font-awesome-to-png)<commit_msg>Added usage<commit_after># fontawesome-to-android
Convert font awesome icons to png and place them in android density buckets

Forked from [odyniec/font-awesome-to-png](https://github.com/odyniec/font-awesome-to-png)

E.g. to convert all fontawesome icons in green color and place them in hdpi bucket:
```
python fontawtesome-to-android.py ALL --color green --buckets hdpi
```
Or specify HTML colors:
```
python fontawesome-to-android.py ALL --color \#99cc00 --buckets hdpi
```

#Detailed usage
```
usage: fontawesome-to-android.py [-h] [--color COLOR] [--filename FILENAME]
                                 [--font FONT] [--css CSS] [--list]
                                 [--size SIZE] [--margin MARGIN]
                                 [--buckets [BUCKETS [BUCKETS ...]]] [-q]
                                 icon [icon ...]

Exports Font Awesome icons as PNG images.

positional arguments:
  icon                  The name(s) of the icon(s) to export (or "ALL" for all
                        icons)

optional arguments:
  -h, --help            show this help message and exit
  --color COLOR         Color (HTML color code or name, default: black)
  --filename FILENAME   The name of the output file (it must end with ".png").
                        If all files are exported, it is used as a prefix.
  --font FONT           Font file to use (default: fontawesome-webfont.ttf)
  --css CSS             Path to the CSS file defining icon names (instead of
                        the predefined list)
  --list                List available icon names and exit
  --size SIZE           Icon size in pixels for mdpi (default: 32)
  --margin MARGIN       Icon margin in pixels for mdpi
  --buckets [BUCKETS [BUCKETS ...]]
                        The density buckets to generate icons for. Default is
                        mdpi, hdpi, xhdpi, xxhdpi
  -q, --quiet           Suppress output. Any errors are still sent to stderr.
  ```
{'fraction_non_alphanumeric': 0.09702878365831012, 'fraction_numerical': 0.002785515320334262, 'mean_word_length': 1.9399727148703956, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3643691', 'n_tokens_mistral': 648, 'n_tokens_neox': 596, 'n_words': 234}