0459261c388bec72937e0268c4316b85279d0bac,allennlp/semparse/contexts/atis_tables.py,,get_approximate_times,#Any#,137
Before Change
approximate_times = []
for time in times:
approximate_times.append((time + AROUND_RANGE) % HOURS_IN_DAY)
// The number system is not base 10 here, there are 60 minutes
// in an hour, so we can"t simply add time - AROUND_RANGE.
approximate_times.append((time - HOUR_TO_TWENTY_FOUR + AROUND_RANGE) % HOURS_IN_DAY)
return approximate_times
After Change
approximate_time = datetime.now()
approximate_time = approximate_time.replace(hour=hour, minute=minute)
start_time_range = approximate_time - timedelta(minutes=30)
end_time_range = approximate_time + timedelta(minutes=30)
approximate_times.extend([start_time_range.hour * HOUR_TO_TWENTY_FOUR + start_time_range.minute,
end_time_range.hour * HOUR_TO_TWENTY_FOUR + end_time_range.minute])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: allenai/allennlp
Commit Name: 0459261c388bec72937e0268c4316b85279d0bac
Time: 2018-09-24
Author: kl2806@columbia.edu
File Name: allennlp/semparse/contexts/atis_tables.py
Class Name:
Method Name: get_approximate_times
Project Name: pythonstock/stock
Commit Name: 93fc87ef4a966d6667a5f9dc6826555e994988c8
Time: 2017-12-07
Author: yhy
File Name: web/dataIndicatorsHandler.py
Class Name: GetDataIndicatorsHandler
Method Name: get
Project Name: home-assistant/home-assistant
Commit Name: c8cce7607c5c6482f42a6ed0e91d209c9f56953e
Time: 2020-05-09
Author: guillempages@users.noreply.github.com
File Name: homeassistant/components/bluetooth_le_tracker/device_tracker.py
Class Name:
Method Name: setup_scanner