<commit_before># Game Engine

## API

You can check out the API specification in http://editor.swagger.io/ and importing the following URL:

```
https://raw.githubusercontent.com/VxRackNeutrino/Hero/develop/game-engine/swagger.yaml
```

## Development

For development purposes, we recommend using the Vagrant box available on the project root directory. That will install and set up Golang, Docker and a MySQL database needed to work on the Game Engine development.

Once you have the Vagrant box set up, ssh into it and CD to the `game-engine` directory.

Then, export the database configuration by exporting the following variable.

```
export DATABASE_URL=root:root@/titandb
```

And, optionally, the admin token used to issue API requests that require admin privileges.

```
export ADMIN_TOKEN=<PASSWORD>
```

Then, you can run the Game Engine with the following command.

```
go run *.go
```

## Docker

You can also build a Docker image of the Game Engine.

```
docker build -t game-engine .
```
<commit_msg>Updates game engine readme file<commit_after># Game Engine

## API

You can check out the API specification in http://editor.swagger.io/ and importing the following URL:

```
https://raw.githubusercontent.com/VxRackNeutrino/Hero/develop/game-engine/swagger.yaml
```

## Development

For development purposes, we recommend using the Vagrant box available on the project root directory. That will install and set up Golang, Docker and a MySQL database needed to work on the Game Engine development.

Once you have the Vagrant box set up, ssh into it and CD to the `game-engine` directory.

Then, export the database configuration by exporting the following variable.

```
export DATABASE_URL=root:root@/titandb
```

And, optionally, the admin token used to issue API requests that require admin privileges.

```
export ADMIN_TOKEN=<PASSWORD>
```

Install the Golang dependencies.

```
go get -v ./...
```

Then, you can run the Game Engine with the following command.

```
go run *.go
```

## Docker

You can also build a Docker image of the Game Engine.

```
docker build -t game-engine .
```

{'fraction_non_alphanumeric': 0.08970099667774087, 'fraction_numerical': 0.0, 'mean_word_length': 4.27, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '5681995', 'n_tokens_mistral': 647, 'n_tokens_neox': 594, 'n_words': 271}