<commit_before># ember-cli-array-pager

Ember CLI array pager addon.

`ember-cli-array-pager` exposes an [Ember][ember] [ArrayProxy][proxy] subclass which proxies a slice
of a given content array. Its values will update when the original array is modified. Useful for
creating pagination components. Extends [`ember-cli-array-slice`][slice];

## Example

```js
import ArrayPager from 'array-pager';

var paged = ArrayPager.create({
	content: [3, 1, 4, 1, 5, 9],
	limit: 3
});

console.log(paged.toArray()); // [3, 1, 4];
paged.incrementPage();
console.log(paged.toArray()); // [1, 5, 9];
```

## Options

**`content`**: Ember.Array (optional, default = `[]`)

The content array. Must be an object that implements `Ember.Array` and/or `Ember.MutableArray`.
See [`Ember.ArrayProxy#content`][content].

**`offset`**: Number (optional, default = `0`)

Index where pager begins.

**`limit`**: Number (optional, default = `Infinity`)

Maximum number of elements to hold in the array. By default, holds all elements after `offset`.

## Methods

**`incrementPage([pages = 1])`**: `this`

Increase the current offset by a number of pages. When not given any arguments this will advance by
a single page.

**`decrementPage([pages = 1])`**: `this`

Decrease the current offset by a number of pages. When not given any arguments this will regress by
a single page.
<commit_msg>Renamed "options" section to "properties"<commit_after># ember-cli-array-pager

Ember CLI array pager addon.

`ember-cli-array-pager` exposes an [Ember][ember] [ArrayProxy][proxy] subclass which proxies a slice
of a given content array. Its values will update when the original array is modified. Useful for
creating pagination components. Extends [`ember-cli-array-slice`][slice];

## Example

```js
import ArrayPager from 'array-pager';

var paged = ArrayPager.create({
	content: [3, 1, 4, 1, 5, 9],
	limit: 3
});

console.log(paged.toArray()); // [3, 1, 4];
paged.incrementPage();
console.log(paged.toArray()); // [1, 5, 9];
```

## Properties

**`content`**: Ember.Array (optional, default = `[]`)

The content array. Must be an object that implements `Ember.Array` and/or `Ember.MutableArray`.
See [`Ember.ArrayProxy#content`][content].

**`offset`**: Number (optional, default = `0`)

Index where pager begins.

**`limit`**: Number (optional, default = `Infinity`)

Maximum number of elements to hold in the array. By default, holds all elements after `offset`.

## Methods

**`incrementPage([pages = 1])`**: `this`

Increase the current offset by a number of pages. When not given any arguments this will advance by
a single page.

**`decrementPage([pages = 1])`**: `this`

Decrease the current offset by a number of pages. When not given any arguments this will regress by
a single page.

{'fraction_non_alphanumeric': 0.1441506700470844, 'fraction_numerical': 0.011590003621876132, 'mean_word_length': 4.766179540709812, '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': '5668497', 'n_tokens_mistral': 917, 'n_tokens_neox': 871, 'n_words': 332}