<commit_before>import flickr
from random import randint

from secret_settings import API_KEY
from secret_settings import API_SECRET

flickr.API_KEY = API_KEY
flickr.API_SECRET = API_SECRET

# Need the NSID of whatever group you're pulling from
CORGI_GROUP = '42653350@N00'


def get_puppy():
        group = flickr.Group(CORGI_GROUP)
        photos = None
        counter = 1
        while photos is None and counter < 3:
            try:
                # Trying to randomize the fetch a bit. I know there are roughly 14k photos in this groups.
                random_page = randint(1, 7500)
                photos = group.getPhotos(per_page=2, page=random_page)<commit_msg>more cleanup<commit_after>import flickr
from random import randint

from secret_settings import API_KEY
from secret_settings import API_SECRET

flickr.API_KEY = API_KEY
flickr.API_SECRET = API_SECRET

# Need the NSID of whatever group you're pulling from
FLICKR_GROUP = '42653350@N00' # corgi
#FLICKR_GROUP = '57017533@N00'  # pug


def get_puppy():
        group = flickr.Group(FLICKR_GROUP)
        photos = None
        counter = 1
        while photos is None and counter < 3:
            try:
                # Trying to randomize the fetch a bit, limited by the number of photos in the group
                random_page = randint(1, group.poolcount)
                photos = group.getPhotos(per_page=2, page=random_page)
{'fraction_non_alphanumeric': 0.06067094932191292, 'fraction_numerical': 0.03140613847251963, 'mean_word_length': 2.789189189189189, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1941586', 'n_tokens_mistral': 473, 'n_tokens_neox': 427, 'n_words': 139}