<commit_before>Sunrize
=======

Simple Sinatra app which presents a [memrise](http://www.memrise.com) user with a JSON encoded representation of their account data (rank, points, total words learnt and so on). The app periodically visits memrise, keeping user data up-to-date.

## Getting Access
Visit [sunrize.me](http://sunrize.me) and submit your memrise username. Sunrize will then cache your usage statistics. If you're a well behaved boy or girl, sunrize will keep your data up-to-date (still pending).

Request your data with:

    http://sunrize.me/user/your-user-name

And you'll get something back like this:

    {
        "word_count": "315",
        "rank": "6329",
        "courses": [["French - The 1170 most common verbs", "http://www.memrise.com/set/10004259/french-the-1170-most-common-verbs/"], ["French GCSE", "http://www.memrise.com/set/589/french-gcse/"], ["Herbs", "http://www.memrise.com/set/10009208/herbs/"], ["Introductory French", "http://www.memrise.com/set/10007938/introductory-french/"], ["Introductory Spanish", "http://www.memrise.com/set/10007193/introductory-spanish/"]],
        "high_fives": "2",
        "points": "112726",
        "thumbs_up": "0",
        "courses_total": "5",
        "username": "osahyoun"
    }

JSONP is supported, just pass `callback` in your query string:

    http://sunrize.me/user/osahyoun?callback=blah

## Source

Sunrize's repo is available on GitHub, which can be browsed at:<commit_msg>Again, fixing paths<commit_after>Sunrize
=======

Simple Sinatra app which presents a [memrise](http://www.memrise.com) user with a JSON encoded representation of their account data (rank, points, total words learnt and so on). The app periodically visits memrise, keeping user data up-to-date.

## Getting Access
Visit [sunrize.me](http://www.sunrize.me) and submit your memrise username. Sunrize will then cache your usage statistics. If you're a well behaved boy or girl, sunrize will keep your data up-to-date (still pending).

Request your data with:

    http://www.sunrize.me/user/your-user-name

And you'll get something back like this:

    {
        "word_count": "315",
        "rank": "6329",
        "courses": [["French - The 1170 most common verbs", "http://www.memrise.com/set/10004259/french-the-1170-most-common-verbs/"], ["French GCSE", "http://www.memrise.com/set/589/french-gcse/"], ["Herbs", "http://www.memrise.com/set/10009208/herbs/"], ["Introductory French", "http://www.memrise.com/set/10007938/introductory-french/"], ["Introductory Spanish", "http://www.memrise.com/set/10007193/introductory-spanish/"]],
        "high_fives": "2",
        "points": "112726",
        "thumbs_up": "0",
        "courses_total": "5",
        "username": "osahyoun"
    }

JSONP is supported, just pass `callback` in your query string:

    http://www.sunrize.me/user/osahyoun?callback=blah

## Source

Sunrize's repo is available on GitHub, which can be browsed at:
{'fraction_non_alphanumeric': 0.1499659168370825, 'fraction_numerical': 0.04021813224267212, 'mean_word_length': 3.7186495176848875, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 15, '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': '7402852', 'n_tokens_mistral': 1065, 'n_tokens_neox': 949, 'n_words': 271}