<commit_before>// Generated by CoffeeScript 1.3.3
(function() {
  var MakeSync, Soda, SodaCan, Sync, buildOptions, patch, soda, sodaSync, _ref;

  soda = require("soda");

  _ref = require('make-sync'), MakeSync = _ref.MakeSync, Sync = _ref.Sync;

  buildOptions = function(mode) {
    if (!(mode != null)) {
      mode = 'sync';
    }
    return {
      mode: mode,
      exclude: '*',
      include: soda.commands.concat(['session'])
    };
  };

  patch = function(browser, options) {
    if (((options != null ? options.mode : void 0) != null)) {
      MakeSync(browser, buildOptions(options.mode));
      browser.queue = null;
    }
    return browser;
  };

  sodaSync = {
    createClient: function(options) {
      return patch(soda.createClient(options), options);
    },
    createSauceClient: function(options) {
      return patch(soda.createSauceClient(options), options);
    },
    current: function() {
      return Fiber.current.soda_sync_browser;
    }
  };

  Soda = function(options, cb) {
    var _ref1;
    if (typeof options === 'function') {
      _ref1 = [null, options], options = _ref1[0], cb = _ref1[1];
    }
    if (cb != null) {
      Sync(function() {
        Fiber.current.soda_sync_browser = options != null ? options["with"] : void 0;
        return cb.apply(options != null ? options["with"] : void 0, []);
      });
    }
    if (options) {
      return function(options2, cb2) {
        var _ref2;
        if (typeof options2 === 'function') {
          _ref2 = [null, options2], options2 = _ref2[0], cb2 = _ref2[1];
        }
        if (!(options2 != null)) {
          options2 = options;
        }
        return Soda(options2, cb2);
      };
    }
  };

  SodaCan = function(options, cb) {
    var _ref1;
    if (typeof options === 'function') {
      _ref1 = [null, options], options = _ref1[0], cb = _ref1[1];
    }
    if (cb != null) {
      return function(done) {
        if ((options != null ? options.pre : void 0) != null) {
          options.pre.apply(this, []);
        }
        return Sync(function() {
          Fiber.current.soda_sync_browser = options != null ? typeof options["with"] === "function" ? options["with"]() : void 0 : void 0;
          cb.apply(options != null ? typeof options["with"] === "function" ? options["with"]() : void 0 : void 0, []);
          if (done != null) {
            return done();
          }
        });
      };
    }
    if (options) {
      return function(options2, cb2) {
        var _ref2;
        if (typeof options2 === 'function') {
          _ref2 = [null, options2], options2 = _ref2[0], cb2 = _ref2[1];
        }
        if (!(options2 != null)) {
          options2 = options;
        }
        return SodaCan(options2, cb2);
      };
    }
  };

  exports.Soda = Soda;

  exports.SodaCan = SodaCan;

  exports.soda = sodaSync;

}).call(this);<commit_msg>added alternate names<commit_after>// Generated by CoffeeScript 1.3.3
(function() {
  var MakeSync, Soda, SodaCan, Sync, buildOptions, patch, soda, sodaSync, _ref;

  soda = require("soda");

  _ref = require('make-sync'), MakeSync = _ref.MakeSync, Sync = _ref.Sync;

  buildOptions = function(mode) {
    if (!(mode != null)) {
      mode = 'sync';
    }
    return {
      mode: mode,
      exclude: '*',
      include: soda.commands.concat(['session'])
    };
  };

  patch = function(browser, options) {
    if (((options != null ? options.mode : void 0) != null)) {
      MakeSync(browser, buildOptions(options.mode));
      browser.queue = null;
    }
    return browser;
  };

  sodaSync = {
    createClient: function(options) {
      return patch(soda.createClient(options), options);
    },
    createSauceClient: function(options) {
      return patch(soda.createSauceClient(options), options);
    },
    current: function() {
      return Fiber.current.soda_sync_browser;
    }
  };

  Soda = function(options, cb) {
    var _ref1;
    if (typeof options === 'function') {
      _ref1 = [null, options], options = _ref1[0], cb = _ref1[1];
    }
    if (cb != null) {
      Sync(function() {
        Fiber.current.soda_sync_browser = options != null ? options["with"] : void 0;
        return cb.apply(options != null ? options["with"] : void 0, []);
      });
    }
    if (options) {
      return function(options2, cb2) {
        var _ref2;
        if (typeof options2 === 'function') {
          _ref2 = [null, options2], options2 = _ref2[0], cb2 = _ref2[1];
        }
        if (!(options2 != null)) {
          options2 = options;
        }
        return Soda(options2, cb2);
      };
    }
  };

  SodaCan = function(options, cb) {
    var _ref1;
    if (typeof options === 'function') {
      _ref1 = [null, options], options = _ref1[0], cb = _ref1[1];
    }
    if (cb != null) {
      return function(done) {
        if ((options != null ? options.pre : void 0) != null) {
          options.pre.apply(this, []);
        }
        return Sync(function() {
          Fiber.current.soda_sync_browser = options != null ? typeof options["with"] === "function" ? options["with"]() : void 0 : void 0;
          cb.apply(options != null ? typeof options["with"] === "function" ? options["with"]() : void 0 : void 0, []);
          if (done != null) {
            return done();
          }
        });
      };
    }
    if (options) {
      return function(options2, cb2) {
        var _ref2;
        if (typeof options2 === 'function') {
          _ref2 = [null, options2], options2 = _ref2[0], cb2 = _ref2[1];
        }
        if (!(options2 != null)) {
          options2 = options;
        }
        return SodaCan(options2, cb2);
      };
    }
  };

  exports.Soda = Soda;

  exports.SodaCan = SodaCan;

  exports.soda = sodaSync;

  exports.sync = Soda;

  exports.can = SodaCan;

}).call(this);
{'fraction_non_alphanumeric': 0.16015219647180906, 'fraction_numerical': 0.019024558976132824, 'mean_word_length': 2.2470522178551375, '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': '3464338', 'n_tokens_mistral': 1930, 'n_tokens_neox': 1877, 'n_words': 437}