<commit_before>Set Up
====

Extends Set.prototype with some new methods, probably don't want to extend the actual prototype in the wild but but my attempt at making a SetUp object which extends Set died in a flurry of errors related to using methods on objects they aren't allowed to be used on. Currently only works in firefox.

api
====

`Set.prototype.map` takes 2 values, a function and a context, creates a new set and iterates over your set adding the new values to the new set, function is called with an optional context value.

`Set.prototype.equals` takes another set, returns true if they are the same length the other set has all the same values as this set.

`Set.prototype.filter` returns a new filtered set.

`Set.prototype.reduce` takes a function and calls it with accumulator, value, for each value. Second argument is the accumulator.

`Set.prototype.some` and `Set.prototype.every` just like the array versions but doesn't call the function with the index.<commit_msg>rewrite readme<commit_after>Set Up
====

Extends Set.prototype with some new methods, probably don't want to extend the actual prototype in the wild but but my attempt at making a SetUp object which extends Set died in a flurry of errors related to using methods on objects they aren't allowed to be used on. Currently only works in firefox.

api
====

stuff from Array.prototype
------

these are all identical to their version on array, the only differences being the functions are not called with index as an argument and length is not cached at the beginning so values may be added during iteration.

- `Set.prototype.map`
- `Set.prototype.filter`
- `Set.prototype.reduce`
- `Set.prototype.some`
- `Set.prototype.every`

new stuff
-------

`Set.prototype.equals` takes another set, returns true if they are the same length and the other set has all the same values as this set.
{'fraction_non_alphanumeric': 0.06313536650615302, 'fraction_numerical': 0.0005350454788657035, 'mean_word_length': 4.151515151515151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1236618', 'n_tokens_mistral': 475, 'n_tokens_neox': 462, 'n_words': 281}