option setting

@exports transfer
@function transfer
@param {Object} opt - various options. Check README.md
@return {Object}
18978
function transfer(opt) {

  var options = opt || Object.create(null);
  var my = {
    denominator: 1024,
    byte: 1,
    out: ' KB/s',
    time: 1000000000,
    response: true
  };

  if (options.data === 'Byte') {
    // if (Boolean(options.Bps)) {
    my.denominator = 1;
    my.byte = 1;
    my.out = ' Byte';
  } else if (options.data === 'KB') {
    // } else if (Boolean(options.KBps)) {
    my.denominator = 1024;
    my.byte = 1;
    my.out = ' KB';
  } else if (options.data === 'MB') {
    // } else if (Boolean(options.MBps)) {
    my.denominator = 1048576;
    my.byte = 1;
    my.out = ' MB';
  } else if (options.data === 'bit') {
    // } else if (Boolean(options.bps)) {
    my.denominator = 1;
    my.byte = 8;
    my.out = ' bit';
  } else if (options.data === 'Kb') {
    // } else if (Boolean(options.kbps)) {
    my.denominator = 1000;
    my.byte = 8;
    my.out = ' Kbit';
  } else if (options.data === 'Mb') {
    // } else if (Boolean(options.Mbps)) {
    my.denominator = 1000000;
    my.byte = 8;
    my.out = ' Mbit';
  }

  if (options.time === 'nanosecond') {
    // if (Boolean(options.nanosecond)) {
    my.time = 1;
    my.out += '/ns';
  } else if (options.time === 'millisecond') {
    // } else if (Boolean(options.millisecond)) {
    my.time = 1000000;
    my.out += '/ms';
  } else if (options.time === 'second') {
    // } else if (Boolean(options.second)) {
    my.time = 1000000000;
    my.out += '/s';
  }

  if (options.output === false) {
    my.out = '';
  }

  if (options.response === false) {
    my.response = false;
  }

  return wrapper(my);
}
1163937
public boolean hasOption(String opt)
    {
        opt = Util.stripLeadingHyphens(opt);

        return shortOpts.containsKey(opt) || longOpts.containsKey(opt);
    }
1307611
function processOptions(opt) {
        keys(opt).forEach(function (key) {
            var value = opt[key];
            if (typeof value === 'string') {
                opt[key] = grunt.template.process(value);
            } else if (Array.isArray(value)) {
                opt[key] = value.slice().map(function (i) {
                    return grunt.template.process(i);
                });
            }
        });
    }
762011
function defineOption(id, type, names, {read = true, write = true, on = this, values = null} = {}) {
  let get, set

  if (read) {
    if (values) {
      get = function get() { return values[this[`get${type}Option`](id)] }
    } else {
      get = function get() { return this[`get${type}Option`](id) }
    }
  }

  if (write) {
    if (values) {
      set = function set(val) { this[`set${type}Option`](id, values.indexOf(val)) }
    } else {
      set = function set(val) { this[`set${type}Option`](id, val) }
    }
  }

  if (!Array.isArray(on)) on = [on]

  for (const name of names) {
    for (const target of on) {
      Object.defineProperty(target.prototype, name, {get, set})
    }
  }
}
95147
function Overlay(opt) {
    var opt = opt || {};
    opt.zIndex = opt.zIndex || '200';
    opt.trans = opt.trans || '0.6';
    if(document.getElementsByClassName('cl-overlay').length > 0) return;
    var ol = this.el = document.body.appendChild(createOverlay(opt.zIndex, opt.trans));
}
337875
function (opt) {
            return _.extend(
                /** @class OptionsTahta */
                {
                    arrTahta_id: null,
                    bGenel: true,
                    bKurumu: true,
                    bAnahtarlari: true,
                    bRolleri: true,
                    bUyeleri: true,
                    bAjanda: true,
                    optUye: {
                        bArrTahtaUyeRolId: true
                    }
                }, opt || {});
        }
628608
private Option resolveOption(String opt)
    {
        opt = Util.stripLeadingHyphens(opt);
        for (Option option : options)
        {
            if (opt.equals(option.getOpt()))
            {
                return option;
            }

            if (opt.equals(option.getLongOpt()))
            {
                return option;
            }

        }
        return null;
    }
219341
function Courier(opts) {
  stream.Transform.call(this, { objectMode: true });

  this.options = merge(Object.create(Courier.DEFAULTS), opts || {});
}
1054054
function opt(options, name, defaultValue){
    return options && options[name]!==undefined ? options[name] : defaultValue;
}
959191
private void setOption(String opt, String argument) {
        String[] option = { opt, argument };
        options.append(option);
    }
388371
function convertMarkdown(opts) {
  return new Promise((resolve, reject) => {
    marked(opts.data, {}, (err, content) => {
      if(err) return reject(err);
      return resolve(content);
    });
  });
}
1325295
def get_opt( self, opt):
    
    if self.__options.has_key(opt):
      return self.__options[opt]
    return None
273922
def option(self, opt):
        '''
        
        '''
        if 'config.merge' in self.functions:
            return self.functions['config.merge'](opt, {}, omit_master=True)
        return self.opts.get(opt, {})
988219
function getOptions(opts) {
	var obj = Object.create(_options);
	obj = util._extend(obj, opts);
	return obj;
}
217875
function getExchangeRate(config) {
  const options = {
    method: "GET",
    uri: `${config.obServer}:${config.obPort}/ob/exchangerate`,
    json: true, // Automatically stringifies the body to JSON
    headers: {
      Authorization: config.apiCredentials,
    },
    // resolveWithFullResponse: true
  };

  return rp(options);
}
1220855
function(newOption) {
      var k, v, y, _results;
      if (typeof newOption !== 'object') {
        throw new Error('ss.client.set() takes an object e.g. {liveReload: false}');
      }
      _results = [];
      for (k in newOption) {
        if (newOption.hasOwnProperty(k)) {
          v = newOption[k];
          if (v instanceof Object) {
            //jshint -W083
            _results.push((function() {
              var _results1, x;
              _results1 = [];
              for (x in v) {
                if (v.hasOwnProperty(x)) {
                  y = v[x];

                  if (!options[k]) {
                    options[k]= {};
                  }

                  _results1.push(options[k][x] = y);
                }
              }
              return _results1;
            })());
          } else {
            _results.push(options[k] = v);
          }
        }
      }
      return _results;
    }
1058054
function normalizeOptions(options) {

    var opts = {};

    if (typeof options === 'string') {
        opts = {
            url: options
        };
    } else if (_.isPlainObject(options)) {
        opts = _.clone(options);
    }

    return opts;
}