<commit_before>
Arthas
======
[![Build Status](https://travis-ci.org/fengcen/arthas.svg?branch=master)](https://travis-ci.org/fengcen/arthas)
[![status](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)
[![docs](https://docs.rs/arthas/badge.svg)](https://docs.rs/arthas)

Arthas is an in-memory structure database.

## [Document](https://docs.rs/arthas)

## Status
Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Use at your own risk.

## Prerequisites
Arthas required Rust 1.15 or above.

## Upgrade to arthas 0.3 and arthas_derive
1. Rename all your data files to only contain struct name. For example, rename "model.user.User" to "User".
2. Replace attribute `#[arthas]` to `#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, Arthas)]`
3. If you use attribute value like `#[arthas(one)]`, replace with the attribute `#[arthas(is_one)]`
4. If you use the rename attribute like `#[arthas_rename("from = to")]`, replace with the attribute `#[arthas(rename = "from = to")]`
5. If you use both `#[arthas(one)]` and `#[arthas_rename("from = to")]`, replace with `#[arthas(is_one, rename = "from = to")]`<commit_msg>update readme.<commit_after>
Arthas
======
[![Build Status](https://travis-ci.org/fengcen/arthas.svg?branch=master)](https://travis-ci.org/fengcen/arthas)
[![status](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)
[![docs](https://docs.rs/arthas/badge.svg)](https://docs.rs/arthas)

Arthas is an in-memory structure database.

## [Document](https://docs.rs/arthas)

## Prerequisites
Arthas required Rust 1.15 or above.

## Upgrade to arthas 0.3 and arthas_derive
1. Rename all your data files to only contains struct name. For example, rename "model.user.User" to "User".
2. Replace attribute `#[arthas]` with `#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, Arthas)]`
3. If you use attribute value like `#[arthas(one)]`, replace with the attribute `#[arthas(is_one)]`
4. If you use the rename attribute like `#[arthas_rename("from = to")]`, replace with the attribute `#[arthas(rename = "from = to")]`
5. If you use both `#[arthas(one)]` and `#[arthas_rename("from = to")]`, replace with `#[arthas(is_one, rename = "from = to")]`
{'fraction_non_alphanumeric': 0.17634315424610053, 'fraction_numerical': 0.008665511265164644, 'mean_word_length': 5.308743169398907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '1477281', 'n_tokens_mistral': 807, 'n_tokens_neox': 807, 'n_words': 225}