<commit_before># Ring [![Coverage Status](https://coveralls.io/repos/eliquious/ring/badge.png)](https://coveralls.io/r/eliquious/ring) [![Build Status](https://travis-ci.org/eliquious/ring.svg?branch=master)](https://travis-ci.org/eliquious/ring)


    import "github.com/swiftkick-io/ring"

Package ring is a very fast consistent hashing module. It is based on a [paper](http://arxiv.org/pdf/1406.2294v1.pdf) by <NAME> and <NAME> called "A Fast, Minimal Memory, Consistent Hash Algorithm".

## Usage

#### type Node

```go
type Node interface {

	// Returns the host for the node.
	GetHost() string

	// Returns the capacity of the node. This number determines how many virtual nodes belong to the host.
	GetSize() int

	// Returns the hash of the node. This 64-bit number symbolizes where a node falls on the ring.
	GetHash() uint64
}<commit_msg>Moving to blacklabeldata<commit_after># Ring [![Coverage Status](https://coveralls.io/repos/eliquious/ring/badge.png)](https://coveralls.io/r/blacklabeldata/ring) [![Build Status](https://travis-ci.org/eliquious/ring.svg?branch=master)](https://travis-ci.org/blacklabeldata/ring)


    import "github.com/blacklabeldata/ring"

Package ring is a very fast consistent hashing module. It is based on a [paper](http://arxiv.org/pdf/1406.2294v1.pdf) by <NAME> and <NAME> called "A Fast, Minimal Memory, Consistent Hash Algorithm".

## Usage

#### type Node

```go
type Node interface {

	// Returns the host for the node.
	GetHost() string

	// Returns the capacity of the node. This number determines how many virtual nodes belong to the host.
	GetSize() int

	// Returns the hash of the node. This 64-bit number symbolizes where a node falls on the ring.
	GetHash() uint64
}
{'fraction_non_alphanumeric': 0.12972658522396743, 'fraction_numerical': 0.015125072716695753, 'mean_word_length': 4.180722891566265, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '7600606', 'n_tokens_mistral': 577, 'n_tokens_neox': 532, 'n_words': 178}