<commit_before># Welcome to Robowars

Robowars is a Rails 3 app for running a Robowars Tournament Event.

It allows for players to log in via Twitter or Github, then create and test their robots.

Staff users can enter the tournament section, where the matches are played.

### Development

You can run Robowars in development without Twitter or Github setup.

To access as a player, run:

```bash
MOCK_USER=true bundle exec rails s
```

To access as staff, run:

```bash
MOCK_USER=staff bundle exec rails s
```

### Testing

Tests are in rspec, the whole app is not covered, but there's enough for you to check out how you can test additions.

### License

License is MIT. See LICENSE for details.

<commit_msg>Instructions how to set up on heroku<commit_after># Welcome to Robowars

Robowars is a Rails 3 app for running a Robowars Tournament Event.

It allows for players to log in via Twitter or Github, then create and test their robots.

Staff users can enter the tournament section, where the matches are played.

### Development

You can run Robowars in development without Twitter or Github setup.

To access as a player, run:

```bash
MOCK_USER=true bundle exec rails s
```

To access as staff, run:

```bash
MOCK_USER=staff bundle exec rails s
```

### Testing

Tests are in rspec, the whole app is not covered, but there's enough for you to check out how you can test additions.

### Setting up on heroku

First, get the Heroku Toolbelt. Then:

```bash
heroku apps:create [NAME]
heroku run rake db:migrate --app [NAME]
heroku config:set GITHUB_APP_ID=[github client id] GITHUB_SECRET=[github client secret]
heroku config:set TWITTER_TOKEN=[github client id] TWITTER_SECRET=[github client secret]
```

### License

License is MIT. See LICENSE for details.


{'fraction_non_alphanumeric': 0.06787330316742081, 'fraction_numerical': 0.0011312217194570137, 'mean_word_length': 4.409785932721713, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2288595', 'n_tokens_mistral': 548, 'n_tokens_neox': 510, 'n_words': 266}