<commit_before>handler = require('./index').handler

context = {
  done: (cb, result) ->
    console.log "DONE: ", result
    #NOTE: with process.exit 0 - even locally it doesn't work - probably the same thing happens on Lambda
    #      when commented out - it works locally
    #process.exit 0
    #throw new Error("Exit lambda")
    #setTimeout (-> process.exit 1), 1000
    #process.nextTick (-> process.exit 1)
    return 
}

event = {
  "topic": "my-topic",
  "value": "hello, lambda from test",
  "retain": false
}
<commit_msg>process.exit 0 instead of process.exit 1 in the comments<commit_after>handler = require('./index').handler

context = {
  done: (cb, result) ->
    console.log "DONE: ", result
    #NOTE: with process.exit 0 - even locally it doesn't work - probably the same thing happens on Lambda
    #      when commented out - it works locally
    #process.exit 0
    #throw new Error("Exit lambda")
    #setTimeout (-> process.exit 0), 1000
    #process.nextTick (-> process.exit 0)
    return 
}

event = {
  "topic": "my-topic",
  "value": "hello, lambda from test",
  "retain": false
}

{'fraction_non_alphanumeric': 0.1347708894878706, 'fraction_numerical': 0.016172506738544475, 'mean_word_length': 2.992831541218638, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 9, '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': '2082037', 'n_tokens_mistral': 365, 'n_tokens_neox': 342, 'n_words': 118}