<commit_before>import json
from unittest import TestCase

from regparser.tree import struct

class NodeTest(TestCase):

    def test_depth(self):
        label = ["111", "1", "a", "p1"]
        self.assertEqual(1, struct.Node("x", label=label[:1]).depth())
        self.assertEqual(3, struct.Node("x", label=label[:2]).depth())
        self.assertEqual(4, struct.Node("x", label=label[:3]).depth())<commit_msg>… and another blank line.<commit_after>import json
from unittest import TestCase

from regparser.tree import struct


class NodeTest(TestCase):

    def test_depth(self):
        label = ["111", "1", "a", "p1"]
        self.assertEqual(1, struct.Node("x", label=label[:1]).depth())
        self.assertEqual(3, struct.Node("x", label=label[:2]).depth())
        self.assertEqual(4, struct.Node("x", label=label[:3]).depth())
{'fraction_non_alphanumeric': 0.18247298919567828, 'fraction_numerical': 0.026410564225690276, 'mean_word_length': 4.180124223602484, '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': '7290218', 'n_tokens_mistral': 264, 'n_tokens_neox': 256, 'n_words': 59}