<commit_before># gym-server

This project provide a rest api for [gym](https://github.com/openai/gym) using docker.

## Installation

1. Install docker.
2. Build docker image with:
```bash
➜  gym-server git:(master) ✗ docker build -t gym-server:latest .
```

## Usage

Run with:
```bash
➜  gym-server git:(master) ✗ docker run -p 5000:5000 -e "GYM_ENV=CartPole-v0" -t gym-server
```

You can change your environment by change the env variable GYM_ENV.

*Obs: Only tested with CartPole-v0 for now.*

To check the available API:

```bash
➜  gym-server git:(master) ✗ curl http://192.168.99.100:5000/
{
  "available_commands": {
    "/info": "Expose useful information, such as: action_space, and observation_space.",
    "/reset": "Reset environment.",
    "/step/<int:action>": "Execute given action."
  }
}%
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`<commit_msg>Add docker hub<commit_after># gym-server

This project provide a rest api for [gym](https://github.com/openai/gym) using docker.

## Installation

1. Install docker.
2. Build docker image with:
```bash
➜  gym-server git:(master) ✗ docker build -t gym-server:latest .
```

OR

Pull the image form docker hub: flaviotruzzi/gym-server:latest

## Usage

Run with:
```bash
➜  gym-server git:(master) ✗ docker run -p 5000:5000 -e "GYM_ENV=CartPole-v0" -t gym-server
```

You can change your environment by change the env variable GYM_ENV.

*Obs: Only tested with CartPole-v0 for now.*

To check the available API:

```bash
➜  gym-server git:(master) ✗ curl http://192.168.99.100:5000/
{
  "available_commands": {
    "/info": "Expose useful information, such as: action_space, and observation_space.",
    "/reset": "Reset environment.",
    "/step/<int:action>": "Execute given action."
  }
}%
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
{'fraction_non_alphanumeric': 0.1453287197231834, 'fraction_numerical': 0.029658922392486405, 'mean_word_length': 3.8771084337349397, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2381649', 'n_tokens_mistral': 786, 'n_tokens_neox': 703, 'n_words': 241}