

def _tagActivity(self, text):
    for (act, pattern) in self.ActivityTaggingTable.items():
        if re.search(pattern, text, re.IGNORECASE):
            return act
    return None

dataset/ETHPy150Open cpfair/tapiriik/tapiriik/services/Dropbox/dropbox.py DropboxService._tagActivity/original