<commit_before># Badger v0.0

It might be nice to gift badges and track achievements for deserving people.

[I wrote a long article about the thinking and use cases behind this thing.](http://decafbad.com/2010/07/badger-article/)

## Installation / Deployment

* Never been done, yet.

## FAQ

* Hasn't this been done before?
    * Yes, [at least once][bravonation] on the net.
* Why are you doing it, then?
    * Because I'd like to:
        1. Revive the idea; 
        2. Make it more generative and participatory;
        3. Introduce automated web-wide scanning for achievement conditions.

## Hacking

I'll assume you're a bit of a Django hacker here, but this might help kick things off:

* Get the source from [github](http://github.com/lmorchard/badger).
    * (You're probably there now.)
* Make sure you have Python 2.4+, [pip][], and [virtualenv][].
    * I'm using Python 2.6.5 from MacPorts, for what it's worth.
* Follow the [Getting started guide for Pinax](http://pinaxproject.com/docs/dev/gettingstarted.html), which is basically the following:
    * Use [virtualenv][] to create and use a new environment.
    * `pip install -r requirements/dev.txt`
    * `python manage.py syncdb`
    * `python manage.py migrate --all`
    * `python manage.py runserver`
* If anything goes wrong, you're probably better informed than I am to fix it.
* Using Freshen for tests, I've been using this command:
    * `python -Wignore manage.py test --with-freshen -lnose.badger -v2 --tags=~@TODO`
        * This runs the Freshen feature tests, with log output enabled, and skips the scenarios tagged as @TODO
        * The `-Wignore` is to squelch a deprecation warning about md5 vs hashlib - should probably fix that some day.
    * `python manage.py test --with-freshen`
        * This will run everything, including tests that fail because they're there to remind me of features to develop

[virtualenv]: http://pypi.python.org/pypi/virtualenv
[pip]: http://pip.openplans.org/

## Credits & Influences

* Much inspiration from [BravoNation][] (R.I.P.)
* [Scouting Merit Badges](http://meritbadge.org/wiki/index.php/Main_Page) (ie. the originals)
* [Nerd Merit Badges](http://www.nerdmeritbadges.com/)
* [Badgers photo!](http://www.flickr.com/photos/66176388@N00/3955963781/)
<commit_msg>Updates to README, testing changes<commit_after># Badger v0.0

It might be nice to gift badges and track achievements for deserving people.

[I wrote a long article about the thinking and use cases behind this thing.](http://decafbad.com/2010/07/badger-article/)

## Installation / Deployment

* Never been done, yet.

## FAQ

* Hasn't this been done before?
    * Yes, [at least once][bravonation] on the net.
* Why are you doing it, then?
    * Because I'd like to:
        1. Revive the idea; 
        2. Make it more generative and participatory;
        3. Introduce automated web-wide scanning for achievement conditions.

## Hacking

I'll assume you're a bit of a Django hacker here, but this might help kick things off:

* Get the source from [github](http://github.com/lmorchard/badger).
    * (You're probably there now.)
* Make sure you have Python 2.4+, [pip][], and [virtualenv][].
    * I'm using Python 2.6.5 from MacPorts, for what it's worth.
* Follow the [Getting started guide for Pinax](http://pinaxproject.com/docs/dev/gettingstarted.html), which is basically the following:
    * Use [virtualenv][] to create and use a new environment.
    * `pip install -r requirements/dev.txt`
    * `python manage.py syncdb`
    * `python manage.py migrate --all`
    * `python manage.py runserver`
* Using Freshen for tests, I've been using these commands:
    * `python manage.py test apps/badges --with-freshen`
        * This will run everything, including tests that fail because they're there to remind me of features to develop
    * `python -Wignore manage.py test apps/badges --with-freshen -v2 -lnose.badger --tags=~@TODO -a\!TODO`
        * This runs the Freshen feature tests, with log output enabled, and skips the scenarios tagged as @TODO as well as tests with a TODO attribute.
        * The `-Wignore` is to squelch a deprecation warning about md5 vs hashlib - should probably fix that some day.

[virtualenv]: http://pypi.python.org/pypi/virtualenv
[pip]: http://pip.openplans.org/

## Credits & Influences

* Much inspiration from [BravoNation][] (R.I.P.)
* [Scouting Merit Badges](http://meritbadge.org/wiki/index.php/Main_Page) (ie. the originals)
* [Nerd Merit Badges](http://www.nerdmeritbadges.com/)
* [Badgers photo!](http://www.flickr.com/photos/66176388@N00/3955963781/)
* <http://en.wikipedia.org/wiki/Wikipedia:Barnstars>
* <http://creative.mozilla.org/badges/>

{'fraction_non_alphanumeric': 0.1138592750533049, 'fraction_numerical': 0.0162046908315565, 'mean_word_length': 3.532367149758454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, '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': '1388367', 'n_tokens_mistral': 1558, 'n_tokens_neox': 1446, 'n_words': 541}