<commit_before>[![Build Status](https://secure.travis-ci.org/rkatic/p.png)](http://travis-ci.org/rkatic/p)

#P

A simple Promises/A+ library.

- Implements a subset of the the [Q](https://github.com/kriskowal/q) API.
- Passing the [Promises/A+ Compliance Test Suite](https://github.com/promises-aplus/promises-tests).
- Small.
- Fast.

##API

P implements a subset of the [Q](https://github.com/kriskowal/q) API with few **differences**.

- `P(val)`
- `P.defer()`
- `P.all(promises)` (array **or object** of promises)
- **`P.allSettled(promises)`** (array **or object** of promises)
- `P.allResolved(promises)` **DEPRECATED** in favor of **`P.allSettled`**.
- `P.onerror`
- `P.nextTick(callback)`
- `deferred.promise`
- `deferred.resolve(value)`
- `deferred.fulfill(value)`
- `deferred.reject(reason)`
- `promise.then(onFulfilled, onRejected)`
- `promise.done(onFulfilled, onRejected)`<commit_msg>Bold all the phrase.<commit_after>[![Build Status](https://secure.travis-ci.org/rkatic/p.png)](http://travis-ci.org/rkatic/p)

#P

A simple Promises/A+ library.

- Implements a subset of the the [Q](https://github.com/kriskowal/q) API.
- Passing the [Promises/A+ Compliance Test Suite](https://github.com/promises-aplus/promises-tests).
- Small.
- Fast.

##API

P implements a subset of the [Q](https://github.com/kriskowal/q) API with few **differences**.

- `P(val)`
- `P.defer()`
- `P.all(promises)` (array **or object** of promises)
- **`P.allSettled(promises)`** (array **or object** of promises)
- `P.allResolved(promises)` **DEPRECATED in favor of `P.allSettled`**.
- `P.onerror`
- `P.nextTick(callback)`
- `deferred.promise`
- `deferred.resolve(value)`
- `deferred.fulfill(value)`
- `deferred.reject(reason)`
- `promise.then(onFulfilled, onRejected)`
- `promise.done(onFulfilled, onRejected)`
{'fraction_non_alphanumeric': 0.20311630495269895, 'fraction_numerical': 0.0, 'mean_word_length': 4.636363636363637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '7499050', 'n_tokens_mistral': 731, 'n_tokens_neox': 714, 'n_words': 132}