<commit_before># gonp

[![Build Status](https://travis-ci.org/cubicdaiya/gonp.png?branch=master)](https://travis-ci.org/cubicdaiya/gonp)

gonp is the diff library in Go.

# How To

```go
diff := New("abc", "abd")
diff.Compose()
ed := diff.Editdistance() // ed is 2
lcs := diff.Lcs() // lcs is "ab"

// ses is []SesElem{
//        {c: 'a', t: Common},
//        {c: 'b', t: Common},
//        {c: 'c', t: Delete},
//        {c: 'd', t: Add},
//        }
ses := diff.Ses()
```<commit_msg>modify README<commit_after># gonp

[![Build Status](https://travis-ci.org/cubicdaiya/gonp.png?branch=master)](https://travis-ci.org/cubicdaiya/gonp)

gonp is the diff library in Go.

# How To

```go
diff := New("abc", "abd")
diff.Compose()
ed := diff.Editdistance() // ed is 2
lcs := diff.Lcs() // lcs is "ab"

ses := diff.Ses()
// ses is []SesElem{
//        {c: 'a', t: Common},
//        {c: 'b', t: Common},
//        {c: 'c', t: Delete},
//        {c: 'd', t: Add},
//        }
```
{'fraction_non_alphanumeric': 0.2448559670781893, 'fraction_numerical': 0.00205761316872428, 'mean_word_length': 2.5253623188405796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1286236', 'n_tokens_mistral': 416, 'n_tokens_neox': 409, 'n_words': 99}