<commit_before>extension Matrix where Trait == Untyped {
    public static func create(n: Int, m: Int, _ entities: [Field]) -> Matrix<Trait, Field> {
        return Matrix(shape: Shape(n: n, m: m), entities: entities)
    }

    public static func zeros(n: Int, m: Int) -> Matrix<Trait, Field> {
        return Matrix(shape: Shape(n: n, m: m), entities: Array(repeating: Field.zero, count: n * m))<commit_msg>Constructor for matrices should not use the current trait as Trait parameter of the result type. It breaks type safety.<commit_after>extension Matrix where Trait == Untyped {
    public static func create(n: Int, m: Int, _ entities: [Field]) -> Matrix<Untyped, Field> {
        return Matrix(shape: Shape(n: n, m: m), entities: entities)
    }

    public static func zeros(n: Int, m: Int) -> Matrix<Untyped, Field> {
        return Matrix(shape: Shape(n: n, m: m), entities: Array(repeating: Field.zero, count: n * m))
{'fraction_non_alphanumeric': 0.1314655172413793, 'fraction_numerical': 0.0, 'mean_word_length': 3.8385416666666665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '7560702', 'n_tokens_mistral': 298, 'n_tokens_neox': 285, 'n_words': 108}