Returns if $target is equals to the current response

@param mixed $target
@return boolean
184654
public function equals($target) {
		return $target instanceof self &&
			$this->languageCode === $target->languageCode &&
			$this->sentenceTree->equals($target->sentenceTree) &&
			$this->measures == $target->measures;
	}
8500
public function get($target = null)
    {
        $options = ['key' => $this->apiKey];

        if (null !== $target) {
            $this->url = sprintf('%s&target={target}', $this->url);

            $options['target'] = $target;
        }

        return $this->process($options);
    }
183955
public function isLocalBranchEqualTo($targetBranch) : bool
    {
        if (!$this->gitInputValidator->isCommitishValid($targetBranch)) {
            return false;
        }
        if ($this->localHeadHash === null) {
            $this->localHeadHash = $this->commitishToHash('HEAD');
        }

        $targetCommitHash = $this->commitishToHash($targetBranch);

        return $targetCommitHash === $this->localHeadHash;
    }
266054
public function moveTo(string $target, $member): bool
    {
        return $this->handle->sMove($this->name, $target, $member);
    }
907308
public function equals($signature) : bool
    {
        if ($signature instanceof Signature) {
            $signature = $signature->signature;
        }

        if ($this === $signature || $this->signature == $signature) {
            return true;
        }

        return false;
    }
395852
public static function copy($source, $target)
    {
        if (false === is_dir($source)) {
            return copy($source, $target);
        }

        self::mkdir($target);

        $dirSource = dir($source);

        while (false !== ($fileEntry = $dirSource->read())) {
            if (true === in_array($fileEntry, self::getDirSymbols())) {
                continue;
            }

            if (false === self::copy(sprintf('%s/%s', $source, $fileEntry), sprintf('%s/%s', $target, $fileEntry))) {
                return false;
            }

        }

        $dirSource->close();

        return true;
    }
1317785
public function getMainFromTarget(int $target): int
    {
        if (!array_key_exists($target, $this->targetMap)) {
            throw new \RuntimeException('Not mapped');
        }
        return $this->targetMap[$target];
    }
63987
function(target){
            var index = this.targets.indexOf(target);
            if(index !== -1){
                this.current = target;
                return true;
            }
            return false;
        }
1216814
protected function isTargeted(\ReflectionClass $class, \ReflectionClass $target = null): bool
    {
        if (empty($target)) {
            return true;
        }

        if (!$target->isTrait()) {
            //Target is interface or class
            return $class->isSubclassOf($target) || $class->getName() == $target->getName();
        }

        //Checking using traits
        return in_array($target->getName(), $this->fetchTraits($class->getName()));
    }
139139
protected function _getClassName($target)
    {
        $className = $target;
        if (is_object($target)) {
            $className = get_class($target);
        }

        return $this->_normalizeName($className);
    }
1329012
public function iShouldNotSeeLocalized($target)
    {
        $target = $this->localizeTarget($target);
        $this->assertSession()->pageTextNotContains($target);
    }
1196284
protected function upgradeProtocol($target)
    {
        $key = $this->generateKey();

        if (false === strpos($target, '/')) {
            throw new WebsocketException('Wamp Server Target is wrong.');
        }

        $protocol = true === $this->secured ? 'wss' : 'ws';

        $out = "GET {$protocol}://{$this->serverHost}:{$this->serverPort}{$target} HTTP/1.1\r\n";
        $out .= "Host: {$this->serverHost}:{$this->serverPort}\r\n";
        $out .= "Pragma: no-cache\r\n";
        $out .= "Cache-Control: no-cache\r\n";
        $out .= "Upgrade: WebSocket\r\n";
        $out .= "Connection: Upgrade\r\n";
        $out .= "Sec-WebSocket-Key: $key\r\n";
        $out .= "Sec-WebSocket-Protocol: wamp\r\n";

        //@todo support auth
//        $out .= "Cookie: PHPSESSID=2okar2mng0mklk62iutc0bert0\r\n";

        $out .= "Sec-WebSocket-Version: 13\r\n";
        $out .= "Origin: {$this->origin}\r\n\r\n";

        fwrite($this->socket, $out);

        return fgets($this->socket);
    }
945756
public function copy($target) {
        if (!parent::copy($target))
            return false;
        return file_put_contents($target, $this->content) !== false;
    }
456520
public function prependTo($target)
    {
        $target_result = $this->getTargetResult($target);

        $target_result->prepend($this);
        $this->remove();

        return $target_result;
    }
253673
public function checkUserFollowing($user, $target)
	{
		// Build the request path.
		$path = "/user/$user/following/$target";

		$response = $this->client->get($this->fetchUrl($path));

		switch ($response->code)
		{
			case '204' :
				// User is following the target
				return true;

			case '404' :
				// User is not following the target
				return false;

			default :
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
		}
	}
443560
public function isFresh(AssetTarget $target)
    {
        $buildName = $this->buildFileName($target);
        $buildFile = $this->outputDir($target) . DIRECTORY_SEPARATOR . $buildName;

        if (!file_exists($buildFile)) {
            return false;
        }
        $buildTime = filemtime($buildFile);

        if ($this->configTime && $this->configTime >= $buildTime) {
            return false;
        }

        foreach ($target->files() as $file) {
            $time = $file->modifiedTime();
            if ($time === false || $time >= $buildTime) {
                return false;
            }
        }

        $filters = $this->filterRegistry->collection($target);
        foreach ($filters->filters() as $filter) {
            foreach ($filter->getDependencies($target) as $child) {
                $time = $child->modifiedTime();
                if ($time >= $buildTime) {
                    return false;
                }
            }
        }
        return true;
    }
861016
public function isFilterable($state, $target)
    {
        // Empty string
        if ($state === true && empty($target) && $target !== '0') {
            return false;
        }

        // Pure wildcards must be treated as empty values
        if ($state == true && ($target == '%%' || $target == '%')) {
            return false;
        }

        // Start checking from very common usage case
        if ($state == true && $target == '0') {
            return true;
        }

        // If empty array supplied
        if (is_array($target) && empty($target)) {
            return false;
        }

        $result = false;

        if ($state === false) {
            $result = true;
        } else {

            if (is_string($target) && $target != '0' && !empty($target)) {
                $result = true;
            }

            if (is_array($target)) {
                // If empty array is passed, that means it's time to stop right here
                if (empty($target)) {
                    $result = false;
                } else {
                    // Otherwise go on
                    $count = 0;

                    foreach ($target as $value) {
                        if (!empty($value)) {
                            $count++;
                        }
                    }

                    // All values must not be empty
                    if ($count == count($target)) {
                        $result = true;
                    }
                }
            }
        }

        return $result;
    }