<commit_before>csharp-trie
===========


A trie (prefix tree) data structure implementation in C#.

master: [![Build Status](https://travis-ci.org/rmandvikar/csharp-trie.svg?branch=master)](https://travis-ci.org/rmandvikar/csharp-trie)
dev:    [![Build Status](https://travis-ci.org/rmandvikar/csharp-trie.svg?branch=dev)](https://travis-ci.org/rmandvikar/csharp-trie)

#### nuget:
```
Install-Package rm.Trie
```

### Trie Methods

```c#
// Adds a word to the Trie.
void AddWord(string word);

// Removes word from the Trie.
int RemoveWord(string word);

// Removes words by prefix from the Trie.
void RemovePrefix(string prefix);

// Gets all words in the Trie.
IEnumerable<string> GetWords();

// Gets words for given prefix.
IEnumerable<string> GetWords(string prefix);<commit_msg>build: Use branch 'main'<commit_after>csharp-trie
===========


A trie (prefix tree) data structure implementation in C#.

main: [![Build Status](https://travis-ci.org/rmandvikar/csharp-trie.svg?branch=main)](https://travis-ci.org/rmandvikar/csharp-trie)
dev:  [![Build Status](https://travis-ci.org/rmandvikar/csharp-trie.svg?branch=dev)](https://travis-ci.org/rmandvikar/csharp-trie)

#### nuget:
```
Install-Package rm.Trie
```

### Trie Methods

```c#
// Adds a word to the Trie.
void AddWord(string word);

// Removes word from the Trie.
int RemoveWord(string word);

// Removes words by prefix from the Trie.
void RemovePrefix(string prefix);

// Gets all words in the Trie.
IEnumerable<string> GetWords();

// Gets words for given prefix.
IEnumerable<string> GetWords(string prefix);
{'fraction_non_alphanumeric': 0.16825396825396827, 'fraction_numerical': 0.0, 'mean_word_length': 4.751824817518248, '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': '6375908', 'n_tokens_mistral': 577, 'n_tokens_neox': 552, 'n_words': 132}