<commit_before># aws-lambda-build
Build AWS Lambda package<commit_msg>Add readme file<commit_after># aws-lambda-build
Build AWS Lambda package (.zip file) including npm modules
Do the following:
1. cd function directory
2. npm update (if verbose > output)
3. zip to provided (or generated) filename.zip (if zip exists - delete it)
4. delete all from node_modules. Be careful, it will delete all unsaved changes!

## Linux shell file
Do not forget `chmod +x` on the build.sh file.
```
Usage:
build.sh
    -f | --function {PATH_TO_FUNCTION}    Function name (should be the same as function's directory)
    -n | --name {ARCHIVE_NAME}            Archive name to save the function.
    -v | --verbose                        If set - output more debug information
```

Next command will produce API_Function.zip file in the current directory.
This .zip file will contain code ready for uploading to AWS Lambda
```
$ aws-lambda-build/build.sh -f API/Function -n API-Function
Or even
$ aws-lambda-build/build.sh -f API/Function
```

## Windows batch file
Coming soon
{'fraction_non_alphanumeric': 0.08970727101038715, 'fraction_numerical': 0.003777148253068933, 'mean_word_length': 3.326530612244898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7260559', 'n_tokens_mistral': 310, 'n_tokens_neox': 300, 'n_words': 136}