<commit_before>from layer import Layer


class Network(object):
    def __init__(self, *layer_sizes):
        self.layer_sizes = layer_sizes
        self.layers = []

        input_size = layer_sizes[0]
        for layer_size in layer_sizes[1:]:
            self.layers.append(Layer(layer_size, input_size))
            input_size = layer_size

    def __repr__(self):
        return '<NeuralNetwork {}:{}>'.format(
            self.layer_sizes[0],
            self.layer_sizes[-1]<commit_msg>Nicer repr method for Network.<commit_after>from layer import Layer


class Network(object):
    def __init__(self, *layer_sizes):
        self.layer_sizes = layer_sizes
        self.layers = []

        input_size = layer_sizes[0]
        for layer_size in layer_sizes[1:]:
            self.layers.append(Layer(layer_size, input_size))
            input_size = layer_size

    def __repr__(self):
        return '<NeuralNetwork {}>'.format(
            ':'.join([str(s) for s in self.layer_sizes])
{'fraction_non_alphanumeric': 0.1099899091826438, 'fraction_numerical': 0.006054490413723511, 'mean_word_length': 2.568345323741007, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2695649', 'n_tokens_mistral': 317, 'n_tokens_neox': 306, 'n_words': 64}