Get the mutex name for the scheduled command.

@return string
512463
public function mutexName()
    {
        if (Eye::laravelVersionIs('>=', '5.2.0')) {
            return 'framework'.DIRECTORY_SEPARATOR.'schedule-'.sha1($this->expression.$this->command);
        }

        return 'framework/schedule-'.md5($this->expression.$this->command);
    }
23634
protected function findEventMutex($mutex)
    {
        return collect($this->schedule->events())->filter(function ($value) use ($mutex) {
            if (Eye::laravelVersionIs('<', '5.4.0')) {
                $value = $this->convertEvent($value);
            }

            return $value->mutexName() === $mutex;
        })->first();
    }
1333377
public function getShortCommand(): string
    {
        $command = $this->getFullCommand();
        $command = substr($command, 0, strpos($command, '>'));
        $command = trim(str_replace(
            config('schedule-list.remove_strings_from_command', [
                "'".PHP_BINARY."'",
                "'artisan'",
            ]), '', $command)
        );

        return $command;
    }
778116
public function getName()
    {
        return $this->block->getName() . '-' .
        $this->property->getName() .
        (null !== $this->index ? '#' . $this->index : '');
    }
26711
public function resolveName()
    {
        $payload = json_decode($this->getRawBody(), true);

        //
        $name = $payload['job'];

        // When the job is a Closure.
        if ($name == 'Nova\Queue\CallQueuedClosure@call') {
            return 'Closure';
        }

        // When the job is a Handler.
        else if ($name == 'Nova\Queue\CallQueuedHandler@call') {
            return Arr::get($payload, 'data.commandName', $name);
        }

        // When the job is an Event.
        else if ($name == 'Nova\Events\CallQueuedHandler@call') {
            $className = Arr::get($payload, 'data.class');

            $method = Arr::get($payload, 'data.method');

            return $className .'@' .$method;
        }

        return $name;
    }
151535
protected function getRoutineArgs(): string
  {
    $ret = '';

    foreach ($this->routine['parameters'] as $parameter_info)
    {
      $mangledName = $this->nameMangler->getParameterName($parameter_info['parameter_name']);

      if ($ret) $ret .= ',';
      $ret .= DataTypeHelper::escapePhpExpression($parameter_info, '$'.$mangledName, $this->lobAsStringFlag);
    }

    return $ret;
  }
443743
public function getProcessStats()
    {

        // Time?
        if (!empty($this->settings['timer'])) {
            $t = new Timer('Process Stats');
        }

        $result = array(
            'exists' => true,
            'proc_total' => 0,
            'threads' => 0,
        );

        foreach ($this->wmi->ExecQuery('SELECT ThreadCount FROM Win32_Process') as $proc) {
            $result['threads'] += (int) $proc->ThreadCount;
            ++$result['proc_total'];
        }

        return $result;
    }
952716
public Object getSessionMutex() {
		Object mutex = getAttribute(SESSION_MUTEX_NAME);
		if (mutex == null) {
			mutex = this.webSocketSession.getAttributes();
		}
		return mutex;
	}
1015676
public function buildCommand()
    {
        $output = ProcessUtils::escapeArgument($this->output);

        $redirect = $this->shouldAppendOutput ? ' >> ' : ' > ';

        if ($this->withoutOverlapping) {
            $command = '(touch ' . $this->mutexPath() . '; ' . $this->command . '; rm ' . $this->mutexPath() . ')' . $redirect . $output . ' 2>&1 &';
        } else {
            $command = $this->command;
        }

        return $this->user ? 'sudo -u ' . $this->user . ' ' . $command : $command;
    }
854368
public function getScheduledCommands()
    {
        $scheduledCommands = [];
        foreach ($this->console->all() as $command) {
            if ($command instanceof ScheduledCommandInterface) {
                $scheduledCommands[] = $command;
            }
        }

        return $scheduledCommands;
    }
892477
private function getLockID()
    {
        if ($this->lockID) {
            return $this->lockID;
        }

        $id = uniqid('thumbnail_thread_', true);

        $this->lockID = $id;
        return $id;
    }
485262
public function getCommandLine()
	{
		return sprintf(
			'put %d %d %d %d',
			$this->_priority,
			$this->_delay,
			$this->_ttr,
			$this->getDataLength()
		);
	}
1084642
private function getCommandName()
    {
        $className   = implode('', array_slice(explode('\\', get_class($this)), -1));
        $commandName = str_replace('command', '', strtolower($className));

        return $commandName;
    }
421976
public static function getCurrentArch(): string
    {
        $arch = php_uname('m');

        if ($arch === "x86_64") {
            $arch = "amd64";
        } elseif ($arch === "i386") {
            $arch = "386";
        } else {
            // TODO: Whats here?
            printf('ERROR: Unexpected, please contact the maintainer or provide a pull request :)%s', PHP_EOL);
            exit(1);
        }

        return $arch;
    }
711456
def active_conf_set_name(self):
        ''''''
        with self._mutex:
            if not self.conf_sets:
                return ''
            if not self._active_conf_set:
                return ''
            return self._active_conf_set
251284
protected function argumentName()
    {
        if ($this->settings) {
            return str_replace($this->settings['postfix'], '', $this->argument('name'));
        }

        return $this->argument('name');
    }
441520
function &_mutex()
    {
        if ( $this->Mutex !== null )
            return $this->Mutex;
        $mutex = new eZMutex( $this->filePath );
        return $mutex;
    }