<commit_before>## Method Log

Trace the history of an individual method in a git repository.

### Install

    gem install method_log

### Run

    method_log <method-signature> # e.g. Foo::Bar#baz

### Todo

* Support earlier versions of Ruby
* Support class methods
* Support namespaced classes e.g. `class Foo::Bar`
* Support for Rspec tests
* Display diffs in method implementation between commits
* Only display diffs when method implementation has changed
* Default to looking for git repo in current working directory
* Default to looking for commits in current git branch
* Maybe add as new git command or extension to existing command e.g. `git log`
* Optimise search for method definitions:
  * First look in file where method was last defined
  * Simple text search for files containing method name to narrow files that need to be parsed

### Credits

Written by [<NAME>](http://jamesmead.org) and the other members of [Go Free Range](http://gofreerange.com).

### License

Released under the [MIT License](https://github.com/freerange/method_log/blob/master/LICENSE).<commit_msg>Tweaks to README.<commit_after>## Method Log

Trace the history of an individual method in a git repository.

This is a work-in-progress and nowhere near production-ready.

### Dependencies

* Ruby v2.1 (just because I'm using required name parameters)
* The [rugged](https://github.com/libgit2/rugged) Ruby gem (listed as dependency in gemspec)
* The [libgit2](https://github.com/libgit2/libgit2) C library (included as part of rugged gem)

### Install

    gem install method_log

### Run

    method_log <method-signature> # e.g. Foo::Bar#baz

### Todo

* Support earlier versions of Ruby (it ought to be possible to support down to v1.9.3 fairly easily)
* Support class methods
* Support namespaced classes e.g. `class Foo::Bar`
* Support for Rspec tests
* Display diffs in method implementation between commits
* Only display diffs when method implementation has changed
* Default to looking for git repo in current working directory
* Default to looking for commits in current git branch
* Maybe add as new git command or extension to existing command e.g. `git log`
* Optimise search for method definitions:
  * First look in file where method was last defined
  * Simple text search for files containing method name to narrow files that need to be parsed

### Credits

Written by [<NAME>](http://jamesmead.org) and the other members of [Go Free Range](http://gofreerange.com).

### License

Released under the [MIT License](https://github.com/freerange/method_log/blob/master/LICENSE).
{'fraction_non_alphanumeric': 0.08320433436532508, 'fraction_numerical': 0.00348297213622291, 'mean_word_length': 4.374220374220374, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '1905611', 'n_tokens_mistral': 717, 'n_tokens_neox': 688, 'n_words': 326}