<commit_before>var WinJS = require('winjs'),
  base = require('./base'),
  request = require('request');

var _constructor = function(options) {
  base.call(this, arguments);
};

var instanceMembers = {
  get: function(data, callback) {
    var that = this;
    data.jsonParse = data.jsonParse || false;
    request({
      url: data.url,
      followAllRedirects: true
    }, function(error, response) {
      if (!that.pendingDispose) {
        if (error)
          return callback(error);
        if (!error && (response.statusCode / 100) > 3) {
          return callback(error || response.statusCode);
        }
        response.parsed = {};
        try {
          if (data.jsonParse)
            response.parsed.json = JSON.parse(response.body);
        } catch (x) {
          return callback('network-error');
        }
        return callback(null, response);
      }
    });
  }<commit_msg>Travis CI auto-merge from travis build 190  - [ci skip]<commit_after>var WinJS = require('winjs'),
  base = require('./base'),
  request = require('request');

var _constructor = function(options) {
  base.call(this, arguments);
};

var instanceMembers = {
  get: function(data, callback) {
    var that = this;
    data.jsonParse = data.jsonParse || false;
    request({
      url: data.url,
      followAllRedirects: true,
      gzip: true
    }, function(error, response) {
      if (!that.pendingDispose) {
        if (error)
          return callback(error);
        if (!error && (response.statusCode / 100) > 3) {
          return callback(error || response.statusCode);
        }
        response.parsed = {};
        try {
          if (data.jsonParse)
            response.parsed.json = JSON.parse(response.body);
        } catch (x) {
          return callback('network-error');
        }
        return callback(null, response);
      }
    });
  },

  post: function(data, callback) {
    var that = this;
    data.jsonParse = data.jsonParse || false;
    request.post({
        url: data.url,
        form: data.body
      },
      function(error, response) {
        if (!that.pendingDispose) {
          if (error)
            return callback(error);
          if (!error && (response.statusCode / 100) > 3) {
            return callback(error || response.statusCode);
          }
          response.parsed = {};
          try {
            if (data.jsonParse)
              response.parsed.json = JSON.parse(response.body);
          } catch (x) {
            return callback('network-error');
          }
          return callback(null, response);
        }
      });
  }
{'fraction_non_alphanumeric': 0.13557358053302435, 'fraction_numerical': 0.005793742757821553, 'mean_word_length': 1.9976851851851851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3272530', 'n_tokens_mistral': 748, 'n_tokens_neox': 736, 'n_words': 167}