<commit_before>import boto3
from boto3.dynamodb.conditions import Key, Attr

REGION = 'us-east-1'
ITEMS = 'Items'


def lambda_handler(event, context):
    DDB = boto3.resource('dynamodb', region_name=REGION)
    return DDB.Table('triggers').scan()[ITEMS]
<commit_msg>sort actions by title<commit_after>import boto3
from boto3.dynamodb.conditions import Key, Attr

REGION = 'us-east-1'
ITEMS = 'Items'


def lambda_handler(event, context):
    DDB = boto3.resource('dynamodb', region_name=REGION)
    return sorted(DDB.Table('triggers').scan()[ITEMS], key=lambda k: k['title'])

{'fraction_non_alphanumeric': 0.14013840830449828, 'fraction_numerical': 0.01384083044982699, 'mean_word_length': 5.655172413793103, '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': '3210567', 'n_tokens_mistral': 211, 'n_tokens_neox': 208, 'n_words': 44}