<commit_before>'use strict';

var RB = require('./ResponseBuilder');

module.exports = RB.extend({

   init: function() {
      var now = new Date(),
          builtOn = [];

      this._super();
      this.allowCORS();
      this.supportJSONP('callback');
      this.cacheForMinutes(30);

      builtOn.push(process.env.AWS_REGION);
      builtOn.push(process.env.AWS_LAMBDA_FUNCTION_NAME);
      builtOn.push(process.env.AWS_LAMBDA_FUNCTION_VERSION);
      builtOn.push(process.env.DEPLOYED_CODE_VERSION);

      this.header('X-Built-On', builtOn.join(':'));
      this.header('X-Page-Built', now.toUTCString());
   },

   toResponse: function(req) {
      this.header('X-Elapsed-Millis', new Date().getTime() - req.started());
      this.header('X-RequestID', req.context('awsRequestId'));
      return this._super(req);
   },

});<commit_msg>Change env var name to match our new standard<commit_after>'use strict';

var RB = require('./ResponseBuilder');

module.exports = RB.extend({

   init: function() {
      var now = new Date(),
          builtOn = [];

      this._super();
      this.allowCORS();
      this.supportJSONP('callback');
      this.cacheForMinutes(30);

      builtOn.push(process.env.AWS_REGION);
      builtOn.push(process.env.AWS_LAMBDA_FUNCTION_NAME);
      builtOn.push(process.env.AWS_LAMBDA_FUNCTION_VERSION);
      builtOn.push(process.env.CODE_VERSION);

      this.header('X-Built-On', builtOn.join(':'));
      this.header('X-Page-Built', now.toUTCString());
   },

   toResponse: function(req) {
      this.header('X-Elapsed-Millis', new Date().getTime() - req.started());
      this.header('X-RequestID', req.context('awsRequestId'));
      return this._super(req);
   },

});
{'fraction_non_alphanumeric': 0.17026239067055393, 'fraction_numerical': 0.0023323615160349854, 'mean_word_length': 3.237037037037037, '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': '224781', 'n_tokens_mistral': 577, 'n_tokens_neox': 561, 'n_words': 80}