<commit_before><commit_msg>Create FromRuleCompute test file<commit_after>#!/usr/bin/env python
"""
:Author <NAME>
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy

"""

from unittest import main, TestCase
from grammpy import Rule


class Single(Rule):
    rule = ([0], [1])


class TwoRight(Rule):
    rule = ([0], [1, 2])


class ThreeLeft(Rule):
    rule = ([0, 1, 'a'], [2])


class Multiple(Rule):
    rule = ([0, 1, 2], [3, 4])


class FromRuleComputeTest(TestCase):
    pass


if __name__ == '__main__':
    main()

{'fraction_non_alphanumeric': 0.166351606805293, 'fraction_numerical': 0.04914933837429111, 'mean_word_length': 3.9074074074074074, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '4139942', 'n_tokens_mistral': 221, 'n_tokens_neox': 195, 'n_words': 57}