<commit_before>import user

VENUE = 257163


def GetUserCheckins(user_obj, limit=50, max_id=None):
  request = {'limit': limit}
  if max_id is not None:
    request['max_id'] = max_id
  return user_obj.GetUserCheckins(request)


def IsPonyCheckin(checkin):
  if 'venue' not in checkin:
    return False
  return checkin['venue'].get('venue_name') == 'The Pony Bar'


lush = user.User(user_name='adampsyche')
pony_checkins = []

checkins = GetUserCheckins(lush)
while True:
  if not checkins:
    break

  pony_checkins.extend(filter(IsPonyCheckin, checkins))
  marker_checkin = checkins[-1].get('checkin_id')
  checkins = GetUserCheckins(lush, max_id=marker_checkin)

pony_uniques = set()
pony_uniques.update([c['beer']['beer_name'] for c in pony_checkins)<commit_msg>Add missing brace to comprehension<commit_after>import user

VENUE = 257163


def GetUserCheckins(user_obj, limit=50, max_id=None):
  request = {'limit': limit}
  if max_id is not None:
    request['max_id'] = max_id
  return user_obj.GetUserCheckins(request)


def IsPonyCheckin(checkin):
  if 'venue' not in checkin:
    return False
  return checkin['venue'].get('venue_name') == 'The Pony Bar'


lush = user.User(user_name='adampsyche')
pony_checkins = []

checkins = GetUserCheckins(lush)
while True:
  if not checkins:
    break

  pony_checkins.extend(filter(IsPonyCheckin, checkins))
  marker_checkin = checkins[-1].get('checkin_id')
  checkins = GetUserCheckins(lush, max_id=marker_checkin)

pony_uniques = set()
pony_uniques.update([c['beer']['beer_name'] for c in pony_checkins])
{'fraction_non_alphanumeric': 0.12259306803594351, 'fraction_numerical': 0.011553273427471117, 'mean_word_length': 5.578059071729958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6587505', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 121}