<commit_before># Multiset

[![Build Status](https://api.travis-ci.org/hilverd/multiset-elixir.svg?branch=master)](https://travis-ci.org/hilverd/multiset-elixir)
[![Hex.pm](https://img.shields.io/hexpm/v/multiset.svg?style=flat-square)](https://hex.pm/packages/multiset)
[![Hex.pm](https://img.shields.io/hexpm/dt/multiset.svg?style=flat-square)](https://hex.pm/packages/multiset)

This is an implementation of [multisets](https://en.wikipedia.org/wiki/Multiset) for
Elixir. Multisets are sets allowing multiple instances of values.

Documentation: http://hexdocs.pm/multiset.

## Usage

Add this library to your list of dependencies in `mix.exs`:

``` elixir
def deps do
  [{:multiset, "~> 0.0.4"}]
end
```

Then run `mix deps.get` in your shell to fetch and compile `multiset`.

## Examples

Start an interactive Elixir shell with `iex -S mix`.<commit_msg>Ensure multiset is started before your application<commit_after># Multiset

[![Build Status](https://api.travis-ci.org/hilverd/multiset-elixir.svg?branch=master)](https://travis-ci.org/hilverd/multiset-elixir)
[![Hex.pm](https://img.shields.io/hexpm/v/multiset.svg?style=flat-square)](https://hex.pm/packages/multiset)
[![Hex.pm](https://img.shields.io/hexpm/dt/multiset.svg?style=flat-square)](https://hex.pm/packages/multiset)

This is an implementation of [multisets](https://en.wikipedia.org/wiki/Multiset) for
Elixir. Multisets are sets allowing multiple instances of values.

Documentation: http://hexdocs.pm/multiset.

## Usage

1. Add `multiset` to your list of dependencies in `mix.exs`:

    ``` elixir
    def deps do
      [{:multiset, "~> 0.0.4"}]
    end
    ```

2. Ensure `multiset` is started before your application:

    ``` elixir
    def application do
      [applications: [:multiset]]
    end
    ```

## Examples

Start an interactive Elixir shell with `iex -S mix`.
{'fraction_non_alphanumeric': 0.16404981050351922, 'fraction_numerical': 0.004331348132106118, 'mean_word_length': 4.356521739130435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 14, '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': '1928962', 'n_tokens_mistral': 696, 'n_tokens_neox': 654, 'n_words': 136}