<commit_before>moss
----

moss provides a simple, ordered key-val collection data structure as a
100% golang library.

moss stands for "memory-oriented sorted segments".

[![Build Status](https://travis-ci.org/couchbase/moss.svg?branch=master)](https://travis-ci.org/couchbase/moss) [![Coverage Status](https://coveralls.io/repos/github/couchbase/moss/badge.svg?branch=master)](https://coveralls.io/github/couchbase/moss?branch=master) [![GoDoc](https://godoc.org/github.com/couchbase/moss?status.svg)](https://godoc.org/github.com/couchbase/moss)

Features
========

* ordered key-val collection API
* key range iterators
* snapshots provide for isolated reads
* atomic mutations via a batch API
* merge operations allow for read-compute-write optimizations
  for write-heavy use cases (e.g., updating counters)
* concurrent readers and writers don't block each other
* optional, advanced API's to avoid extra memory copying
* optional persistence hooks to allow write-back caching to a
  lower-level storage implementation
* 100% go implementation
* unit tests

License
=======

Apache 2.0

Example
=======

    import github.com/couchbaselabs/moss<commit_msg>Correct import package name<commit_after>moss
----

moss provides a simple, ordered key-val collection data structure as a
100% golang library.

moss stands for "memory-oriented sorted segments".

[![Build Status](https://travis-ci.org/couchbase/moss.svg?branch=master)](https://travis-ci.org/couchbase/moss) [![Coverage Status](https://coveralls.io/repos/github/couchbase/moss/badge.svg?branch=master)](https://coveralls.io/github/couchbase/moss?branch=master) [![GoDoc](https://godoc.org/github.com/couchbase/moss?status.svg)](https://godoc.org/github.com/couchbase/moss)

Features
========

* ordered key-val collection API
* key range iterators
* snapshots provide for isolated reads
* atomic mutations via a batch API
* merge operations allow for read-compute-write optimizations
  for write-heavy use cases (e.g., updating counters)
* concurrent readers and writers don't block each other
* optional, advanced API's to avoid extra memory copying
* optional persistence hooks to allow write-back caching to a
  lower-level storage implementation
* 100% go implementation
* unit tests

License
=======

Apache 2.0

Example
=======

    import github.com/couchbase/moss
{'fraction_non_alphanumeric': 0.12767780634104542, 'fraction_numerical': 0.006855184233076264, 'mean_word_length': 5.080729166666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '582572', 'n_tokens_mistral': 735, 'n_tokens_neox': 689, 'n_words': 196}