<commit_before>binary-search-bounds
====================
Binary search on arrays.  Also works if the inputs are 1D [ndarrays](https://github.com/mikolalysenko/ndarray).

## API

```javascript
var bounds = require("binary-search-bounds")
```

### `bounds.lt(array, y[, cmp, lo, hi])`
Returns the index of the last item in the array `<` y

### `bounds.le(array, y[, cmp, lo, hi])`
Returns the index of the last item in the array `<=` y

### `bounds.gt(array, y[, cmp, lo, hi])`
Returns the index of the first item in the array `>` y

### `bounds.ge(array, y[, cmp, lo, hi])`
Returns the index of the first item in the array `>=` y

### `bounds.eq(array, y[, cmp, lo, hi])`
Returns an index of some item in the array `== y`.
<commit_msg>add npm install link<commit_after>binary-search-bounds
====================
Binary search on arrays.  Also works if the inputs are 1D [ndarrays](https://github.com/mikolalysenko/ndarray).

## Install
```
npm install binary-search-bounds
```

## API

```javascript
var bounds = require("binary-search-bounds")
```

### `bounds.lt(array, y[, cmp, lo, hi])`
Returns the index of the last item in the array `<` y

### `bounds.le(array, y[, cmp, lo, hi])`
Returns the index of the last item in the array `<=` y

### `bounds.gt(array, y[, cmp, lo, hi])`
Returns the index of the first item in the array `>` y

### `bounds.ge(array, y[, cmp, lo, hi])`
Returns the index of the first item in the array `>=` y

### `bounds.eq(array, y[, cmp, lo, hi])`
Returns an index of some item in the array `== y`.

{'fraction_non_alphanumeric': 0.19109947643979058, 'fraction_numerical': 0.0013089005235602095, 'mean_word_length': 4.346153846153846, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3239706', 'n_tokens_mistral': 540, 'n_tokens_neox': 511, 'n_words': 201}