Skip to content

Instantly share code, notes, and snippets.

import unittest
"""
Write code that takes some Lisp code and returns an abstract syntax tree.
The AST should represent the structure of the code and the meaning of each token.
For example, if your code is given "(first (list 1 (+ 2 3) 9))", it could return a nested array like
["first", ["list", 1, ["+", 2, 3], 9]].
# coding: utf-8
import csv
import re
from collections import defaultdict
from datetime import datetime
RULES = {
r'\[SQUARE\]\[credit\-servicing\-experience\]\[borrower\-flow\]: DynamoDB System Error Monitor on env:.*,tablename:(.*)': 'DynamoDB error on {groups[0]}',
r'\[SQUARE\]\[credit\-servicing\-experience\]\[borrower\-flow\]: Failed Data Science event Monitor on env:.*,functionname:(.*)': 'Failed DS event on {groups[0]}',
r'\[SQUARE\]\[credit\-servicing\-experience\]\[borrower\-flow\]: Failed Data Science event Monitor on env:.*,functionname:(.*)': 'Failed DS event on {groups[0]}',
⁖ ll /usr/lib/systemd/system/st2*
-rw-r--r--. 1 root root 326 Apr 27 07:54 /usr/lib/systemd/system/st2actionrunner.service
-rw-r--r--. 1 root root 428 Apr 27 07:54 /usr/lib/systemd/system/st2actionrunner@.service
-rw-r--r--. 1 root root 498 Apr 27 07:54 /usr/lib/systemd/system/st2api.service
-rw-r--r--. 1 root root 501 Apr 27 07:54 /usr/lib/systemd/system/st2auth.service
-rw-r--r--. 1 root root 382 Apr 18 13:31 /usr/lib/systemd/system/st2chatops.service
-rw-r--r--. 1 root root 398 Apr 27 07:54 /usr/lib/systemd/system/st2garbagecollector.service
-rw-r--r--. 1 root root 374 Apr 27 07:54 /usr/lib/systemd/system/st2notifier.service
-rw-r--r--. 1 root root 392 Apr 27 07:54 /usr/lib/systemd/system/st2resultstracker.service
-rw-r--r--. 1 root root 383 Apr 27 07:54 /usr/lib/systemd/system/st2rulesengine.service