<commit_before>ent
===

[![Build Status](https://travis-ci.org/jreese/ent.svg?branch=master)](https://travis-ci.org/jreese/ent)


`ent` is a basic framework for generating attribute-based data structures from
dictionary-like data sources:

    > from ent import Ent

    > obj = Ent(foo='foo', bar=None)

    > obj.foo
    u'foo'

    > obj.bar
    None

`ent` can contain arbitrarily-nested hierarchies, as long as every node/leaf
is either a primitive type, or an ent:

    > obj = Ent({
        'foo': 'bar',
        'list': [1, 2, 3, 4],
        'inner': {
            'foo': 'baz',
            'bar': 'bang',
            },
        })

    > obj.foo
    u'bar'

    > obj.list[2]
    3
<commit_msg>Missing ent.ent example<commit_after>ent
===

[![Build Status](https://travis-ci.org/jreese/ent.svg?branch=master)](https://travis-ci.org/jreese/ent)


`ent` is a basic framework for generating attribute-based data structures from
dictionary-like data sources:

    > from ent import Ent

    > obj = Ent(foo='foo', bar=None)

    > obj.foo
    u'foo'

    > obj.bar
    None

`ent` can contain arbitrarily-nested hierarchies, as long as every node/leaf
is either a primitive type, or an ent:

    > obj = Ent({
        'foo': 'bar',
        'list': [1, 2, 3, 4],
        'inner': {
            'foo': 'baz',
            'bar': 'bang',
            },
        'ent': Ent(foo='bar'),
        })

    > obj.foo
    u'bar'

    > obj.list[2]
    3

{'fraction_non_alphanumeric': 0.15480304077401522, 'fraction_numerical': 0.0082930200414651, 'mean_word_length': 2.175438596491228, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '4245691', 'n_tokens_mistral': 518, 'n_tokens_neox': 489, 'n_words': 132}