<commit_before>class BucketList():
    '''
    Defines properties and methods for each bucket list
    '''

    def __init__(self, name, description):
        self.name = name
        self.description = description
        self.activities = []
        self.no_of_activities = len(self.activities)

    def add_activity(self, activity):
        '''Adds an activity to a certain bucketlist '''
        self.activities.append(activity)
        return True<commit_msg>Add delete activity method in bucketlist class<commit_after>class BucketList():
    '''
    Defines properties and methods for each bucket list
    '''

    def __init__(self, name, description):
        self.name = name
        self.description = description
        self.activities = []
        self.no_of_activities = len(self.activities)

    def add_activity(self, activity):
        '''Adds an activity to a certain bucketlist '''
        self.activities.append(activity)
        return True

    def delete_activity(self, activity):
        for item in self.activities:
            if activity.title == item.title:
                self.activities.remove(activity)
                break
        
        return True
        
{'fraction_non_alphanumeric': 0.08626465661641541, 'fraction_numerical': 0.0, 'mean_word_length': 2.3011049723756907, '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': '3982935', 'n_tokens_mistral': 311, 'n_tokens_neox': 303, 'n_words': 87}