<commit_before>#What Is It?
After.js is an implementation of [Promises/A+](https://github.com/promises-aplus/promises-spec) for JavaScript.

Oversimplified, a "promise" is an object that a function can return when it needs to say "I will try to produce a result for you, and if I can't, I'll tell you why. Either way, it's not ready at this moment. How should I contact you when it is?".

The practical result of this is that when you receive or produce a promise, you can chain subsequent operations after it, promise-producing or otherwise. They will all be executed asynchronously, and in the proper order, without nesting callbacks. And all this can be accomplished using code that reads from top to bottom in the order that it will be executed. At least as much so as any completely synchronous code does. :smile:

#How Does It Work?

*All code samples in this section will assume the After.js namespace object has been assigned to a variable called ```After```.*
<commit_msg>Fixed headers.<commit_after># What Is It?
After.js is an implementation of [Promises/A+](https://github.com/promises-aplus/promises-spec) for JavaScript.

Oversimplified, a "promise" is an object that a function can return when it needs to say "I will try to produce a result for you, and if I can't, I'll tell you why. Either way, it's not ready at this moment. How should I contact you when it is?".

The practical result of this is that when you receive or produce a promise, you can chain subsequent operations after it, promise-producing or otherwise. They will all be executed asynchronously, and in the proper order, without nesting callbacks. And all this can be accomplished using code that reads from top to bottom in the order that it will be executed. At least as much so as any completely synchronous code does. :smile:

# How Does It Work?

*All code samples in this section will assume the After.js namespace object has been assigned to a variable called ```After```.*

{'fraction_non_alphanumeric': 0.06055979643765903, 'fraction_numerical': 0.0, 'mean_word_length': 4.3863013698630136, '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': '4364253', 'n_tokens_mistral': 506, 'n_tokens_neox': 489, 'n_words': 314}