<commit_before>'use strict';

// static setup that can be done at load-time

var ACCESS_TOKEN_LENGTH = 16; // (aparent) length of an Autho0 access_token

// since AWS Lambda doesn't (yet) provide environment varibles, load them from .env
require('dotenv').config();

var fs = require('fs');
var Promise = require('bluebird');
Promise.longStackTraces();

var AWS = require('aws-sdk');
AWS.config.apiVersions = { dynamodb: '2012-08-10' };
if ( process.env.AWS_REGION ) {
    AWS.config.update( { region: process.env.AWS_REGION } );
}
var dynamo = new AWS.DynamoDB.DocumentClient();
Promise.promisifyAll( Object.getPrototypeOf( dynamo ));

var policyDocumentFilename = 'policyDocument.json';<commit_msg>Fix spelling<commit_after>'use strict';

// static setup that can be done at load-time

var ACCESS_TOKEN_LENGTH = 16; // (aparent) length of an Autho0 access_token

// since AWS Lambda doesn't (yet) provide environment variables, load them from .env
require('dotenv').config();

var fs = require('fs');
var Promise = require('bluebird');
Promise.longStackTraces();

var AWS = require('aws-sdk');
AWS.config.apiVersions = { dynamodb: '2012-08-10' };
if ( process.env.AWS_REGION ) {
    AWS.config.update( { region: process.env.AWS_REGION } );
}
var dynamo = new AWS.DynamoDB.DocumentClient();
Promise.promisifyAll( Object.getPrototypeOf( dynamo ));

var policyDocumentFilename = 'policyDocument.json';
{'fraction_non_alphanumeric': 0.14, 'fraction_numerical': 0.015714285714285715, 'mean_word_length': 5.038793103448276, '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': '6209341', 'n_tokens_mistral': 466, 'n_tokens_neox': 454, 'n_words': 120}