<commit_before>"""
                                       
   Business - U08007                   
   Calender, Schedule, Planner.        
                                       
   Authors: <NAME>, <NAME>, <NAME>,
   <NAME>, <NAME>, Kieran St Louis.

   File: Event Storage
                                       
"""

#Import Time Packages
import time
import datetime
import csv

#Main Event Storage
events = []

#Add Event to Storage
def addTask(title, timestamp, location):

    #Create Temp New Event List
    temp = [title, timestamp, location]

    #Add To Main Storage
    events.append(temp)

    #Debug Notify
    print("Task Added: ", temp)

#Remove an Event from Storage
def removeTask(time):
    if len(events) > 0:
        for no in range(0, len(events)):
            if event[n][1] === time:
                del event[n]
                print ("Event Removed: ", time)
                return True
    return False

#Convert Timestamp To Readable Form
def convertEventTimestamp(date):
    return datetime.datetime.fromtimestamp(date).strftime('%Y-%m-%d %H:%M:%S')


addTask("Birthday", "15 03 2016","Home")
removeTask(0)<commit_msg>Fixed Bullshit Events Code, Or Tasks.... LOL WTF<commit_after>"""
                                       
   Business - U08007                   
   Calender, Schedule, Planner.        
                                       
   Authors: <NAME>, <NAME>, <NAME>,
   <NAME>, <NAME>, Kieran St Louis.

   File: Event Storage
                                       
"""

#Import Time Packages
import time
import datetime
import csv

#Main Event Storage
events = []

#Add Event to Storage
def addTask(title, timestamp, location):

    #Create Temp New Event List
    temp = [title, timestamp, location]

    #Add To Main Storage
    events.append(temp)

    #Debug Notify
    print("Task Added: ", temp)

#Remove an Event from Storage
def removeTask(time):
    if len(events) > 0:
        for n in range(0, len(events)):
            if events[n][1] == time:
                del events[n]
                print ("Event Removed: ", time)
                return True
    return False

#Convert Timestamp To Readable Form
def convertEventTimestamp(date):
    return datetime.datetime.fromtimestamp(date).strftime('%Y-%m-%d %H:%M:%S')


addTask("Birthday", "15 03 2016","Home")
removeTask(0)
{'fraction_non_alphanumeric': 0.10829394069617533, 'fraction_numerical': 0.01461108723678556, 'mean_word_length': 1.9027431421446384, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5901488', 'n_tokens_mistral': 686, 'n_tokens_neox': 631, 'n_words': 208}