<commit_before>var service=require('./services/service.js');
var Client = require('node-rest-client').Client;

module.exports= {
    getResponse :function(message,callback){
        processMessage(message,function(processed){
            if(processed){
                if(processed.intent!='none'){
                    service[processed.intent](processed.entities,function(message){
                        callback(message);
                    });
                } 
            }
            else { callback("Sorry.I don't know.")}
        });
        //if(processed.
        
    }

} 

  processMessage= function(message,callback){
      var client = new Client();
      var args={
          parameters : {id: "104ea5b9-50ad-4b90-8c54-6bd8c27a391f",'subscription-key': "<KEY>",q:message}
      }

      var req=client.get("https://api.projectoxford.ai/luis/v1/application",args,<commit_msg>Remove id,subscription key for LUIS<commit_after>var service=require('./services/service.js');
var Client = require('node-rest-client').Client;

module.exports= {
    getResponse :function(message,callback){
        processMessage(message,function(processed){
            if(processed){
                if(processed.intent!='none'){
                    service[processed.intent](processed.entities,function(message){
                        callback(message);
                    });
                } 
            }
            else { callback("Sorry.I don't know.")}
        });
        //if(processed.
        
    }

} 

  processMessage= function(message,callback){
      var client = new Client();
      var args={
          parameters : {id: "Application.ID",'subscription-key': "Application.KEY",q:message}
      }

      var req=client.get("https://api.projectoxford.ai/luis/v1/application",args,
{'fraction_non_alphanumeric': 0.14166666666666666, 'fraction_numerical': 0.012222222222222223, 'mean_word_length': 2.121317157712305, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '4388410', 'n_tokens_mistral': 519, 'n_tokens_neox': 480, 'n_words': 67}