<commit_before>Descriptive Statistics
===============

Overview
--------

 This gem adds methods to the Enumerable module to allow easy calculation of basic descriptive statistics.

Examples
--------

> require 'descriptive_statistics'
 => true 
> data = [2,6,9,3,5,1,8,3,6,9,2]
 => [2, 6, 9, 3, 5, 1, 8, 3, 6, 9, 2] 
> data.number
 => 11.0 
> data.sum
 => 54 
> data.mean
 => 4.909090909090909 
> data.median
 => 5.0 
> data.variance
 => 7.7190082644628095 
> data.standard_deviation
 => 2.778310325442932 
> data.percentile(70)
 => 6.0 
<commit_msg>Update master<commit_after>Descriptive Statistics
===============

Overview
--------

 This gem adds methods to the Enumerable module to allow easy calculation of basic descriptive statistics.

Examples
--------
```
> require 'descriptive_statistics'
 => true 
```

> data = [2,6,9,3,5,1,8,3,6,9,2]
 => [2, 6, 9, 3, 5, 1, 8, 3, 6, 9, 2] 

> data.number
 => 11.0 

> data.sum
 => 54 

> data.mean
 => 4.909090909090909 

> data.median
 => 5.0 

> data.variance
 => 7.7190082644628095 

> data.standard_deviation
 => 2.778310325442932 

> data.percentile(70)
 => 6.0 

{'fraction_non_alphanumeric': 0.19158460161145927, 'fraction_numerical': 0.1468218442256043, 'mean_word_length': 3.2835249042145596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '6282859', 'n_tokens_mistral': 549, 'n_tokens_neox': 428, 'n_words': 101}