<commit_before>from collections import namedtuple
import datetime
import unittest
import uuid

import iso8601
from perfidy import frozendict

from edn import (
    dumps,
    loads,
)
from edn._ast import (
    Character,
    Keyword,
    List,
    Map,
    Set,
    String,
    Symbol,
    TaggedValue,
    Vector,
)
from edn._extended import (
    decode,
    encode,
    INST,
    UUID,
)


class DecoderTests(unittest.TestCase):

    def test_bool(self):
        self.assertEqual(True, decode(True))
        self.assertEqual(False, decode(False))

    def test_int(self):
        self.assertEqual(42, decode(42))

    def test_string(self):
        self.assertEqual("foo", decode(String("foo")))

    def test_character(self):
        self.assertEqual('f', decode(Character('f')))

    def test_none(self):
        self.assertEqual(None, decode(None))

    def test_vector(self):
        self.assertEqual((1, 2, 3), decode(Vector((1, 2, 3))))
<commit_msg>Clarify exports a little<commit_after>from collections import namedtuple
import datetime
import unittest
import uuid

import iso8601
from perfidy import frozendict

from edn import (
    Character,
    INST,
    Keyword,
    List,
    Map,
    Set,
    String,
    Symbol,
    TaggedValue,
    UUID,
    Vector,
    dumps,
    loads,
)
from edn._extended import (
    decode,
    encode,
)


class DecoderTests(unittest.TestCase):

    def test_bool(self):
        self.assertEqual(True, decode(True))
        self.assertEqual(False, decode(False))

    def test_int(self):
        self.assertEqual(42, decode(42))

    def test_string(self):
        self.assertEqual("foo", decode(String("foo")))

    def test_character(self):
        self.assertEqual('f', decode(Character('f')))

    def test_none(self):
        self.assertEqual(None, decode(None))

    def test_vector(self):
        self.assertEqual((1, 2, 3), decode(Vector((1, 2, 3))))

{'fraction_non_alphanumeric': 0.11607142857142858, 'fraction_numerical': 0.014705882352941176, 'mean_word_length': 3.018987341772152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6581781', 'n_tokens_mistral': 630, 'n_tokens_neox': 597, 'n_words': 144}