<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def sum_matrix(n):
    """ Returns a sum of all elements in a
    given matrix """
    p = [sum(x) for x in n]
    print (len(p))
    return sum(p)


if __name__ == '__main__':
    print (sum_matrix([[0, 3, 0], [0, 4, 0], [0, 13, 0]]))<commit_msg>Make it look more pythonic<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def sum_matrix(n):
    """ Returns a sum of all elements in a
    given matrix """
    
    return sum([sum(x) for x in n])


if __name__ == '__main__':
    print (sum_matrix([[0, 3, 0], [0, 4, 0], [0, 13, 0]]))
{'fraction_non_alphanumeric': 0.19476268412438624, 'fraction_numerical': 0.03927986906710311, 'mean_word_length': 2.849056603773585, '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': '7129829', 'n_tokens_mistral': 257, 'n_tokens_neox': 237, 'n_words': 77}