<commit_before>(function() {
  'use strict';

  var conducto
  if (typeof window !== 'undefined') {
    conducto = window.conducto;
  }
  else {
    conducto = require('../node_modules/conducto');
  }

  var Y = function(url) {
    conducto.Client.call(this, url);
  };
  Y.prototype = new conducto.Client();

  var methods = {
  };
  for (var i in methods)
    Y.prototype[i] = methods[i];

  if (typeof module !== 'undefined' && typeof module.exports !== 'undefined')
    module.exports = Y;
  else
    window.Y = Y;


})();<commit_msg>add upload event<commit_after>(function(exports) {
  'use strict';

  var conducto;
  if (typeof conducto === 'undefined' && typeof require !== 'undefined')
    conducto = require('../node_modules/conducto');
  else
    conducto = window.conducto;

  var request;
  if (typeof request === 'undefined' && typeof require !== 'undefined')
    request = require('../node_modules/request.js');
  else
    request = window.request;

  var Y = function(url) {
    conducto.Client.call(this, url);

    this.defineEmitter('upload', function(file, callback, progress) {
      if (!(file instanceof Blob) && !(file instanceof File))
        return callback(new Error('Wrong data type'));

      request({
        method: 'POST',
        url: 'http://localhost:9595/media', //FIXME
        username: this.username + '@ym.ms', //FIXME
        password: <PASSWORD>,
        post: file,
        responseType: 'json'
      }, callback, progress);
    });
  };
  Y.prototype = new conducto.Client();

  // var proto = {
  // };
  // for (var i in proto)
  //   Y.prototype[i] = proto[i];

  if (typeof module !== 'undefined' && typeof module.exports !== 'undefined')
    module.exports = Y;
  else if (typeof window !== 'undefined')
    window.Y = Y;

})();


{'fraction_non_alphanumeric': 0.16900617630544637, 'fraction_numerical': 0.0022459292532285235, 'mean_word_length': 2.8655097613882865, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1488157', 'n_tokens_mistral': 563, 'n_tokens_neox': 549, 'n_words': 143}