62f66421474f85d8ee0eb14db9bc3ff7314497ad,lexos/processors/analyze/topword.py,,analyze_group_to_group,#,177
Before Change
// init
// group list is the word list of each group (word to word count within the
// whole group)
group_word_lists = []
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)
// the total number of word count in words in the corpus
total_word_count = sum(group_word_count)
// the number of unique words
After Change
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.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: Esri/raster-functions
Commit Name: e698c1f1bbab1691152743a4516cf574c406e391
Time: 2015-02-11
Author: jwasilkowski@esri.com
File Name: functions/LinearSpectralUnmixing.py
Class Name: LinearSpectralUnmixing
Method Name: updatePixels
Project Name: danforthcenter/plantcv
Commit Name: 9dbe3f07cbf9a3d211bad1f7fc48fb7fab4cefcc
Time: 2019-08-22
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/morphology/segment_insertion_angle.py
Class Name:
Method Name: segment_insertion_angle