<commit_before>import pickle

def save(game, filename):
    if len(filename) <= 1:
        return "Need a filename to save to!"

    with open(filename[1:], mode='wb') as save_file:
        pickle.dump(game, save_file)

    return "Saved to " + filename[1:]

def load(game, filename):
    if len(filename) <= 1:
        return "Need a filename to load from!"

    with open(filename[1:], mode='rb') as save_file:
        loaded = pickle.load(save_file)
        game.__dict__.update(loaded.__dict__)

    return "Game loaded from " + filename[1:]

def look(game, thing):
    if len(thing) > 1:
        thing = thing[1:]
        if item in game.room.items:
            return game.room.items[item].description
        else:
            return "Can't look at " + thing

    return game.room.describe()

def change_room(game, direction):
    if game.room is None:
        return "Oops, you're not on the map. You should get that checked out."

    direction = direction[1:]
    if direction in game.room.nearby:<commit_msg>Fixing looking at items<commit_after>import pickle

def save(game, filename):
    if len(filename) <= 1:
        return "Need a filename to save to!"

    with open(filename[1:], mode='wb') as save_file:
        pickle.dump(game, save_file)

    return "Saved to " + filename[1:]

def load(game, filename):
    if len(filename) <= 1:
        return "Need a filename to load from!"

    with open(filename[1:], mode='rb') as save_file:
        loaded = pickle.load(save_file)
        game.__dict__.update(loaded.__dict__)

    return "Game loaded from " + filename[1:]

def look(game, thing):
    if len(thing) > 1:
        thing = thing[1:]
        if thing in game.room.items:
            return game.room.items[thing].description
        else:
            return "Can't look at " + thing

    return game.room.describe()

def change_room(game, direction):
    if game.room is None:
        return "Oops, you're not on the map. You should get that checked out."

    direction = direction[1:]
    if direction in game.room.nearby:
{'fraction_non_alphanumeric': 0.11707317073170732, 'fraction_numerical': 0.00878048780487805, 'mean_word_length': 2.6625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '778604', 'n_tokens_mistral': 655, 'n_tokens_neox': 620, 'n_words': 202}