<commit_before># Use Math native methods

No matter how optimize your JavaScript code is, it will never be faster than the native methods provided by the JavaScript Engine.

The reason for this is simple: the native parts of JavaScript are all written in a lower-level language such as C++. That means these methods are compiled down to machine code as part of the browser and therefore don't have the same limitations as your code.

The `Math` object contains properties and methods designed to make mathematical operations easier. There are several matematical constants available:

| Constant      | Meaning                                              |
|---------------|------------------------------------------------------|
| `Math.E`      | The value of `E`, the base of the natural logarithms |
| `Math.LN10`   | The natural logarithm of 10                          |
| `Math.LN2`    | The natural logarithm of 2                           |
| `Math.LOG2E`  | The base-2 logarithm of `E`                          |<commit_msg>Refactor tip header Avoid not true argument<commit_after># Use Math native methods

Native parts of JavaScript are all written in a lower-level language such as C++. That means these methods are compiled down to machine code as part of the browser and therefore don't have the same limitations as your code.

The `Math` object contains properties and methods designed to make mathematical operations easier. There are several matematical constants available:

| Constant      | Meaning                                              |
|---------------|------------------------------------------------------|
| `Math.E`      | The value of `E`, the base of the natural logarithms |
| `Math.LN10`   | The natural logarithm of 10                          |
| `Math.LN2`    | The natural logarithm of 2                           |
| `Math.LOG2E`  | The base-2 logarithm of `E`                          |
{'fraction_non_alphanumeric': 0.12480580010357328, 'fraction_numerical': 0.008285862247540134, 'mean_word_length': 1.7919075144508672, '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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5169905', 'n_tokens_mistral': 439, 'n_tokens_neox': 404, 'n_words': 223}