<commit_before>HasSet
======
A simple hash set in JavaScript
[![build status](https://travis-ci.org/liushuping/HashSet.svg?branch=master)](https://travis-ci.org/liushuping/HashSet.svg?branch=master)

## Create a new HashSet
```
var HashSet = require('hashset');

//Create an empty hash set
var hashset = new HashSet();

//Create a hash set an initialize it with a value 'a'
var hashset = new HashSet('a');

//Create a hash set an initialize it with a set of values
var hashset = new HashSet('a', 'b', 'c');

//Create a hash set an initialize it with an array of avalues
var hashset = new HashSet([1, 2, 3]);
```

## Check whether a value is in the hash set
```
hashset.contains(val);
```

## Add a new value into the hash set
```
hashset.add(val);
```

## Remove a value from the hash set
```
hashset.remove(val);
```
Removing an non-existing value will not trigger any error

## Test
Make sure `mocha` is installed globally
```
npm install mocha -g
```
Run `npm test` to run unit test

## Dependencies

## License
MIT<commit_msg>add javascript language flag in README<commit_after>HasSet
======
A simple hash set in JavaScript
[![build status](https://travis-ci.org/liushuping/HashSet.svg?branch=master)](https://travis-ci.org/liushuping/HashSet.svg?branch=master)

## Create a new HashSet
```javascript
var HashSet = require('hashset');

//Create an empty hash set
var hashset = new HashSet();

//Create a hash set an initialize it with a value 'a'
var hashset = new HashSet('a');

//Create a hash set an initialize it with a set of values
var hashset = new HashSet('a', 'b', 'c');

//Create a hash set an initialize it with an array of avalues
var hashset = new HashSet([1, 2, 3]);
```

## Check whether a value is in the hash set
```javascript
hashset.contains(val);
```

## Add a new value into the hash set
```javascript
hashset.add(val);
```

## Remove a value from the hash set
```javascript
hashset.remove(val);
```
Removing an non-existing value will not trigger any error

## Test
Make sure `mocha` is installed globally
```
npm install mocha -g
```
Run `npm test` to run unit test

## Dependencies

## License
MIT
{'fraction_non_alphanumeric': 0.13741176470588234, 'fraction_numerical': 0.002823529411764706, 'mean_word_length': 4.423469387755102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1386494', 'n_tokens_mistral': 707, 'n_tokens_neox': 670, 'n_words': 274}