<commit_before># wrap [![Build Status](https://travis-ci.org/bbrks/wrap.svg)](https://travis-ci.org/bbrks/wrap) [![GoDoc](https://godoc.org/github.com/bbrks/wrap?status.svg)](https://godoc.org/github.com/bbrks/wrap) [![Go Report Card](https://goreportcard.com/badge/github.com/bbrks/wrap)](https://goreportcard.com/report/github.com/bbrks/wrap) [![GitHub tag](https://img.shields.io/github/tag/bbrks/wrap.svg)](https://github.com/bbrks/wrap/releases) [![license](https://img.shields.io/github/license/bbrks/wrap.svg)](https://github.com/bbrks/wrap/blob/master/LICENSE)

An efficient and flexible word-wrapping package for Go (golang)

## Usage

```go
var loremIpsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vulputate quam nibh, et faucibus enim gravida vel. Integer bibendum lectus et erat semper fermentum quis a risus. Fusce dignissim tempus metus non pretium. Nunc sagittis magna nec purus porttitor mollis. Pellentesque feugiat quam eget laoreet aliquet. Donec gravida congue massa, et sollicitudin turpis lacinia a. Fusce non tortor magna. Cras vel finibus tellus."

// Wrap when lines exceed 80 chars.
fmt.Println(wrap.Wrap(loremIpsum, 80))
// Output:
// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vulputate quam
// nibh, et faucibus enim gravida vel. Integer bibendum lectus et erat semper
// fermentum quis a risus. Fusce dignissim tempus metus non pretium. Nunc sagittis
// magna nec purus porttitor mollis. Pellentesque feugiat quam eget laoreet
// aliquet. Donec gravida congue massa, et sollicitudin turpis lacinia a. Fusce non
// tortor magna. Cras vel finibus tellus.
```

### Advanced Usage (custom breakpoints, prefixes, suffixes, etc.)

See [godoc.org/github.com/bbrks/wrap](https://godoc.org/github.com/bbrks/wrap) for examples using the `Wrapper` type to provide customisable breakpoints, prefixes, suffixes and more!

## Contributing

Issues/PRs are much appreciated!

Feature requests/improvements welcome.

## License
This project is licensed under the [MIT License](LICENSE.md).<commit_msg>Fix license link<commit_after># wrap [![Build Status](https://travis-ci.org/bbrks/wrap.svg)](https://travis-ci.org/bbrks/wrap) [![GoDoc](https://godoc.org/github.com/bbrks/wrap?status.svg)](https://godoc.org/github.com/bbrks/wrap) [![Go Report Card](https://goreportcard.com/badge/github.com/bbrks/wrap)](https://goreportcard.com/report/github.com/bbrks/wrap) [![GitHub tag](https://img.shields.io/github/tag/bbrks/wrap.svg)](https://github.com/bbrks/wrap/releases) [![license](https://img.shields.io/github/license/bbrks/wrap.svg)](https://github.com/bbrks/wrap/blob/master/LICENSE)

An efficient and flexible word-wrapping package for Go (golang)

## Usage

```go
var loremIpsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vulputate quam nibh, et faucibus enim gravida vel. Integer bibendum lectus et erat semper fermentum quis a risus. Fusce dignissim tempus metus non pretium. Nunc sagittis magna nec purus porttitor mollis. Pellentesque feugiat quam eget laoreet aliquet. Donec gravida congue massa, et sollicitudin turpis lacinia a. Fusce non tortor magna. Cras vel finibus tellus."

// Wrap when lines exceed 80 chars.
fmt.Println(wrap.Wrap(loremIpsum, 80))
// Output:
// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vulputate quam
// nibh, et faucibus enim gravida vel. Integer bibendum lectus et erat semper
// fermentum quis a risus. Fusce dignissim tempus metus non pretium. Nunc sagittis
// magna nec purus porttitor mollis. Pellentesque feugiat quam eget laoreet
// aliquet. Donec gravida congue massa, et sollicitudin turpis lacinia a. Fusce non
// tortor magna. Cras vel finibus tellus.
```

### Advanced Usage (custom breakpoints, prefixes, suffixes, etc.)

See [godoc.org/github.com/bbrks/wrap](https://godoc.org/github.com/bbrks/wrap) for examples using the `Wrapper` type to provide customisable breakpoints, prefixes, suffixes and more!

## Contributing

Issues, feature requests or improvements welcome!

## License
This project is licensed under the [MIT License](LICENSE).
{'fraction_non_alphanumeric': 0.11872705018359853, 'fraction_numerical': 0.0019583843329253367, 'mean_word_length': 4.7957446808510635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 22, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2419793', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1425, 'n_words': 398}