<commit_before>init python:
    import pygame
    from copy import deepcopy
    # valley easter egg with serena
    def easterEggValley(friend):
        if not isinstance(friend, Friend):
            raise TypeError("Expected a Friend for easterEggValley, instead got {0}".format(type(friend)))
        while True:
            try:
                total = renpy.input("How friendly do you want to be with {0}?".format(friend.name))
                total = int(total)
            except:
                continue
            else:
                if type(total) not in (int, float):
                    continue
                break
        if(total >= 0):
            friend.gain("friendship", total)
        else:
            friend.loss("friendship", -total)

    # unlock dildo
    def konamiCodeUnlock():
        playsfx("xbox.ogg")
        popup("Unlocked item: Neo Armstrong")
        bag.add(deepcopy(unlockableItems["neo armstrong"]))
        ui.remove(konamiCode)

    konamiCode = CodeSequence(
        sequence=(
            pygame.K_UP, pygame.K_UP, pygame.K_DOWN, pygame.K_DOWN, 
            pygame.K_LEFT, pygame.K_RIGHT, pygame.K_LEFT, pygame.K_RIGHT
        ),
        unlock=konamiCodeUnlock
    )

    # unlock kirby suit
    def kirbyUnlock():
        playsfx("xbox.ogg")
        popup("Unlocked item: <NAME>'s Suit")
        bag.add(deepcopy(unlockableItems["god"]))
        ui.remove(kirbyCode)

    kirbyCode = CodeSequence(
        sequence=(
            pygame.K_UP, pygame.K_DOWN, pygame.K_UP, pygame.K_DOWN, 
            pygame.K_LEFT, pygame.K_RIGHT, pygame.K_LEFT, pygame.K_RIGHT
        ),
        unlock=kirbyUnlock 
    )

    # unlock developer mode
    def developerUnlock():
        playsfx("xbox.ogg")
        popup({
            "text": "Unlocked developer mode",
            "icon": loadImage("icon_rina.png"),
        })
        config.developer = True
        game.diaryIntro = True
        game.hasDiary = True
        if "diary_developer" not in diary.screenNames:
            diary.screenNames.insert(0, "diary_developer")
        renpy.hide_screen("float_menu")
        renpy.show_screen("float_menu")

    developerCode = CodeSequence(
        sequence=[getattr(pygame, "K_{0}".format(char)) for char in "godmode"],
        unlock=developerUnlock,
    )<commit_msg>Remove developer ui event listener after unlock<commit_after>init python:
    import pygame
    from copy import deepcopy
    # valley easter egg with serena
    def easterEggValley(friend):
        if not isinstance(friend, Friend):
            raise TypeError("Expected a Friend for easterEggValley, instead got {0}".format(type(friend)))
        while True:
            try:
                total = renpy.input("How friendly do you want to be with {0}?".format(friend.name))
                total = int(total)
            except:
                continue
            else:
                if type(total) not in (int, float):
                    continue
                break
        if(total >= 0):
            friend.gain("friendship", total)
        else:
            friend.loss("friendship", -total)

    # unlock dildo
    def konamiCodeUnlock():
        playsfx("xbox.ogg")
        popup("Unlocked item: Neo Armstrong")
        bag.add(deepcopy(unlockableItems["neo armstrong"]))
        ui.remove(konamiCode)

    konamiCode = CodeSequence(
        sequence=(
            pygame.K_UP, pygame.K_UP, pygame.K_DOWN, pygame.K_DOWN, 
            pygame.K_LEFT, pygame.K_RIGHT, pygame.K_LEFT, pygame.K_RIGHT
        ),
        unlock=konamiCodeUnlock
    )

    # unlock kirby suit
    def kirbyUnlock():
        playsfx("xbox.ogg")
        popup("Unlocked item: <NAME>'s Suit")
        bag.add(deepcopy(unlockableItems["god"]))
        ui.remove(kirbyCode)

    kirbyCode = CodeSequence(
        sequence=(
            pygame.K_UP, pygame.K_DOWN, pygame.K_UP, pygame.K_DOWN, 
            pygame.K_LEFT, pygame.K_RIGHT, pygame.K_LEFT, pygame.K_RIGHT
        ),
        unlock=kirbyUnlock 
    )

    # unlock developer mode
    def developerUnlock():
        playsfx("xbox.ogg")
        popup({
            "text": "Unlocked developer mode",
            "icon": loadImage("icon_rina.png"),
        })
        config.developer = True
        game.diaryIntro = True
        game.hasDiary = True
        if "diary_developer" not in diary.screenNames:
            diary.screenNames.insert(0, "diary_developer")
        renpy.hide_screen("float_menu")
        renpy.show_screen("float_menu")
        ui.remove(developerCode)

    developerCode = CodeSequence(
        sequence=[getattr(pygame, "K_{0}".format(char)) for char in "godmode"],
        unlock=developerUnlock,
    )
{'fraction_non_alphanumeric': 0.10561126520162151, 'fraction_numerical': 0.002133560913164071, 'mean_word_length': 2.0303813833225597, 'pattern_counts': {'":': 4, '<': 5, '<?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}}
{'dir': 'git-commits-cleaned', 'id': '5419990', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1382, 'n_words': 299}