<commit_before># Meme
**A command line utility for creating memes**

---

## Features

* Create memes from built-in templates, image URL's or local files
* Resizes oversized images
* Automatically upload to [imgur.com](http://imgur.com/) (when passed a client id)

## Example

To create a meme use the following command. The image can be an embedded
template, a URL or the path to a local file.

```
meme -i brace-yourselves -t "brace yourselves|the memes are coming"
```

When the command finishes, the location of the meme is printed to the terminal.

## Installation

* [Install Go](https://golang.org/doc/install)
* Run `go get -u -v github.com/nomad-software/meme`

## Automatic uploads

If you supply an imgur client id when invoking the command, the meme will
automatically be uploaded to [imgur.com](http://imgur.com/). To get a client
id, follow the following steps.

1. [Create an imgur account](https://imgur.com/register)
2. [Register this application for anonymous usage](https://api.imgur.com/oauth2/addclient)
3. Once registered, you get a client id for use when invoking the command. See `meme -h`
4. [Read the rate limits](https://api.imgur.com/#limits)

## Advanced usage

If you wish to automatically open a generated meme, the output of the command
can be piped into other command line tools. For example, to print the location
of the meme and automatically open it, use the following command.

```
meme -i http://i.imgur.com/FsWetC0.jpg -t "|China" | tee /dev/tty | xargs xdg-open
```

## Help

Run the following command for help and to list all of the available templates.

```
meme -h
```<commit_msg>Updated the readme.<commit_after># Meme
**A command line utility for creating memes**

---

## Features

* Create memes from built-in templates, image URL's or local files
* Resizes oversized images
* Automatically upload to [imgur.com](http://imgur.com/) (when passed a client id)

## Example

To create a meme use the following command. The image can be an embedded
template, a URL or the path to a local file.

```
meme -i brace-yourselves -t "brace yourselves|the memes are coming"
```

When the command finishes, the location of the meme is printed to the terminal.

## Installation

* [Install Go](https://golang.org/doc/install)
* Run `go get -u -v github.com/nomad-software/meme`

## Automatic uploads

If you supply an imgur client id when invoking the command, the meme will
automatically be uploaded to [imgur.com](http://imgur.com/). To get a client
id, follow these steps.

1. [Create an imgur account](https://imgur.com/register)
2. [Register this application for anonymous usage](https://api.imgur.com/oauth2/addclient)
3. Once registered, you get a client id for use when invoking the command. See `meme -h`
4. [Read the rate limits](https://api.imgur.com/#limits)

## Advanced usage

If you wish to automatically open a generated meme, the output of the command
can be piped into other command line tools. For example, to print the location
of the meme and automatically open it, use the following command.

```
meme -i http://i.imgur.com/FsWetC0.jpg -t "|China" | tee /dev/tty | xargs xdg-open
```

## Help

Run the following command for help and to list all of the available templates.

```
meme -h
```
{'fraction_non_alphanumeric': 0.10388409371146733, 'fraction_numerical': 0.0036991368680641184, 'mean_word_length': 3.954198473282443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '391743', 'n_tokens_mistral': 1003, 'n_tokens_neox': 956, 'n_words': 441}