3d225be19d8cb860732c6da2463a5aefa3b84115,volttron/platform/vip/agent/results.py,,counter,#,54
Before Change
def counter(start=None, minimum=0, maximum=2**64-1):
count = random.randint(minimum, maximum) if start is None else start
while True:
yield count
count += 1
After Change
yield count
count += 1
if count >= maximum:
count = int(datetime.now().timestamp())
class ResultsDictionary(WeakValueDictionary):
def __init__(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: VOLTTRON/volttron
Commit Name: 3d225be19d8cb860732c6da2463a5aefa3b84115
Time: 2020-07-29
Author: shwetha.niddodi@pnnl.gov
File Name: volttron/platform/vip/agent/results.py
Class Name:
Method Name: counter
Project Name: kbardool/keras-frcnn
Commit Name: 47f572a5a63566a6230ec8a83c5705da242333f8
Time: 2017-04-26
Author: yannhenon@gmail.com
File Name: keras_frcnn/pascal_voc_parser.py
Class Name:
Method Name: get_data
Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 755483e22a22c7445293ec19fbc4c0487433a5d4
Time: 2018-04-23
Author: eriklindernoren@gmail.com
File Name: implementations/discogan/datasets.py
Class Name: ImageDataset
Method Name: __getitem__