cdb42af52c4dd961e6e6aec3a14cbfee049d8df4,src/dataset.py,Dataset,load_flist,#Dataset#,168
Before Change
// flist: image file path, image directory path, text file flist path
if isinstance(flist, str):
if os.path.isdir(flist):
return list(glob.glob(flist + "/*.jpg")) + list(glob.glob(flist + "/*.png"))
if os.path.isfile(flist):
try:
return np.genfromtxt(flist, dtype=np.str, encoding="utf-8")
After Change
// flist: image file path, image directory path, text file flist path
if isinstance(flist, str):
if os.path.isdir(flist):
flist = list(glob.glob(flist + "/*.jpg")) + list(glob.glob(flist + "/*.png"))
flist.sort()
return flist
if os.path.isfile(flist):
try:
return np.genfromtxt(flist, dtype=np.str, encoding="utf-8")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: knazeri/edge-connect
Commit Name: cdb42af52c4dd961e6e6aec3a14cbfee049d8df4
Time: 2019-01-06
Author: 1197993367@qq.com
File Name: src/dataset.py
Class Name: Dataset
Method Name: load_flist
Project Name: andresriancho/w3af
Commit Name: 1c4b7e5319708cd8b4c24af2e4d3bd1cd17f37a6
Time: 2018-08-08
Author: andres.riancho@gmail.com
File Name: w3af/core/data/parsers/document_parser.py
Class Name: DocumentParser
Method Name: get_references
Project Name: invesalius/invesalius3
Commit Name: b331b9f29062a0e888dafc7a7d19ca8fa53286c1
Time: 2020-03-23
Author: totonixsame@gmail.com
File Name: invesalius/segmentation/brain/utils.py
Class Name:
Method Name: get_plaidml_devices