c9e82bb1ab323d4a79793e47dbdd9204302e36af,mlxtend/file_io/find.py,,find_filegroups,#,68
Before Change
pass
if validity_check:
num = sorted([(len(v),k) for k,v in groups.items()])
for i in num[1:]:
if i[0] < num[0][0]:
print("Warning, key "%s" has less values than "key" %s." % (i[1], num[0][1]))
groups = {}
After Change
if validity_check:
lens = [len(groups[k]) for k in groups.keys()]
if len(set(lens)) > 1:
raise ValueError("Warning, some keys have more/less values than others. Set validity_check=False to ignore this warning.")
return groups
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: rasbt/mlxtend
Commit Name: c9e82bb1ab323d4a79793e47dbdd9204302e36af
Time: 2015-04-06
Author: se.raschka@me.com
File Name: mlxtend/file_io/find.py
Class Name:
Method Name: find_filegroups
Project Name: pgmpy/pgmpy
Commit Name: 73dcacffa7dee910a9478cd7d783d91ef84dc987
Time: 2013-09-21
Author: snigam3112@gmail.com
File Name: BayesianModel.py
Class Name: BayesianModel
Method Name: add_nodes
Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/util.py
Class Name:
Method Name: get_image_paths