<commit_before>var http = require('http');
var soap = require('soap');
var fs = require('fs');
var myService = {
    HTTPWebService: {
        authenticate: function(args) {
            console.log("!!!!! Function 1");
        },

        MyPort: {
            authenticate: function(args) {
                console.log("!!!!! Function 2");
                return {
                    name: "hello"
                };
            },

            // This is how to define an asynchronous function.  
            MyAsyncFunction: function(args, callback) {
                // do some work
                callback({
                    name: args.name
                })
            }
        }
    }
};

var xml = fs.readFileSync('myservice.wsdl', 'utf8'),
server = http.createServer(function(request,response) {
    response.end("404: Not Found: " + request.url)
});

server.listen(8000);
var soapServer = soap.listen(server, '/wsdl', myService, xml);
soapServer.log = function(type, data) {<commit_msg>I've got a bad feeling about this<commit_after>var http = require('http');
var soap = require('soap');
var fs = require('fs');
var myService = {
    HTTPWebService: {
        authenticate: function(args) {
            console.log("!!!!! Function 1");
        },

        MyPort: {
            authenticate: function(args) {
                console.log("!!!!! Function 2");
                return {
                    name: "hello"
                };
            },

            // This is how to define an asynchronous function.  
            MyAsyncFunction: function(args, callback) {
                // do some work
                callback({
                    name: args.name
                })
            }
        }
    }
};

var xml = fs.readFileSync('myservice.wsdl', 'utf8'),
server = http.createServer(function(request,response) {
    response.end("404: Not Found: " + request.url)
});

server.listen(8000);
var soapServer = soap.listen(server, '/wsdl', myService, xml);

soapServer.authenticate = function(security) { return true; };

soapServer.log = function(type, data) {
{'fraction_non_alphanumeric': 0.13712374581939799, 'fraction_numerical': 0.009555661729574774, 'mean_word_length': 1.7882822902796272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '553072', 'n_tokens_mistral': 604, 'n_tokens_neox': 555, 'n_words': 136}