e5e7fb2f70cc8826fd624d1a3bc645fee3234d92,bootstrap/datasets/transforms.py,PadTensors,pad_tensors,#PadTensors#,47
Before Change
if isinstance(batch, collections.Mapping):
out = {}
for key, value in batch.items():
if key not in self.avoid_keys :
out[key] = self.pad_tensors(value)
else:
out[key] = value
After Change
if isinstance(batch, collections.Mapping):
out = {}
for key, value in batch.items():
if (key in self.use_keys) or \
(len(self.use_keys) == 0 and key not in self.avoid_keys) :
out[key] = self.pad_tensors(value)
else:
out[key] = value
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: Cadene/bootstrap.pytorch
Commit Name: e5e7fb2f70cc8826fd624d1a3bc645fee3234d92
Time: 2018-04-24
Author: remi.cadene@icloud.com
File Name: bootstrap/datasets/transforms.py
Class Name: PadTensors
Method Name: pad_tensors
Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: bb7a59f5fc19bc6a967a9a9cfc40e8bd08086aaf
Time: 2018-04-26
Author: ricsinaruto@hotmail.com
File Name: t2t_csaky/data_filtering/filter_problem.py
Class Name: FilterProblem
Method Name: filtering
Project Name: Cadene/bootstrap.pytorch
Commit Name: 0a3c56b1f58d95e0c2b1d417d5960d10f5c84c0c
Time: 2018-04-24
Author: remi.cadene@icloud.com
File Name: bootstrap/datasets/transforms.py
Class Name: CatTensors
Method Name: cat_tensors