<jupyter_start><jupyter_text>Part 1<jupyter_code>from collections import Counter, OrderedDict
cntr = Counter(np.int32(puzzle.input_data.split(',')))
hist = OrderedDict()
for i in range(9):
    if i in cntr:
        hist[i] = cntr[i]
    else:
        hist[i] = 0
hist
for day in range(80):
    age = 0
    num_giving_birth = hist[age] # these need to be reset to 6
    for age in range(1,9):
        hist[age-1] = hist[age]
        hist[age] = 0
    hist[6] += num_giving_birth
    hist[8] += num_giving_birth
sum(hist.values())
puzzle.answer_a = 375482<jupyter_output>[32mThat's the right answer!  You are one gold star closer to finding the sleigh keys. [Continue to Part Two][0m<jupyter_text>Part 2<jupyter_code>cntr = Counter(np.int32(puzzle.input_data.split(',')))
hist = OrderedDict()
for i in range(9):
    if i in cntr:
        hist[i] = cntr[i]
    else:
        hist[i] = 0
for day in range(256):
    age = 0
    num_giving_birth = hist[age] # these need to be reset to 6
    for age in range(1,9):
        hist[age-1] = hist[age]
        hist[age] = 0
    hist[6] += num_giving_birth
    hist[8] += num_giving_birth
sum(hist.values())
puzzle.answer_b = 1689540415957<jupyter_output>[32mThat's the right answer!  You are one gold star closer to finding the sleigh keys. You got rank 290 on this star's leaderboard.You have completed Day 6! You can [Shareon
  Twitter
Mastodon] this victory or [Return to Your Advent Calendar].[0m
{'fraction_non_alphanumeric': 0.11711711711711711, 'fraction_numerical': 0.04158004158004158, 'mean_word_length': 3.484472049689441, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '56607', 'license': 'MIT', 'n_tokens_mistral': 588, 'n_tokens_neox': 523, 'n_words': 158, 'path': 'day6.ipynb', 'repo_name': 'RNA8/adventofcode2021', 'size': '1443'}