or the one passed in through $values
960984
protected function zipSetArgs($args, $values)
    {
        $i = 0;
        $assignedValues = array();
        foreach ($args as $a) {
            if ($a[0] == 'arg') {
                if ($i < count($values) && !is_null($values[$i])) {
                    $value = $values[$i];
                } elseif (isset($a[2])) {
                    $value = $a[2];
                } else {
                    $value = null;
                }

                $value = $this->reduce($value);
                $this->set($a[1], $value);
                $assignedValues[] = $value;
            }
            ++$i;
        }

        // check for a rest
        $last = end($args);
        if ($last[0] == 'rest') {
            $rest = array_slice($values, count($args) - 1);
            $this->set($last[1], $this->reduce(array('list', ' ', $rest)));
        }

        $this->env->arguments = $assignedValues;
    }
1090488
private function getValueType($value)
	{
		if (is_numeric($value)) {
			return Type::NUMBER;
		}

		if (is_array($value)) {
			return Type::STRING_SET;
		}

		return Type::STRING;
	}
978479
public function where1v1($id, $value)
    {
        list($id_a, $id_b) = explode(',', $id);
        if (($pos = strpos($value, ',')) === false) {
            $this->_conditions[] = "$id_a=:$id_a OR $id_b=:$id_b";
            $this->_bind[$id_a] = $value;
            $this->_bind[$id_b] = $value;
        } else {
            $value_a = substr($value, 0, $pos);
            $value_b = substr($value, $pos + 1);

            $this->_conditions[] = "($id_a=:${id_a}_a AND $id_b=:${id_b}_b) OR ($id_a=:${id_a}_b AND $id_b=:${id_b}_a)";
            $this->_bind["${id_a}_a"] = $value_a;
            $this->_bind["${id_b}_b"] = $value_b;
            $this->_bind["${id_a}_b"] = $value_b;
            $this->_bind["${id_b}_a"] = $value_a;
        }

        return $this;
    }
444459
public function orIn($key, array $values)
    {
        if ($values) {
            $value = sprintf('%s IN (%s)', $key, join(', ', array_fill(0, count($values), '?')));
            return $this->orAdd($value, $values);
        } else {
            $value = '0';
            return $this->orAdd($value, $values);
        }
    }
654539
function $true(params) {
    if (typeof params === 'boolean') {
        return params;
    }
    if (typeof params === 'number') {
        return params === 1;
    }
    if (typeof params === 'string') {
        params = params.trim();

        return params.toLowerCase() === 'true' || params === '1';
    }

    return false;
}
193452
function (opts1 /*, …options*/) {
		var result = create(null);
		forEach.call(arguments, function (options) {
			if (!isValue$2(options)) { return; }
			process(Object(options), result);
		});
		return result;
	}
942828
private function getValue($value)
    {
        if (!is_string($value)) {
            return $value;
        }

        if ($value[0] != '%' || $value[strlen($value) - 1] != '%')  {
            return $value;
        }

        $parameter = trim($value, '%');
        if ($this->container->hasParameter($parameter)) {
            return $this->container->getParameter($parameter);
        }

        return $value;
    }
403176
function($element, value){

      if (value === undefined){
        value = "";
      } else if (typeof value.toUrlValue == "function"){
        value = value.toUrlValue();
      }

      if ($element.is(":input")){
        $element.val(value);
      } else {
        $element.text(value);
      }
    }
597572
private function lookupValue($value)
    {
        foreach ($this->pairs as $pair) {
            if ($pair->value === $value) {
                return $pair;
            }
        }
    }
557424
def given(self):
        """"""
        if self._primary.value[0] and self._primary.value[2]:
            return self._primary.value[0] + ' ' + self._primary.value[2]
        return self._primary.value[0] or self._primary.value[2]
93966
public function selected($values)
    {
        if (is_array($values) || $values instanceof Closure) {
            $this->selected = $values;
        }
        else if (func_num_args() > 1) {
            $this->selected = func_get_args();
        } else {
            $this->selected = [$values];
        }

        return $this;
    }
1154531
def passes(self, value):
        
        try:
            if self._op.compare(value, self.value):
                return True, None
            else:
                return False, self.value
        except ValueError as err:
            return False, str(err)
93530
public static function select($values, $value, $first=null) {
		$result="";
		if ($first) {
			$result.="<option class='element'>" . $first . "</option>";
		}
		foreach ( $values as $v ) {
			$selected="";
			$id=$v;
			if (is_object($v) === true) {
				$id=$v->getId();
			}
			if ($id === $value) {
				$selected="selected";
			}
			$result.="<option " . $selected . " class='element' id='element" . $id . "' value='" . $id . "'>" . $v . "</option>";
		}
		return $result;
	}
647012
public static function nameOf($value)
    {
        $values = static::getValues();
        return isset($values[$value]) ? $values[$value] : null;
    }
674603
public function parameter($value, $isValue = false)
    {
        return $isValue ? $this->expr->literal($value) : $value;
    }
172785
def substitute(self, values: Dict[str, Any]) -> str:
        
        return self.template.substitute(values)
400559
function modify( $tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters ) {
        switch ($operatorName)
        {
            case 'xhprof_start':
                eZXHProfLogger::start( $namedParameters['flags'], $namedParameters['options'] );
                $operatorValue = null;
                break;
            case 'xhprof_stop':
                eZXHProfLogger::stop( $namedParameters['dosave'] );
                $operatorValue = null;
                break;
            case 'record_value':
                eZPerfLogger::recordValue( $namedParameters['name'], $operatorValue );
                $operatorValue = null;
                break;
            case 'make_global':
                /// @todo investigate: shal we use copy if $operatorValue is an object?
                $GLOBALS[$namedParameters['name']] = $namedParameters['value'];
                $operatorValue = null;
        }
    }