<commit_before>Bam
=====

*B.A.M*

Introduction
------------

Bam is a library intended to aid in the development of webapps. It uses Backbone as a base for its classes, adding methods and classes for common tasks.

There are two core ideas to Bam; firstly that views for a webapp can be arranged in a tree-like data structure and secondly that views are finite state machines.

API
---

Each Model, Collection and View inherits everything from Backbone's Model, Collection and View.

#### Bam.View


#### Bam.Model



#### Bam.Collection

######`before(model)`
Gets the model before the model `model` in the collection. Ideally used in a collection with a comparator so there is some kind of sort order.

Returns null if the model doesn't exist in the collection or if the model is the first in the collection.

######`after(model)`
Same as `before(model)` but looks for the model afterwards.

Returns null if the model doesn't exist in the collection or if the model is the last in the collection.

Usage
-----

#### Adding to the page

#### Examples

API
---
<commit_msg>Formatting AB test.<commit_after>Bam
=====

*B.A.M*

Introduction
------------

Bam is a library intended to aid in the development of webapps. It uses Backbone as a base for its classes, adding methods and classes for common tasks.

There are two core ideas to Bam; firstly that views for a webapp can be arranged in a tree-like data structure and secondly that views are finite state machines.

API
---

Each Model, Collection and View inherits everything from Backbone's Model, Collection and View.

#### Bam.View


#### Bam.Model



#### Bam.Collection

######before(model)
Gets the model before the model `model` in the collection. Ideally used in a collection with a comparator so there is some kind of sort order.

Returns `null` if the model doesn't exist in the collection or if the model is the first in the collection.

######`after(model)`
Same as `before(model)` but looks for the model afterwards.

Returns `null` if the model doesn't exist in the collection or if the model is the last in the collection.

Usage
-----

#### Adding to the page

#### Examples

API
---

{'fraction_non_alphanumeric': 0.0950834879406308, 'fraction_numerical': 0.0, 'mean_word_length': 3.668831168831169, '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': '5462924', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 324}