<commit_before># grit-ext

[![Build Status](https://secure.travis-ci.org/mmozuras/grit-ext.png)](http://travis-ci.org/mmozuras/grit-ext)

## Resources

* [grit](https://github.com/mojombo/grit)
* [grit-ext on RubyGems](https://rubygems.org/gems/grit-ext)

## How to Use

To use grit-ext, after installing, just require 'grit-ext':

    require 'grit-ext'

All of the extensions, additionally to normal grit classes, will be available to you.

## Diff#hunks

[Diff#hunks](https://github.com/mmozuras/grit-ext/blob/master/lib/grit/ext/diff.rb) method returns an array of [DiffHunk](https://github.com/mmozuras/grit-ext/blob/master/lib/grit/ext/diff_hunk.rb). These hunks provide structured information about the diff.<commit_msg>Add a list of added methods to Diff to README<commit_after># grit-ext

[![Build Status](https://secure.travis-ci.org/mmozuras/grit-ext.png)](http://travis-ci.org/mmozuras/grit-ext)

## Resources

* [grit](https://github.com/mojombo/grit)
* [grit-ext on RubyGems](https://rubygems.org/gems/grit-ext)

## How to Use

To use grit-ext, after installing, just require 'grit-ext':

    require 'grit-ext'

All of the extensions, additionally to normal grit classes, will be available to you.

## Diff#hunks

[Diff#hunks](https://github.com/mmozuras/grit-ext/blob/master/lib/grit/ext/diff.rb) method returns an array of [DiffHunk](https://github.com/mmozuras/grit-ext/blob/master/lib/grit/ext/diff_hunk.rb). These hunks provide structured information about the diff.

## Diff#repo

## Diff#full_a_path

## Diff#full_b_path

## Diff#added

## Diff#removed
{'fraction_non_alphanumeric': 0.1556543837357052, 'fraction_numerical': 0.0, 'mean_word_length': 4.526315789473684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '1932704', 'n_tokens_mistral': 592, 'n_tokens_neox': 582, 'n_words': 117}