I KNOW WHAT I AM DOING
196918
private static void handleSignals() {
        if (DaemonStarter.isRunMode()) {
            try {
                // handle SIGHUP to prevent process to get killed when exiting the tty
                Signal.handle(new Signal("HUP"), arg0 -> {
                    // Nothing to do here
                    System.out.println("SIG INT");
                });
            } catch (IllegalArgumentException e) {
                System.err.println("Signal HUP not supported");
            }

            try {
                // handle SIGTERM to notify the program to stop
                Signal.handle(new Signal("TERM"), arg0 -> {
                    System.out.println("SIG TERM");
                    DaemonStarter.stopService();
                });
            } catch (IllegalArgumentException e) {
                System.err.println("Signal TERM not supported");
            }

            try {
                // handle SIGINT to notify the program to stop
                Signal.handle(new Signal("INT"), arg0 -> {
                    System.out.println("SIG INT");
                    DaemonStarter.stopService();
                });
            } catch (IllegalArgumentException e) {
                System.err.println("Signal INT not supported");
            }

            try {
                // handle SIGUSR2 to notify the life-cycle listener
                Signal.handle(new Signal("USR2"), arg0 -> {
                    System.out.println("SIG USR2");
                    DaemonStarter.getLifecycleListener().signalUSR2();
                });
            } catch (IllegalArgumentException e) {
                System.err.println("Signal USR2 not supported");
            }
        }
    }
361730
def perform(action_name, container, **kwargs):
    
    cf = container_fabric()
    cf.call(action_name, container, **kwargs)
567625
public function doPerform()
    {
        $command = $this->prepareCommand();
        $command->setIO($this->getIO());
        $this->fixCommandDefinition($command);

        $this->executeCommand($command, $this->prepareInput(), new TaskOutput($this));
    }
1207569
def finish(self):
		""""""
		self.report(fraction=1.0)
		key = self.stack_key
		if key is not None:
			if self.data.get(key) is None:
				self.data[key] = []
			start_time = self.current_times.get(key) or time()
			self.data[key].append(Dict(runtime=time()-start_time, **self.params))
461332
def finish(self):
        """"""
        self._my_map['over'] = True  # finished == over?
        self._my_map['completionTime'] = DateTime.utcnow()
        self._save()
933840
function () {
            var x3 = this.dpop();
            var x2 = this.dpop();
            var x1 = this.dpop();
            this.dpush(x2);
            this.dpush(x3);
            this.dpush(x1);
        }
1315451
def success(m)
      puts _word_wrap(m, '# ').green
      @targets.each { |_, t| t.success(m) }
    end
869784
public function execute()
	{
		if ($this->arguments->getOpt('mechanism'))
		{
			$this->output->addLine($this->mechanism->getName());
		}
		else if ($this->arguments->getOpt('version'))
		{
			$this->output->addLine(\Hubzero\Version\Version::VERSION);
		}
		else
		{
			$this->status();
		}
	}
209890
public function finish(): void
    {
        if (!$this->max) {
            $this->max = $this->step;
        }

        if ($this->step === $this->max && !$this->overwrite) {
            // prevent double 100% output
            return;
        }

        $this->setProgress($this->max);
    }
458267
def commit(self):
        """"""
        self.flush()
        if hasattr(self, 'transaction') and self.transaction.is_active:
            self.transaction.commit()
        elif hasattr(self, 'connection'):
            self.connection.commit()
121409
protected function perform()
    {
        if ($this->isQuietModeDisabled()) {
            $this->fixer->disableQuietMode();
        }

        $spl = new SplFileInfo($this->file->path());

        return (bool) $this->fixer->fixFile($spl);
    }
728618
public function perform()
    {
        /** @var CommandDeclaration $declaration */
        $declaration = $this->createDeclaration(compact('alias'));

        $declaration->setAlias($this->argument('alias') ?? $this->argument('name'));
        $declaration->setDescription((string)$this->option('description'));

        $this->writeDeclaration($declaration);
    }
459603
public void doFinally() {
        if (conn != null) {
            try {
                if ((isolation != Connection.TRANSACTION_NONE)
                        && (isolation != origIsolation)) {
                    conn.setTransactionIsolation(origIsolation);
                }
                conn.setAutoCommit(true);
                conn.close();
            } catch (SQLException e) {
                // Not much we can do
            }
        }
        conn = null;
        isolation = Connection.TRANSACTION_NONE;
    }
827912
@Override
    protected void doPerform() {
        if (isSourceDocumentRoot()) {
            getActions().doubleClick().perform();
        } else {
            getActions().doubleClick(getFirstElement()).perform();
        }
    }
1091417
function () {
            var out = this._curblock.out;
            if (this._curindent) {
                out.push(this._curindent);
            }
            out.push.apply(out, arguments);
            out.push('\n');
        }
18177
public function commit() {
        $this->connect();
        if (1 == $this->transTimes) {
            $this->pdo->commit();
        }
        --$this->transTimes;
    }
91795
def _progress_aware(self):
        """"""
        from dvc.progress import progress

        if not progress.is_finished:
            progress._print()
        progress.clearln()