code: def get_dates_file(path):
      
      with open(path) as f:
          dates = f.readlines()
      return [(convert_time_string(date_string.split(" ")[0]), float(date_string.split(" ")[1]))
              for date_string in dates]
docs: parse dates file of dates and probability of choosing