<commit_before># Folio

`Folio` is a library for pagination. It's meant to be nearly compatible
with `WillPaginate`, but with broader -- yet more well-defined --
semantics to allow for sources whose page identifiers are non-ordinal
(i.e. a page identifier of `3` does not necessarily indicate the third
page).

## Installation

Add this line to your application's Gemfile:

    gem 'folio-pagination'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install folio-pagination

## Usage

The core `Folio` interface is defined by two mixins. Mixing `Folio` into
a source of items creates a "folio" and provides pagination on that
folio. Mixing `Folio::Page` into a subset of items from a folio creates
a "page" with additional properties relating it to the folio and the
other pages in the folio.
<commit_msg>add travis build status to README.md<commit_after># Folio

`Folio` is a library for pagination. It's meant to be nearly compatible
with `WillPaginate`, but with broader -- yet more well-defined --
semantics to allow for sources whose page identifiers are non-ordinal
(i.e. a page identifier of `3` does not necessarily indicate the third
page).

[![Build Status](https://travis-ci.org/lukfugl/folio.png?branch=master)](https://travis-ci.org/lukfugl/folio)

## Installation

Add this line to your application's Gemfile:

    gem 'folio-pagination'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install folio-pagination

## Usage

The core `Folio` interface is defined by two mixins. Mixing `Folio` into
a source of items creates a "folio" and provides pagination on that
folio. Mixing `Folio::Page` into a subset of items from a folio creates
a "page" with additional properties relating it to the folio and the
other pages in the folio.

{'fraction_non_alphanumeric': 0.07421875, 'fraction_numerical': 0.0011160714285714285, 'mean_word_length': 4.1082621082621085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4053983', 'n_tokens_mistral': 538, 'n_tokens_neox': 524, 'n_words': 249}