<commit_before>const Url = require('url');

exports.generatorsHandler = function(event, context, callback) {
  try {
    const key = event.pathParameters ? event.pathParameters.key : null
    const isSingle = (key !== null && key !== undefined)
    if (key !== 'swagger' && isSingle) {
      callback(null, { statusCode: 404 })
    } else {
      callback(null, {
        statusCode: 200,
        body: JSON.stringify([{
          "name": "Swagger",
          "description": "Swagger 2.0 Export of the API spec",
        }]) 
      })
    }<commit_msg>Add in required Generator properties<commit_after>const Url = require('url');

exports.generatorsHandler = function(event, context, callback) {
  try {
    const key = event.pathParameters ? event.pathParameters.key : null
    const isSingle = (key !== null && key !== undefined)
    if (key !== 'swagger' && isSingle) {
      callback(null, { statusCode: 404 })
    } else {
      callback(null, {
        statusCode: 200,
        body: JSON.stringify([{
          "attributes": [],
          "key": "swagger",
          "name": "Swagger",
          "description": "Swagger 2.0 Export of the API spec",
        }]) 
      })
    }
{'fraction_non_alphanumeric': 0.147083685545224, 'fraction_numerical': 0.013524936601859678, 'mean_word_length': 2.4926253687315634, 'pattern_counts': {'":': 6, '<': 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': '3461939', 'n_tokens_mistral': 361, 'n_tokens_neox': 341, 'n_words': 91}