<commit_before># CF Routing API

## Installing this Repo

To clone this repo you will need to have godeps installed. You can install godeps
by running the command `go get github.com/tools/godep`.

To then install this repo you can run the following commands.

```sh
go get github.com/cloudfoundry-incubator/routing-api
cd $GOPATH/src/github.com/cloudfoundry-incubator/routing-api
godep restore
```

To install the server binary you can do

```sh
cd $GOPATH/src/github.com/cloudfoundry-incubator/routing-api
go install ./cmd/routing-api

# OR
go get github.com/cloudfoundry-incubator/routing-api/cmd/routing-api
```

## Development

#### etcd

To run the tests you need a running etcd cluster on version 0.4.6. To get that do:

```sh
go get github.com/coreos/etcd
cd $GOPATH/src/github.com/coreos/etcd
git fetch --tags
git checkout v0.4.6
go install .
```

Once installed, you can run etcd with the command `etcd` and you should see the
following output:
```
   | Using the directory majestic.etcd as the etcd curation directory because a directory was not specified.
   | majestic is starting a new cluster
   | etcd server [name majestic, listen on :4001, advertised url http://127.0.0.1:4001]   <-- default location of the etcd server
   | peer server [name majestic, listen on :7001, advertised url http://127.0.0.1:7001]
```

Note that this will run an etcd server and create a new directory at that location 
where it stores all of the records. This directory can be removed afterwards, or 
you can simply run etcd in a temporary directory.

#### Authorization Token<commit_msg>Update README to use correct etcd version<commit_after># CF Routing API

## Installing this Repo

To clone this repo you will need to have godeps installed. You can install godeps
by running the command `go get github.com/tools/godep`.

To then install this repo you can run the following commands.

```sh
go get github.com/cloudfoundry-incubator/routing-api
cd $GOPATH/src/github.com/cloudfoundry-incubator/routing-api
godep restore
```

To install the server binary you can do

```sh
cd $GOPATH/src/github.com/cloudfoundry-incubator/routing-api
go install ./cmd/routing-api

# OR
go get github.com/cloudfoundry-incubator/routing-api/cmd/routing-api
```

## Development

#### etcd

To run the tests you need a running etcd cluster on version 2.0.1. To get that do:

```sh
go get github.com/coreos/etcd
cd $GOPATH/src/github.com/coreos/etcd
git fetch --tags
git checkout v2.0.1
go install .
```

Once installed, you can run etcd with the command `etcd` and you should see the
output contain the following lines:
```
   | etcd: listening for peers on http://localhost:2380
   | etcd: listening for peers on http://localhost:7001
   | etcd: listening for client requests on http://localhost:2379
   | etcd: listening for client requests on http://localhost:4001
```

Note that this will run an etcd server and create a new directory at that location 
where it stores all of the records. This directory can be removed afterwards, or 
you can simply run etcd in a temporary directory.

#### Authorization Token
{'fraction_non_alphanumeric': 0.08773065717060538, 'fraction_numerical': 0.018128844286176757, 'mean_word_length': 4.016233766233766, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2903137', 'n_tokens_mistral': 997, 'n_tokens_neox': 949, 'n_words': 395}