[CouchPotatoAPI description]
@param {[type]} options [description]
431074
function CouchPotatoAPI(options) {

  // gather params
  this.hostname = options.hostname;
  this.port = options.port || 5050;
  this.apiKey = options.apiKey;
  this.urlBase = options.urlBase;
  this.ssl = options.ssl || false;
  this.username = options.username || null;
  this.password = options.password || null;
  this.auth = false;

  // http_auth requested
  if (this.username && this.password) {
    this.auth = true;
  }

  // hostname in valid
  if (!this.hostname) {
    throw new TypeError('Hostname is empty');
  }

  // sanitize hostname
  this.hostname = this.hostname.replace(/^https?:\/\//, '');

  // port is valid
  if ((!this.port) || (typeof this.port !== 'number')) {
    try {
      this.port = parseInt(this.port);
    } catch (e) {
      throw new TypeError('Port is not a number');
    }
  }

  // api key is valid length
  if (this.apiKey.length !== 32) {
    throw new TypeError('API Key is an invalid length');
  }

  // api key has valid characters
  if (this.apiKey.search(/[^a-z0-9]+/g) !== -1) {
    throw new TypeError('API Key has invalid characters');
  }

  // url base is valid
  if ((this.urlBase) && (this.urlBase.charAt(0) !== '/')) {
    this.urlBase = '/' + this.urlBase;
  }

  // build the url
  var serverUrl = 'http' + (this.ssl !== false ? 's' : '') + '://' + this.hostname + ':' + this.port;

  // add in the url base
  if (this.urlBase) {
    serverUrl = serverUrl + this.urlBase;
  }

  // complete api url
  this.serverApi = serverUrl + '/api/' + this.apiKey + '/';
}
121366
function allowOptionalParams(params, callback) {
    if (!callback) {
        callback = params;
        params = { };
    }
    return {
        params: params,
        callback: callback,
    };
}
681185
function(options) {
  options = options || {};
  this.type = options.type;
  this.body = options.body;
  this.actions = options.actions;
  this.links = options.links;
  this.embedded = options.embedded;
}
850260
function(options) {
    options = options || {};

    if (options.defaultModelRendering !== 'model') {
      options.defaultModelRendering = 'schema';
    }

    if (!options.highlightSizeThreshold) {
      options.highlightSizeThreshold = 100000;
    }

    // Allow dom_id to be overridden
    if (options.dom_id) {
      this.dom_id = options.dom_id;
      delete options.dom_id;
    }

    if (!options.supportedSubmitMethods){
      options.supportedSubmitMethods = [
        'get',
        'put',
        'post',
        'delete',
        'head',
        'options',
        'patch'
      ];
    }

    if (typeof options.oauth2RedirectUrl === 'string') {
      window.oAuthRedirectUrl = options.redirectUrl;
    }

    // Create an empty div which contains the dom_id
    if (! $('#' + this.dom_id).length){
      $('body').append('<div id="' + this.dom_id + '"></div>') ;
    }

    this.options = options;

    // set marked options
    marked.setOptions({gfm: true});

    // Set the callbacks
    var that = this;
    this.options.success = function() { return that.render(); };
    this.options.progress = function(d) { return that.showMessage(d); };
    this.options.failure = function(d) { return that.onLoadFailure(d); };

    // Create view to handle the header inputs
    this.headerView = new SwaggerUi.Views.HeaderView({el: $('#header')});

    // Event handler for when the baseUrl/apiKey is entered by user
    this.headerView.on('update-swagger-ui', function(data) {
      return that.updateSwaggerUi(data);
    });

    // JSon Editor custom theming
     JSONEditor.defaults.iconlibs.swagger = JSONEditor.AbstractIconLib.extend({
      mapping: {
        collapse: 'collapse',
        expand: 'expand'
        },
      icon_prefix: 'swagger-'
      });

  }
403806
function prepareOptions(options) {
    if (typeof options === "string") {
        options = { path: options };
    }

    Ul.merge(options, {
        flags: "a"
    });

    this.options = options;
}
446030
function setHelperOptions(context, key) {
    var optsHelper = context.options.helper || {};
    if (optsHelper.hasOwnProperty(key)) {
      context.helper.options = optsHelper[key];
    }
  }
743607
function(options) {
      inputEx.UneditableField.superclass.setOptions.call(this,options);
      this.options.visu = options.visu;
   }
474795
function HostListOptions(options) {
  if (!(this instanceof HostListOptions))
    return new HostListOptions(options);

  this.network = Network.primary;
  this.logger = Logger.global;
  this.resolve = dns.lookup;
  this.host = '0.0.0.0';
  this.port = this.network.port;
  this.services = common.LOCAL_SERVICES;
  this.onion = false;
  this.banTime = common.BAN_TIME;

  this.address = new NetAddress();
  this.address.services = this.services;
  this.address.time = this.network.now();

  this.seeds = this.network.seeds;
  this.nodes = [];

  this.maxBuckets = 20;
  this.maxEntries = 50;

  this.prefix = null;
  this.filename = null;
  this.persistent = false;
  this.flushInterval = 120000;

  if (options)
    this.fromOptions(options);
}
578123
function(options) {
    options = options || {};

    // Allow dom_id to be overridden
    if (options.dom_id) {
      this.dom_id = options.dom_id;
      delete options.dom_id;
    }

    if (!options.supportedSubmitMethods){
      options.supportedSubmitMethods = [
        'get',
        'put',
        'post',
        'delete',
        'head',
        'options',
        'patch'
      ];
    }

    if (typeof options.oauth2RedirectUrl === 'string') {
      window.oAuthRedirectUrl = options.redirectUrl;
    }

    // Create an empty div which contains the dom_id
    if (! $('#' + this.dom_id).length){
      $('body').append('<div id="' + this.dom_id + '"></div>') ;
    }

    this.options = options;

    // set marked options
    marked.setOptions({gfm: true});

    // Set the callbacks
    var that = this;
    this.options.success = function() { return that.render(); };
    this.options.progress = function(d) { return that.showMessage(d); };
    this.options.failure = function(d) { return that.onLoadFailure(d); };

    // Create view to handle the header inputs
    this.headerView = new SwaggerUi.Views.HeaderView({el: $('#header')});

    // Event handler for when the baseUrl/apiKey is entered by user
    this.headerView.on('update-swagger-ui', function(data) {
      return that.updateSwaggerUi(data);
    });
  }
961969
function GELFManager(options) {

  if (typeof options === 'undefined') options = {};
  for (k in GELFManager.options)
    if (typeof options[k] === 'undefined')
      options[k] = GELFManager.options[k];

  this.debug        = options.debug;
  this.chunkTimeout = options.chunkTimeout;
  this.gcTimeout    = options.gcTimeout;

  EventEmitter.call(this);
  this.chunksPool = {};

  process.nextTick(this._gc.bind(this));

}
448567
function SteamSpy( options ) {
    if ( !(this instanceof SteamSpy) ) return new SteamSpy(options);

    this.VERSION = VERSION;
    this.options = extend(DEFAULTS, options);
    this.__request = request.defaults(this.options.request_options);
}
670969
function setup(options) {
        const config = Object.assign({}, DEFAULT_CONFIG, options);

        const $slider = config.$el;
        const $track = $slider.querySelector('.slider-track');
        const $after = $slider.querySelector('.slider-after-image');

        // Copy styles.
        $slider.style.width = getComputedStyle($after).getPropertyValue('width');
        $slider.style.height = getComputedStyle($after).getPropertyValue('height');

        $track.addEventListener('input', (evt) => {
            const percent = Number(evt.target.value);
            $after.style.width = `${percent}%`;
        });

        $track.value = config.defaultValue;
        $track.dispatchEvent(new Event('input'));
    }
91709
function (options) {
      //console.log(util.inspect(options.project, false, null));
      var entity = options.entity;

      addScssToImportFile(entity.name, {
          name: entity.name,
          root: options.project.root,
          podsDir: this.podsDir
      });
  }
207957
function parseOptions(options) {

  ttl = options.ttl || (3600 * 24); // cache for 1 day by default.
  tmpCacheTTL = options.tmpCacheTTL || 5; // small by default
  decodeFn = options.decodeFn || exports.decodeURL;
  presets  = options.presets || defaultPresets();

  tmpDir   = options.tmpDir || '/tmp/nodethumbnails';

  var rootPath = options.rootPath || '/thumbs';
  if (rootPath[0] === '/') { rootPath = rootPath.substring(1); } // be forgiving to user errors!

  var allowedExtensions = options.allowedExtensions || ['gif', 'png', 'jpg', 'jpeg'];
  for (var i=0; i < allowedExtensions.length; i++) {
    // be forgiving to user errors!
    if (allowedExtensions[i][0] === '.') {
      allowedExtensions[i] = allowedExtensions[i].substring(1);
    }
  }
  var szExtensions = allowedExtensions.join('|');

  // Example: http://example.com/thumbs/small/images/AB23DC16Hash.jpg
  regexp = new RegExp('^\/' + rootPath.replace(/\//ig, '\\/') +
    '\/([A-Za-z0-9_]+)\/images\/([%\.\-A-Za-z0-9_=\+]+)\.(?:' + szExtensions + ')$', 'i');
}
102055
function setOptions( options ) {
		if ( !options.hasOwnProperty( 'objectMode' ) ) {
			options.objectMode = false;
		}
		if ( !options.hasOwnProperty( 'encoding' ) ) {
			options.encoding = null;
		}
	}
1132360
function LazyChoices(options) {
  options = options || {};

  Action.call(this, options);

  delete this.choices;
  this.__defineGetter__('choices', options.choices);
}
1289307
def _process_options(options)
        status, content_type, location = options.values_at(:status, :content_type, :location)

        self.status = status if status
        self.content_type = content_type if content_type
        headers["Location"] = url_for(location) if location

        super
      end