<commit_before># [![Microcosm](http://code.viget.com/microcosm/images/microcosm.svg)](http://code.viget.com/microcosm/)

[![CircleCI](https://img.shields.io/circleci/project/vigetlabs/microcosm.svg?maxAge=2592000)](https://circleci.com/gh/vigetlabs/microcosm)
[![Coveralls](https://img.shields.io/coveralls/vigetlabs/microcosm.svg?maxAge=2592000)](https://coveralls.io/github/vigetlabs/microcosm)
[![npm](https://img.shields.io/npm/v/microcosm.svg?maxAge=2592000)](https://www.npmjs.com/package/microcosm)
[![npm](https://img.shields.io/npm/dm/microcosm.svg?maxAge=2592000)](https://www.npmjs.com/package/microcosm)

Microcosm is [Flux](https://facebook.github.io/flux/) with first-class
actions and state sandboxing.

The source of truth in Microcosm is a historical record of actions. As
actions move through their lifecycle, Microcosm reconciles changes to
actions in the order they were created. This makes optimistic updates,
cancellation, and loading states much simpler. They self clean.

This provides strong separation between actions and state. Microcosms
can ["fork"](#forks-global-state-local-concerns) to accommodate
specific use cases. Keep global state global, while easily supporting
pagination, filtering, and other secondary data processing.

1. **Batteries included**. Just install `microcosm`. Plugins and middleware
   should not be required to immediately be productive.
2. **Easy to use**. Less boilerplate. More expressive. The Microcosm
   interface is easy to use, easy to understand, and easy to maintain.
3. **Powerful:** Microcosm's transactional state management, action
   statuses, and state sandboxing should provide exceptional tools for
   building applications.

## Documentation

Comprehensive documentation can be found in the [docs section of this repo](docs).

If you'd rather look at working code, head over to
the [example apps](examples) or checkout out the [quickstart guide](https://github.com/vigetlabs/microcosm-quickstart).

### Installation

```
npm install --save microcosm
```

## Overview<commit_msg>Tweak second paragraph of intro<commit_after># [![Microcosm](http://code.viget.com/microcosm/images/microcosm.svg)](http://code.viget.com/microcosm/)

[![CircleCI](https://img.shields.io/circleci/project/vigetlabs/microcosm.svg?maxAge=2592000)](https://circleci.com/gh/vigetlabs/microcosm)
[![Coveralls](https://img.shields.io/coveralls/vigetlabs/microcosm.svg?maxAge=2592000)](https://coveralls.io/github/vigetlabs/microcosm)
[![npm](https://img.shields.io/npm/v/microcosm.svg?maxAge=2592000)](https://www.npmjs.com/package/microcosm)
[![npm](https://img.shields.io/npm/dm/microcosm.svg?maxAge=2592000)](https://www.npmjs.com/package/microcosm)

Microcosm is [Flux](https://facebook.github.io/flux/) with first-class
actions and state sandboxing.

The source of truth in Microcosm is a historical record of actions. As
actions move through their lifecycle, Microcosm reconciles changes to
actions in the order they were created. This makes optimistic updates,
cancellation, and loading states much simpler. They self clean.

It also provides strong separation between actions and
state. Microcosms can ["fork"](#forks-global-state-local-concerns) to
accommodate specific use cases. Keep global state global, while easily
supporting pagination, filtering, and other secondary data processing.

1. **Batteries included**. Just install `microcosm`. Plugins and middleware
   should not be required to immediately be productive.
2. **Easy to use**. Less boilerplate. More expressive. The Microcosm
   interface is easy to use, easy to understand, and easy to maintain.
3. **Powerful:** Microcosm's transactional state management, action
   statuses, and state sandboxing should provide exceptional tools for
   building applications.

## Documentation

Comprehensive documentation can be found in the [docs section of this repo](docs).

If you'd rather look at working code, head over to
the [example apps](examples) or checkout out the [quickstart guide](https://github.com/vigetlabs/microcosm-quickstart).

### Installation

```
npm install --save microcosm
```

## Overview
{'fraction_non_alphanumeric': 0.1183030303030303, 'fraction_numerical': 0.015030303030303031, 'mean_word_length': 5.386996904024768, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 4, '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': '2510835', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1236, 'n_words': 368}