Expects a Hash of +args+ to assign.
185687
def mass_assign(args)
      ATTRIBUTES.each { |key| send("#{key}=", args[key]) if args[key] }
    end
618311
public static void main(String[] args) {
		IntLinkedHashMap<Integer> hash = new IntLinkedHashMap<Integer>(16, Integer.class, true);
		for (int i = 1; i < 6; i++) { // 1...4
			hash.put(i, i);
		}
		hash.put(3, 3);
		hash.put(3, 3);
		hash.put(3, 3);
		hash.put(3, 3);
		hash.get(3);
		// hash.remove(3);
		for (Integer i : hash) {
			System.out.println(i);
		}
		System.out.println("---");
		while (hash.size() > 0) {
			System.out.println("remove value=" + hash.removeEldest());
		}
		System.out.println("---");

		for (Integer i : hash) {
			System.out.println(i);
		}
	}
911476
def parsed_args(args)
      args.inject({}) do |memo, method|
        memo.merge(method.is_a?(Hash) ? method : { method => nil })
      end
    end
268972
function hash() {
  var h = 0;
  for (var i = 0; i < arguments.length; i++) {
    var k = arguments[i];
    h += k;
    h += k << 10;
    h ^= k >> 6;
  }
  h += h << 3;
  h ^= h >> 11;
  h += h << 15;
  return h >= 0 ? h : -h;
}
1296612
def assign_new(params, new_params)
      new_params.each_pair do |name, value|
        if value.is_a?(Hash)
          assign_new(params.get(name), value)
        else
          # assign
          params.set(name, value)
        end
      end
    end
312368
def set(key, opts = nil)
      fail ArgumentError, 'Second argument must be a hash' unless opts.is_a?(Hash)
      path  = key_endpoint + key
      payload = {}
      [:ttl, :value, :dir, :prevExist, :prevValue, :prevIndex].each do |k|
        payload[k] = opts[k] if opts.key?(k)
      end
      response = api_execute(path, :put, params: payload)
      Response.from_http_response(response)
    end
406672
def select(*args)
      case args[0]
      when nil
        raise ArgumentError, "Not enough arguments"
      when :first
        args.shift
        @connection.select_hash_first(*args)
      when :all
        args.shift
        @connection.select_hash_all(*args)
      else
        @connection.select_hash_all(*args)
      end
    end
312359
function (hash, /*args**/opts) {
        var args = argsToArray(arguments, 1);
        return CaseExpression.fromArgs([hashToArray(hash)].concat(args));
    }
329760
def to_hash(args = {}) # :nodoc:
      args ||= {}

      if args[:nested]
        {'url' => self[:@url] || self[:url]}
      else
        hash = super
        hash.merge!('@version' => self['@version']) unless new_record?
        {self.class.json_name => hash}
      end
    end
197106
def value_from_args(args, &block)
      return block if ChainOptions::Util.blank?(args) && block && allow_block

      flat_value(args)
    end
6694
def raw= (args)
      @original = args
      case args
      when String
        parse_from_string(args)
      when Hash
        args = { :area_code => PhoneNumber.default_area_code }.merge(args)
        NUMBER_PARTS.each do |key|
          send("#{key}=", args[key]) if args[key]
        end
      when Array
        self.pack!(args)
      else
        raise ArgumentError.new("Sorry, can't handle arguments of type #{args.class}")
      end
    end
521091
def set(arg, *args)
      if arg.kind_of?(Hash)
        arg.each { |k, v| public_set(k, v) }
      elsif args.size > 0
        public_set(arg, args.first)
      end
      self
    end
1178268
private void oneArg(String[] args, int index) {
        if ((index + 1) < args.length) {
            setOption(args[index], args[index+1]);
        } else {
            usageError("main.requires_argument", args[index]);
        }
    }
998504
def missing_interpolation_argument_handler
      @@missing_interpolation_argument_handler ||= lambda do |missing_key, provided_hash, string|
        raise MissingInterpolationArgument.new(missing_key, provided_hash, string)
      end
    end
868106
def fetch(args={})
      args.each do |k, v|
        setter = "#{k}="
        send(setter, v) if respond_to? setter
      end

      execute
      result
    end
382803
function(args){
        //  Remove auth info
        var fnArgs = _.clone(args),
            shasum = crypto.createHash('sha1'),
            fileName;
        delete fnArgs.auth;
        fileName = JSON.stringify(fnArgs);
        shasum.update(fileName);
        return cacheDir + shasum.digest('hex');
    }
150062
def check_args(hash)
        if !hash.include? :hostname
          raise ArgumentError, "You must provide a hostname"
        elsif !hash.include? :service_name
          raise ArgumentError, "You must provide a service name"
        elsif !hash.include? :return_code
          raise ArgumentError, "You must provide a return code"
        elsif !hash.include? :status
          raise ArgumentError, "You must provide a status"
        end
      end