447e3500868def45ec6750cfff2e6b7e57634da9,src/textacy/io/matrix.py,,read_sparse_matrix,#,18

Before Change


            shape=npz_file["shape"],
        )
    else:
        raise ValueError(
            "kind="{}" is invalid; valid values are {}".format(kind, ["csc", "csr"])
        )


def write_sparse_matrix(
    data: Union[sp.csc_matrix, sp.csr_matrix],

After Change


            shape=npz_file["shape"],
        )
    else:
        raise ValueError(errors.value_invalid_msg("kind", kind, {"csc", "csr"}))


def write_sparse_matrix(
    data: Union[sp.csc_matrix, sp.csr_matrix],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 447e3500868def45ec6750cfff2e6b7e57634da9
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/io/matrix.py
Class Name:
Method Name: read_sparse_matrix


Project Name: chartbeat-labs/textacy
Commit Name: c369dea462f62b61a586c69953d99daea454a3e3
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/spacier/doc_extensions.py
Class Name:
Method Name: to_bag_of_terms


Project Name: chartbeat-labs/textacy
Commit Name: c369dea462f62b61a586c69953d99daea454a3e3
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/spacier/doc_extensions.py
Class Name:
Method Name: to_bag_of_words