<commit_before># dropblame

A Python command line tool which will take revisions of a Dropbox file in a shared folder and run `git blame` on them. Suggested by [@cgranade](https://twitter.com/cgranade/status/683957037173059584).

## Dependencies

`pip install dropbox pyyaml ndg-httpsclient`

You will need git-- this doesn't reimplement git blame, it just takes all the revs and sticks them into a temporary git repo.

`drop` itself is a standalone Python script; you can put it somewhere on your PATH, if you like!

## Usage

`drop blame /path/to/Dropbox/file`

Any additional arguments will be passed to git blame. First time you run this you will be asked for configuration details to connect to Dropbox, which will be stored in ~/.dropblame/config.yml.

Note that this can only go back as far as the Dropbox API will allow, which is currently 100 revisions.<commit_msg>Add note about caching<commit_after># dropblame

A Python command line tool which will take revisions of a Dropbox file in a shared folder and run `git blame` on them. Suggested by [@cgranade](https://twitter.com/cgranade/status/683957037173059584).

## Dependencies

`pip install dropbox pyyaml ndg-httpsclient`

You will need git-- this doesn't reimplement git blame, it just takes all the revs and sticks them into a temporary git repo. The downloads are cached so it only needs to grab revisions it doesn't already have.

`drop` itself is a standalone Python script; you can put it somewhere on your PATH, if you like!

## Usage

`drop blame /path/to/Dropbox/file`

Any additional arguments will be passed to git blame. First time you run this you will be asked for configuration details to connect to Dropbox, which will be stored in ~/.dropblame/config.yml.

Note that this can only go back as far as the Dropbox API will allow, which is currently 100 revisions.
{'fraction_non_alphanumeric': 0.05863192182410423, 'fraction_numerical': 0.02280130293159609, 'mean_word_length': 4.326589595375722, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2575667', 'n_tokens_mistral': 551, 'n_tokens_neox': 493, 'n_words': 277}