Skip to content

Instantly share code, notes, and snippets.

View jcroot's full-sized avatar
🎯
Focusing

Jean Claude Adams jcroot

🎯
Focusing
View GitHub Profile
@jcroot
jcroot / transmogrify.py
Created May 23, 2022 21:34
Improve my code
import json
import time
from datetime import datetime, timezone
# For the raw events given (a List of Dictionaries) returns normalized log events as a List of
# Dictionaries having the following keys: 'server', 'date', 'severity', 'process', 'message'.
def transmogrify(raw_events: [dict]) -> [dict]:
# Write your solution here and in any helper functions you wish to create.