<commit_before>import tensorflow as tf

from .layer import Layer


class LayerTest(tf.test.TestCase):
    def test_init(self):
        layer = Layer(name='layer')
        self.assertEqual(layer.name, 'layer')
        self.assertEqual(layer.logging, False)
        self.assertEqual(layer.vars, {})

        layer = Layer(logging=True)
        self.assertEqual(layer.name, 'layer_1')
        self.assertEqual(layer.logging, True)

        layer = Layer()
        self.assertEqual(layer.name, 'layer_2')

    def test_call(self):
        layer = Layer(name='layer', logging=True)<commit_msg>revert<commit_after>import tensorflow as tf

from .layer import Layer


class LayerTest(tf.test.TestCase):
    def test_init(self):
        layer = Layer(name='layer')
        self.assertEqual(layer.name, 'layer')
        self.assertEqual(layer.logging, False)
        self.assertEqual(layer.vars, {})

        layer = Layer(logging=True)
        self.assertEqual(layer.name, 'layer_1')
        self.assertEqual(layer.logging, True)

        layer = Layer()
        self.assertEqual(layer.name, 'layer_2')

    def test_call(self):
        layer = Layer(name='layer')
{'fraction_non_alphanumeric': 0.1264069264069264, 'fraction_numerical': 0.003463203463203463, 'mean_word_length': 2.931972789115646, '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': '5603518', 'n_tokens_mistral': 354, 'n_tokens_neox': 334, 'n_words': 66}