<commit_before>
var AWS = require('aws-sdk');
var CfnLambda = require('cfn-lambda');

var APIG = new AWS.APIGateway({apiVersion: '2015-07-09'});

var Delete = CfnLambda.SDKAlias({
  api: APIG,
  method: 'deleteIntegrationResponse',
  keys: ['HttpMethod', 'ResourceId', 'RestApiId', 'StatusCode'],
  downcase: true,
  ignoreErrorCodes: [404]
});

var Upsert = CfnLambda.SDKAlias({
  api: APIG,
  method: 'putIntegrationResponse',
  downcase: true,
  returnPhysicalId: function(data, params) {
    return [
      params.RestApiId,
      params.ResourceId,
      params.HttpMethod,
      params.StatusCode
    ].join(':');
  }
});

exports.handler = CfnLambda({
  Create: Upsert,
  Update: Upsert,
  Delete: Delete,
  SchemaPath: [__dirname, 'schema.json']
});<commit_msg>Adding NoUpdate<commit_after>
var AWS = require('aws-sdk');
var CfnLambda = require('cfn-lambda');

var APIG = new AWS.APIGateway({apiVersion: '2015-07-09'});

var Delete = CfnLambda.SDKAlias({
  api: APIG,
  method: 'deleteIntegrationResponse',
  keys: ['HttpMethod', 'ResourceId', 'RestApiId', 'StatusCode'],
  downcase: true,
  ignoreErrorCodes: [404]
});

var Upsert = CfnLambda.SDKAlias({
  api: APIG,
  method: 'putIntegrationResponse',
  downcase: true,
  returnPhysicalId: function(data, params) {
    return [
      params.RestApiId,
      params.ResourceId,
      params.HttpMethod,
      params.StatusCode
    ].join(':');
  }
});

exports.handler = CfnLambda({
  Create: Upsert,
  Update: Upsert,
  Delete: Delete,
  NoUpdate: Upsert,
  SchemaPath: [__dirname, 'schema.json']
});
{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.014102564102564103, 'mean_word_length': 4.238255033557047, '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': '6280410', 'n_tokens_mistral': 556, 'n_tokens_neox': 555, 'n_words': 117}