d8cb4f0bb3d16ffe913457485eeb7aa276253a06,lexos/processors/analyze/topword.py,,analyze_para_to_group,#,125
Before 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
After Change
all_results = {}
// find the total word count of each group
group_lists = [np.sum(value, axis=0)
for _, value in enumerate(group_values)]
// find number of groups
num_group = len(group_lists)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: WheatonCS/Lexos
Commit Name: d8cb4f0bb3d16ffe913457485eeb7aa276253a06
Time: 2017-08-03
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/topword.py
Class Name:
Method Name: analyze_para_to_group
Project Name: WheatonCS/Lexos
Commit Name: d8cb4f0bb3d16ffe913457485eeb7aa276253a06
Time: 2017-08-03
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/topword.py
Class Name:
Method Name: analyze_group_to_group
Project Name: WheatonCS/Lexos
Commit Name: ba5ce0dcacefae377a199b2b6115263528fa8bad
Time: 2017-08-07
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/topword.py
Class Name:
Method Name: analyze_all_to_para