<commit_before>gox-server
====

[![GitHub release](http://img.shields.io/github/release/tcnksm/gox-server.svg?style=flat-square)][release]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godocs]

[release]: https://github.com/tcnksm/gox-server/releases
[license]: https://github.com/tcnksm/gox-server/blob/master/LICENSE
[godocs]: http://godoc.org/github.com/tcnksm/gox-server

Golang cross compile on Heroku.

Just request some golang GitHub repository name, you can get compiled binary for your platform without golang runtime on your local PC. Currently request repository must be `go build`-able. Support platform is Darwin/Linux/Windows, 386/amd64. This is just POC and playing with [Heroku with Docker](https://devcenter.heroku.com/articles/introduction-local-development-with-docker). You should prepare your own build environment. 

## Demo

Demo application is hosted on [https://gox-server.herokuapp.com/](https://gox-server.herokuapp.com/).

For example, to get [github.com/Soulou/curl-unix-socket](https://github.com/Soulou/curl-unix-socket) compiled binary, 

```bash
$ curl -A "`uname -sp`" https://gox-server.herokuapp.com/Soulou/curl-unix-socket > curl-unix-socket
$ chmod a+x curl-unix-socket
```

Or access from your browser [https://gox-server.herokuapp.com/Soulou/curl-unix-socket](https://gox-server.herokuapp.com/Soulou/curl-unix-socket).

## Usage

To get binary for platform (`uname -sp`) hosted on [github.com/${owner}/${repo}](),

```bash
$ curl -A "`uname -sp`" https://gox-server.herokuapp.com/${owner}/${repo}
```

## Development

You can run this on local dev environment. You need to prepare `docker` and [heroku docker plugin](https://devcenter.heroku.com/articles/introduction-local-development-with-docker).

```bash
$ heroku docker:start
```

And create request (e.g., your docker works on `192.168.59.103`), to get [github.com/tcnksm/ghr](https://github.com/tcnksm/ghr)

```bash
$ curl -A "`uname -sp`" http://192.168.59.103:3000/tcnksm/ghr > ghr
```

## Release

You can setup your own build server on Heroku. After create account on Heroku, run below,

```bash
$ heroku create
$ herocku docker:release
```

## Contribution
<commit_msg>Documentation<commit_after>gox-server
====

[![GitHub release](http://img.shields.io/github/release/tcnksm/gox-server.svg?style=flat-square)][release]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godocs]

[release]: https://github.com/tcnksm/gox-server/releases
[license]: https://github.com/tcnksm/gox-server/blob/master/LICENSE
[godocs]: http://godoc.org/github.com/tcnksm/gox-server

Golang cross compiler on Heroku.

Just request GitHub repository name, you can get compiled binary for your platform without golang runtime on your local PC. Currently request repository must be `go build`-able. Support platform is Darwin/Linux/Windows, 386/amd64. This is just POC and playing with [Heroku with Docker](https://devcenter.heroku.com/articles/introduction-local-development-with-docker). You should prepare your own build environment. 

## Demo

Demo application is hosted on [https://gox-server.herokuapp.com/](https://gox-server.herokuapp.com/).

For example, to get [github.com/Soulou/curl-unix-socket](https://github.com/Soulou/curl-unix-socket) compiled binary, 

```bash
$ curl -A "`uname -sp`" https://gox-server.herokuapp.com/Soulou/curl-unix-socket > curl-unix-socket
$ chmod a+x curl-unix-socket
```

Or access from your browser [https://gox-server.herokuapp.com/Soulou/curl-unix-socket](https://gox-server.herokuapp.com/Soulou/curl-unix-socket).

## Usage

To get binary hosted on [github.com/${owner}/${repo}](),

```bash
$ curl -A "`uname -sp`" https://gox-server.herokuapp.com/${owner}/${repo}
```

## Development

You can run this on local dev environment. You need to prepare `docker` and [heroku docker plugin](https://devcenter.heroku.com/articles/introduction-local-development-with-docker).

```bash
$ heroku docker:start
```

And create request (e.g., your docker works on `192.168.59.103`), to get [github.com/tcnksm/ghr](https://github.com/tcnksm/ghr)

```bash
$ curl -A "`uname -sp`" http://192.168.59.103:3000/tcnksm/ghr > ghr
```

## Release

You can setup your own build server on Heroku. After create account on Heroku, run below,

```bash
$ heroku create
$ herocku docker:release
```

## Contribution

{'fraction_non_alphanumeric': 0.16230936819172112, 'fraction_numerical': 0.013507625272331155, 'mean_word_length': 4.710199004975125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5461330', 'n_tokens_mistral': 1708, 'n_tokens_neox': 1564, 'n_words': 352}