<commit_before># Fae

[![Gem Version](https://badge.fury.io/rb/fae.svg)](http://badge.fury.io/rb/fae)

This is a small Ruby gem that evaluates a Finite Automata State Diagram for validity.

## Installation

Install the gem by running the following command:

```bash
gem install fae
```

## Usage

The gem comes with an executable, `fae`, and can be run in two different modes, interactive or file.

### File Mode

You can load a finite automata state diagram from a file, by creating it in the following format:

```yaml
- description: the language with an odd number of a's
  # Comma-separated list of letters in your language
  language: a
  states:<commit_msg>Add dependency information to README.md.<commit_after># Fae

[![Gem Version](https://badge.fury.io/rb/fae.svg)](http://badge.fury.io/rb/fae)

This is a small Ruby gem that evaluates a Finite Automata State Diagram for validity.

## Dependencies

* Ruby 1.9.3 or greater

## Installation

Install the gem by running the following command:

```bash
gem install fae
```

## Usage

The gem comes with an executable, `fae`, and can be run in two different modes, interactive or file.

### File Mode

You can load a finite automata state diagram from a file, by creating it in the following format:

```yaml
- description: the language with an odd number of a's
  # Comma-separated list of letters in your language
  language: a
  states:
{'fraction_non_alphanumeric': 0.09247311827956989, 'fraction_numerical': 0.002150537634408602, 'mean_word_length': 4.057971014492754, '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': '1477411', 'n_tokens_mistral': 440, 'n_tokens_neox': 415, 'n_words': 190}