8a9344ead3be54cf1d427b30888e0e84ffe4d20a,hypertools/tools/text2mat.py,,text2mat,#,11

Before Change



    // text models
    texts = {
        "LatentDirichletAllocation" : LatentDirichletAllocation,
        "NMF" : NMF
    }

After Change


        data = [data]

    // get data types
    dtypes = list(map(check_dtype, data))

    // if all data are vectorizer objects and have the same vocab, skip vectorizing
    if all([dtype is "vecobj" for dtype in dtypes]):
        if all_vocabs_same(data):
            vectorizer=None
            warnings.warn("Skipping vectorization step. Vectorizer objects "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ContextLab/hypertools
Commit Name: 8a9344ead3be54cf1d427b30888e0e84ffe4d20a
Time: 2018-01-22
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/text2mat.py
Class Name:
Method Name: text2mat


Project Name: shaypal5/pdpipe
Commit Name: 99095d5412483ec623278bdb1a0c9e24b18bfc85
Time: 2017-03-16
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: ColRename
Method Name: __init__


Project Name: shaypal5/pdpipe
Commit Name: 99095d5412483ec623278bdb1a0c9e24b18bfc85
Time: 2017-03-16
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: Bin
Method Name: __init__