<commit_before>import math

class Database(object):

		ORIENTATION = {
			'east': 0.0
			'west': math.pi
			'north': math.pi / 2.0
			'south': -math.pi / 2.0
		}
		POINTS = {
			'cupboard': (-3.6, 4.2),
			'bedroom': (-3.6, 2.1),
			'bathroom': (-3.6, -3.7),
			'hallway_top': (-1.2, 1.9),
			'hallway_mid': (-1.2, 0.45),
			'hallway_bot': (-1.2, -3.7),
			'door': (-1.2, -6),
			'kitchen': (2.05, 3.5),
			'kitchen_entrance': (2.05, 1.6),
			'living_room_top_right': (4.5, 1.6),
			'living_room_middle': (2.05, 0.45),
			'cook_idle': (4.5, -1.85),
			'idle': (12, 4),
			'living_room_entrance': (1, 0.45),
			'living_room_sofa': (1, -3),
			'bed': (-2.3, -1.1),
			'sofa': (0.3, -3),
			'gym': (-4.450, 2.850),
			'sofa2': (1.500, -4.250),
			'toilet': (-4.350, -4.500),
			'sink': (-3.300, -3.400),
			'bathtub': (-4.350, -3.250),
			'fridge': (0.500, 3.000),
			'dishwasher': (3.750, 3.500)
		}

		GRAPH = {
			'cupboard': ['bedroom'],
			'bedroom': ['bed','cupboard','gym','hallway_top'],
			'bathroom': ['bathtub','hallway_bot','sink','toilet'],
			'hallway_top': ['bedroom','hallway_mid'],
			'hallway_mid': ['hallway_bot','hallway_top','living_room_entrance'],
			'hallway_bot': ['bathroom','door','hallway_mid'],
			'door': ['hallway_bot'],
			'kitchen': ['dishwasher','fridge','kitchen_entrance','living_room_middle'],
			'kitchen_entrance': ['kitchen','living_room_middle','living_room_top_right'],
			'living_room_top_right': ['cook_idle','kitchen_entrance'],
			'living_room_middle': ['kitchen','kitchen_entrance','living_room_entrance','living_room_top_right'],
			'cook_idle': ['living_room_top_right'],
			'living_room_entrance': ['hallway_mid','living_room_sofa','living_room_middle'],
			'living_room_sofa': ['sofa','sofa2'],
			'bed': ['bedroom'],
			'sofa': ['living_room_sofa'],
			'gym': ['bedroom'],
			'sofa2': ['living_room_sofa'],
			'toilet': ['bathroom'],
			'sink': ['bathroom'],
			'bathtub': ['bathroom'],
			'fridge': ['kitchen'],
			'dishwasher': ['kitchen']
		}<commit_msg>add events<commit_after>import math

class Database(object):

		# how to judge orientation
		ORIENTATION = {
			'east': 0.0,
			'west': math.pi,
			'north': math.pi / 2.0,
			'south': -math.pi / 2.0
		}

		# where everything is
		POINTS = {
			'cupboard': (-3.6, 4.2),
			'bedroom': (-3.6, 2.1),
			'bathroom': (-3.6, -3.7),
			'hallway_top': (-1.2, 1.9),
			'hallway_mid': (-1.2, 0.45),
			'hallway_bot': (-1.2, -3.7),
			'door': (-1.2, -6),
			'kitchen': (2.05, 3.5),
			'kitchen_entrance': (2.05, 1.6),
			'living_room_top_right': (4.5, 1.6),
			'living_room_middle': (2.05, 0.45),
			'cook_idle': (4.5, -1.85),
			'idle': (12, 4),
			'living_room_entrance': (1, 0.45),
			'living_room_sofa': (1, -3),
			'bed': (-2.3, -1.1),
			'sofa': (0.3, -3),
			'gym': (-4.450, 2.850),
			'sofa2': (1.500, -4.250),
			'toilet': (-4.350, -4.500),
			'sink': (-3.300, -3.400),
			'bathtub': (-4.350, -3.250),
			'fridge': (0.500, 3.000),
			'dishwasher': (3.750, 3.500)
		}

		# connected graph of points showing neighbours
		GRAPH = {
			'cupboard': ['bedroom'],
			'bedroom': ['bed', 'cupboard', 'gym', 'hallway_top'],
			'bathroom': ['bathtub', 'hallway_bot', 'sink', 'toilet'],
			'hallway_top': ['bedroom', 'hallway_mid'],
			'hallway_mid': ['hallway_bot', 'hallway_top', 'living_room_entrance'],
			'hallway_bot': ['bathroom', 'door', 'hallway_mid'],
			'door': ['hallway_bot'],
			'kitchen': ['dishwasher', 'fridge', 'kitchen_entrance', 'living_room_middle'],
			'kitchen_entrance': ['kitchen', 'living_room_middle', 'living_room_top_right'],
			'living_room_top_right': ['cook_idle', 'kitchen_entrance'],
			'living_room_middle': ['kitchen', 'kitchen_entrance', 'living_room_entrance', 'living_room_top_right'],
			'cook_idle': ['living_room_top_right'],
			'living_room_entrance': ['hallway_mid', 'living_room_sofa', 'living_room_middle'],
			'living_room_sofa': ['sofa', 'sofa2'],
			'bed': ['bedroom'],
			'sofa': ['living_room_sofa'],
			'gym': ['bedroom'],
			'sofa2': ['living_room_sofa'],
			'toilet': ['bathroom'],
			'sink': ['bathroom'],
			'bathtub': ['bathroom'],
			'fridge': ['kitchen'],
			'dishwasher': ['kitchen']
		}

		EVENTS = {
			'Resident.wakeup': {
				'explanation': "Resident is currently waking up",
				'priority': 1,
				'warn_medium': '',
				'warn_low': '',
				'warn_dangerous': ''
			},
			'Resident.eat_breakfast': {
				'explanation': '',
				'priority': 1,
				...
				...
			}
		}
{'fraction_non_alphanumeric': 0.24949106536982582, 'fraction_numerical': 0.06107215562090025, 'mean_word_length': 3.854006586169045, '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': '4905750', 'n_tokens_mistral': 2327, 'n_tokens_neox': 1910, 'n_words': 324}