<commit_before>var crypto = require('crypto');
var util = require('util');
var response = require('./cfn-response');
var _ = require('./underscore-min');
var async = require('./async.min');
var AWS = require('aws-sdk');
var awsConfig = new AWS.Config({});
//awsConfig.logger = console;

console.log('NodeJS v.' + process.version + ', AWS SDK v.' + AWS.VERSION);
var apigateway = new AWS.APIGateway(awsConfig);
var lambda = new AWS.Lambda(awsConfig);

var RE_STATEMENT_ALREADY_EXISTS = /ResourceConflictException.*already exists/;

// TODO - provide function that returns a list of all lambda functions
// defined in this stack definition

////////////////////////////////////////////////////////////////////////////////
// UTILITY FUNCTIONS
var logResults = function(msgText, e, results) {
  var msg = {
    ERROR: e || undefined,
    RESULTS: results || undefined<commit_msg>Remove obsolete TODO comment<commit_after>var crypto = require('crypto');
var util = require('util');
var response = require('./cfn-response');
var _ = require('./underscore-min');
var async = require('./async.min');
var AWS = require('aws-sdk');
var awsConfig = new AWS.Config({});
//awsConfig.logger = console;

console.log('NodeJS v.' + process.version + ', AWS SDK v.' + AWS.VERSION);
var apigateway = new AWS.APIGateway(awsConfig);
var lambda = new AWS.Lambda(awsConfig);

var RE_STATEMENT_ALREADY_EXISTS = /ResourceConflictException.*already exists/;

////////////////////////////////////////////////////////////////////////////////
// UTILITY FUNCTIONS
var logResults = function(msgText, e, results) {
  var msg = {
    ERROR: e || undefined,
    RESULTS: results || undefined
{'fraction_non_alphanumeric': 0.2320675105485232, 'fraction_numerical': 0.0, 'mean_word_length': 2.8875878220140514, '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': '226547', 'n_tokens_mistral': 461, 'n_tokens_neox': 443, 'n_words': 132}