62f66421474f85d8ee0eb14db9bc3ff7314497ad,lexos/processors/analyze/topword.py,,analyze_group_to_group,#,177

Before Change


    group_word_count = []  // the total word count of each group
    for chunk in group_para_lists:
        group_word_lists.append(merge_list(chunk))
        group_word_count.append(sum(group_word_lists[-1].values()))
    // the word list of the corpus (all the word maps to the sum of all the
    // word count)
    corpus_list = merge_list(group_word_lists)

After Change


    // initialize the value to return
    all_results = {}  // the value to return
    group_lists = []  // the total word count of each group
    for _, value in enumerate(group_values):
        group_lists.append(np.sum(value, axis=0))
    num_group = len(group_lists)  // number of groups

    // comparison map, in here is a list of tuple.
    // There are two elements in the tuple, each one is a index of groups
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: WheatonCS/Lexos
Commit Name: 62f66421474f85d8ee0eb14db9bc3ff7314497ad
Time: 2017-08-02
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/topword.py
Class Name:
Method Name: analyze_group_to_group


Project Name: janfreyberg/superintendent
Commit Name: cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8
Time: 2018-05-31
Author: janfreyberg@users.noreply.github.com
File Name: superintendent/semisupervisor.py
Class Name: SemiSupervisor
Method Name: annotate


Project Name: pgmpy/pgmpy
Commit Name: b384268df66742de0bc92a13db162b8409dda730
Time: 2019-04-19
Author: ankurankan@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BIFReader
Method Name: get_values