<commit_before>var soap = require('soap');
var path = require('path');
var _    = require('lodash');
var wsdl = path.resolve(__dirname, './wsdl/metadata.wsdl');

module.exports.createClient = function(oauth, cb) {

  var opts = {
    attributesKey: '$attributes'
  };

  soap.createClient(wsdl, opts, function(err, client) {
    if(err) return cb(err);

    client.setOAuth = function(oa) {<commit_msg>overriding endpoint<commit_after>var soap = require('soap');
var path = require('path');
var _    = require('lodash');
var wsdl = path.resolve(__dirname, './wsdl/metadata.wsdl');

module.exports.createClient = function(oauth, cb) {

  var opts = {
    attributesKey: '$attributes',
    endpoint: oauth.instance_url + '/services/Soap/m/32.0'
  };

  soap.createClient(wsdl, opts, function(err, client) {
    if(err) return cb(err);

    client.setOAuth = function(oa) {
{'fraction_non_alphanumeric': 0.16436781609195403, 'fraction_numerical': 0.0034482758620689655, 'mean_word_length': 4.310975609756097, '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': '464907', 'n_tokens_mistral': 304, 'n_tokens_neox': 286, 'n_words': 60}