<commit_before>#tranor

[![Build Status](https://travis-ci.org/ef-ctx/tranor.svg?branch=master)](https://travis-ci.org/ef-ctx/tranor)
[![codecov](https://codecov.io/gh/ef-ctx/tranor/branch/master/graph/badge.svg)](https://codecov.io/gh/ef-ctx/tranor)
[![Go Report Card](https://goreportcard.com/badge/github.com/ef-ctx/tranor)](https://goreportcard.com/report/github.com/ef-ctx/tranor)

Plugin which adds the "environment" concept (eg. dev, QA, prod) to Tsuru PaaS.

##Using

In order to use tranor, one needs to install and configure it. Assuming that
[Go is installed and configured](https://golang.org/doc/install), the two
commands below should get tranor up and running:

```
% go get github.com/ef-ctx/tranor
% tranor target-set <remote-tranor-config-server>
```

The config server is an HTTP endpoint that contains the Tsuru target server and
the list of environment names and DNS suffixes, in the following format:


```json
{
	"target": "http://tsuru.example.com",
	"envs": [
		{
			"name": "dev",
			"dnsSuffix": "dev.example.com",
		},
		{
			"name": "stage",
			"dnsSuffix": "stage.example.com",
		},
		{
			"name": "production",
			"dnsSuffix": "example.com",
		}
	]
}
```

##Contributing and running tests

Contributions are welcome! In order to run tests locally, you need to be have
Go 1.6+ and run:

```
% go test
```

You can also get a coverage report with the `-cover` flag:

```
% go test -cover
```

It's possible to get a nicer report in the browser by using the cover tool:

```
% go test -coverprofile cover.out
% go tool cover -html cover.out
```
<commit_msg>readme: fix json syntax in the configuration example<commit_after>#tranor

[![Build Status](https://travis-ci.org/ef-ctx/tranor.svg?branch=master)](https://travis-ci.org/ef-ctx/tranor)
[![codecov](https://codecov.io/gh/ef-ctx/tranor/branch/master/graph/badge.svg)](https://codecov.io/gh/ef-ctx/tranor)
[![Go Report Card](https://goreportcard.com/badge/github.com/ef-ctx/tranor)](https://goreportcard.com/report/github.com/ef-ctx/tranor)

Plugin which adds the "environment" concept (eg. dev, QA, prod) to Tsuru PaaS.

##Using

In order to use tranor, one needs to install and configure it. Assuming that
[Go is installed and configured](https://golang.org/doc/install), the two
commands below should get tranor up and running:

```
% go get github.com/ef-ctx/tranor
% tranor target-set <remote-tranor-config-server>
```

The config server is an HTTP endpoint that contains the Tsuru target server and
the list of environment names and DNS suffixes, in the following format:


```json
{
	"target": "http://tsuru.example.com",
	"envs": [
		{
			"name": "dev",
			"dnsSuffix": "dev.example.com"
		},
		{
			"name": "stage",
			"dnsSuffix": "stage.example.com"
		},
		{
			"name": "production",
			"dnsSuffix": "example.com"
		}
	]
}
```

##Contributing and running tests

Contributions are welcome! In order to run tests locally, you need to be have
Go 1.6+ and run:

```
% go test
```

You can also get a coverage report with the `-cover` flag:

```
% go test -cover
```

It's possible to get a nicer report in the browser by using the cover tool:

```
% go test -coverprofile cover.out
% go tool cover -html cover.out
```

{'fraction_non_alphanumeric': 0.15408608858390518, 'fraction_numerical': 0.0012476606363069245, 'mean_word_length': 3.9953271028037385, 'pattern_counts': {'":': 16, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 14, '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': '1476152', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1109, 'n_words': 327}