<commit_before># promise.lua

[![Circle CI](https://img.shields.io/circleci/project/Billiam/promise.lua.svg)](https://circleci.com/gh/Billiam/promise.lua/tree/master)
[![Coverage Status](https://img.shields.io/coveralls/Billiam/promise.lua.svg)](https://coveralls.io/r/Billiam/promise.lua)

## Documentation

_Soon_

## Differences from the Promises/A+ Spec

* [1.2](https://promisesaplus.com/#point-7) `then` is a reserved word in Lua. `next` is used instead in this library.
* [1.3](https://promisesaplus.com/#point-8) Valid value types
  * Promises cannot be resolved with null (`nil`). Lua does not distinguish between  
```lua
function()
    return nil
end
```
and  
```lua
function()
    return
end
```
  * Lua does not have an `undefined` type.
* [2.2.5](https://promisesaplus.com/#point-35) Lua method calls do not have a `this` equivalent. The `self` syntactic sugar for `self` is determined by method arguments.
* [2.3.1](https://promisesaplus.com/#point-48) Lua does not have an error type. Specifications calling for `TypeError` will receive a string message beginning with `TypeError:`
* [2.3.3.3](https://promisesaplus.com/#point-56) Lua method calls do not have a `this` equivalent. `next` will be called with the first argument of `x` instead.

### Related projects:

* [promise](https://github.com/Olivine-Labs/promise)
* [lua_promise](https://github.com/friesencr/lua_promise)
* [AndThen](https://github.com/ppissanetzky/AndThen)
* [lua-promise](https://github.com/dmccuskey/lua-promise)
* [next.lua](https://github.com/pmachowski/next-lua)

Not seeing a library here? Send a pull request!<commit_msg>Fixing code indentation in readme list<commit_after># promise.lua

[![Circle CI](https://img.shields.io/circleci/project/Billiam/promise.lua.svg)](https://circleci.com/gh/Billiam/promise.lua/tree/master)
[![Coverage Status](https://img.shields.io/coveralls/Billiam/promise.lua.svg)](https://coveralls.io/r/Billiam/promise.lua)

## Documentation

_Soon_

## Differences from the Promises/A+ Spec

* [1.2](https://promisesaplus.com/#point-7) `then` is a reserved word in Lua. `next` is used instead in this library.
* [1.3](https://promisesaplus.com/#point-8) Valid value types
  * Promises cannot be resolved with null (`nil`). Lua does not distinguish between
  
    ```lua
    function()
        return nil
    end
    ```
    
    and  
    
    ```lua
    function()
        return
    end
    ```
    
  * Lua does not have an `undefined` type.
* [2.2.5](https://promisesaplus.com/#point-35) Lua method calls do not have a `this` equivalent. The `self` syntactic sugar for `self` is determined by method arguments.
* [2.3.1](https://promisesaplus.com/#point-48) Lua does not have an error type. Specifications calling for `TypeError` will receive a string message beginning with `TypeError:`
* [2.3.3.3](https://promisesaplus.com/#point-56) Lua method calls do not have a `this` equivalent. `next` will be called with the first argument of `x` instead.

### Related projects:

* [promise](https://github.com/Olivine-Labs/promise)
* [lua_promise](https://github.com/friesencr/lua_promise)
* [AndThen](https://github.com/ppissanetzky/AndThen)
* [lua-promise](https://github.com/dmccuskey/lua-promise)
* [next.lua](https://github.com/pmachowski/next-lua)

Not seeing a library here? Send a pull request!
{'fraction_non_alphanumeric': 0.15467950647005718, 'fraction_numerical': 0.013241047246464039, 'mean_word_length': 4.161490683229814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 28, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5946594', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1132, 'n_words': 284}