<commit_before>'use strict';

var config=require('../../configs');
var railways=require('../../services/railwayapi/apiParser');

exports.handlePNRStatusRequest=function(intent, session, response) {
    //intent.slots.Train.value;

    railways.getJsonPNRstatus(intent.slots.pnrNumber.value, function (events){

    	// Create speech output
	    var speechOutput =  events; 
	    speechOutput['speech']=speechOutput['speech'];
	    //"The correct train name recieved: " + intent.slots.Train.value;
	    		
	    if(speechOutput['heading']!=null)	
		{
			response.tellWithCard(speechOutput['speech'], speechOutput['heading'] , speechOutput['status']);
		}
		else
		{
		    response.tell(speechOutput['speech']);
		}
    });

};


<commit_msg>testing for api exhaustion<commit_after>'use strict';

var config=require('../../configs');
var railways=require('../../services/railwayapi/apiParser');

exports.handlePNRStatusRequest=function(intent, session, response) {
    //intent.slots.Train.value;

    railways.getJsonPNRstatus(intent.slots.pnrNumber.value, function (events){

    	// Create speech output
	    var speechOutput =  events; 
	    speechOutput['speech']=speechOutput['speech'];
	    //"The correct train name recieved: " + intent.slots.Train.value;
	    if (speechOutput['status']==null)
               {
                  railways.getJsonPNRstatus(intent.slots.pnrNumber.value, function (events){

                  // Create speech output
                  var speechOutput =  events;
                  speechOutput['speech']=speechOutput['speech'];
                  //"The correct train name recieved: " + intent.slots.Train.value;
	
	          if(speechOutput['heading']!=null)	
	         	{
			response.tellWithCard(speechOutput['speech'], speechOutput['heading'] , speechOutput['status']);
		        }
		   else
		     {
		      response.tell(speechOutput['speech']);
		     }
                 });
            }
         else if(speechOutput['heading']!=null)
                {
                        response.tellWithCard(speechOutput['speech'], speechOutput['heading'] , speechOutput['status']);
                }
                else
                {
                    response.tell(speechOutput['speech']);
                }
    });
 

};



{'fraction_non_alphanumeric': 0.1437389770723104, 'fraction_numerical': 0.0, 'mean_word_length': 2.4171686746987953, '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': '2760365', 'n_tokens_mistral': 704, 'n_tokens_neox': 606, 'n_words': 92}