Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
258,100 | Icon () { return AllIcons.Actions.Rerun; } | getRerunIcon |
258,101 | Icon () { return IconLoader.getDisabledIcon(getIcon()); } | getDisabledIcon |
258,102 | String () { return ExecutionBundle.message("standard.runner.description"); } | getDescription |
258,103 | String () { return ExecutionBundle.message("tool.window.name.run"); } | getActionName |
258,104 | String () { return EXECUTOR_ID; } | getId |
258,105 | String () { return "RunClass"; } | getContextActionId |
258,106 | String () { return "ideaInterface.run"; } | getHelpId |
258,107 | boolean () { return EXECUTOR_ID.equalsIgnoreCase(getId()); } | isSupportedOnTarget |
258,108 | Executor () { return ExecutorRegistry.getInstance().getExecutorById(EXECUTOR_ID); } | getRunExecutorInstance |
258,109 | void (@NotNull Parameters configuration, @NotNull ProcessEvent event, @NotNull Key outputType) { String text = StringUtil.notNullize(event.getText()); if (outputType == ProcessOutputTypes.STDERR) { LOG.warn(text.trim()); } else { LOG.debug(text.trim()); } } | logText |
258,110 | void () { stopAll(false); } | stopAll |
258,111 | void (final boolean wait) { CompletableFuture<?> finishFuture = new CompletableFuture<>(); if (myShutdownFuture.compareAndSet(null, finishFuture)) { final List<Info> infos = new ArrayList<>(); synchronized (myProcMap) { for (Info o : myProcMap.values()) { if (o.handler != null) infos.add(o); } } if (infos.isEmpty()) { ... | stopAll |
258,112 | List<Parameters> (@NotNull Target target) { ArrayList<Parameters> result = new ArrayList<>(); synchronized (myProcMap) { for (Pair<Target, Parameters> pair : myProcMap.keySet()) { if (pair.first == target) { result.add(pair.second); } } } if (RemoteObject.IN_PROCESS) { synchronized (myInProcMap) { for (Pair<Target, Par... | getActiveConfigurations |
258,113 | void (@NotNull Target target, @NotNull Parameters configuration, @NotNull EntryPoint result) { } | onCreated |
258,114 | void (@Nullable ProgressIndicator indicator) { if (indicator != null) { indicator.checkCanceled(); } else { ProgressManager.checkCanceled(); } } | checkIndicator |
258,115 | int (int port) { return port; } | publishPort |
258,116 | void (@NotNull List<? extends Info> infos) { for (Info o : infos) { LOG.info("Terminating: " + o); o.handler.destroyProcess(); } } | destroyProcessesImpl |
258,117 | void (@NotNull Target target, @NotNull Parameters configuration, @NotNull Pair<Target, Parameters> key) { ProgramRunner<?> runner = new ProgramRunner<>() { @Override @NotNull public String getRunnerId() { return "MyRunner"; } @Override public void execute(@NotNull ExecutionEnvironment environment) throws ExecutionExcep... | startProcess |
258,118 | String () { return "MyRunner"; } | getRunnerId |
258,119 | boolean (@NotNull String executorId, @NotNull RunProfile profile) { return true; } | canRun |
258,120 | boolean (@NotNull Ref<RunningInfo> ref, @NotNull Pair<Target, Parameters> key) { Info info; synchronized (myProcMap) { info = myProcMap.get(key); try { while (info != null && (!(info instanceof RunningInfo) || info.handler.isProcessTerminating() || info.handler.isProcessTerminated())) { myProcMap.wait(1000); ProgressMa... | getExistingInfo |
258,121 | ProcessListener (@NotNull final Pair<Target, Parameters> key) { return new ProcessListener() { @Override public void startNotified(@NotNull ProcessEvent event) { ProcessHandler processHandler = event.getProcessHandler(); processHandler.putUserData(ProcessHandler.SILENTLY_DESTROY_ON_CLOSE, Boolean.TRUE); Info o; synchro... | getProcessListener |
258,122 | void (@NotNull ProcessEvent event) { ProcessHandler processHandler = event.getProcessHandler(); processHandler.putUserData(ProcessHandler.SILENTLY_DESTROY_ON_CLOSE, Boolean.TRUE); Info o; synchronized (myProcMap) { o = myProcMap.get(key); if (o instanceof PendingInfo) { myProcMap.put(key, new PendingInfo(((PendingInfo)... | startNotified |
258,123 | void (@NotNull ProcessEvent event) { if (dropProcessInfo(key, null, event.getProcessHandler())) { fireModificationCountChanged(); } onProcessTerminated(event); } | processTerminated |
258,124 | void (@NotNull ProcessEvent event, boolean willBeDestroyed) { if (dropProcessInfo(key, null, event.getProcessHandler())) { fireModificationCountChanged(); } Heartbeat heartbeat = myHeartbeatRef.get(); if (heartbeat != null) { heartbeat.stopBeat(); } } | processWillTerminate |
258,125 | void (@NotNull ProcessEvent event, @NotNull Key outputType) { String text = StringUtil.notNullize(event.getText()); logText(key.second, event, outputType); RunningInfo result = null; PendingInfo info; synchronized (myProcMap) { Info o = myProcMap.get(key); if (o instanceof PendingInfo) { info = (PendingInfo)o; if (outp... | onTextAvailable |
258,126 | void (ProcessEvent event) { } | onProcessTerminated |
258,127 | void (ProcessHandler handler) { } | sendDataAfterStart |
258,128 | String () { return ObjectUtils.notNull(System.getProperty(RemoteServer.SERVER_HOSTNAME), "127.0.0.1"); } | getRemoteHost |
258,129 | boolean (Pair<Target, Parameters> key, @Nullable Throwable error, @Nullable ProcessHandler handler) { Info info; synchronized (myProcMap) { info = myProcMap.get(key); if (info != null && (handler == null || info.handler == handler)) { myProcMap.remove(key); myProcMap.notifyAll(); } else { // different processHandler in... | dropProcessInfo |
258,130 | String () { return "PendingInfo{" + ref.get() + '}'; } | toString |
258,131 | String () { return host + ":" + port + "/" + name; } | toString |
258,132 | String () { return "FailedInfo{" + cause + '}'; } | toString |
258,133 | String () { return "InProcessInfo{" + Integer.toHexString(hashCode()) + '}'; } | toString |
258,134 | boolean () { try { if (live) { IdeaWatchdog watchdog = getWatchdog(); return watchdog.ping(); } } catch (Exception ignore) { live = false; stopBeat(); } catch (Throwable t) { live = false; stopBeat(); LOG.error(t); } return false; } | beat |
258,135 | void (int exitCode) { try { getWatchdog().dieNowTestOnly(exitCode); } catch (RemoteException | NotBoundException ignore) { } } | kill |
258,136 | void (@Nls @NotNull String text, @NotNull Key<?> key) { } | addText |
258,137 | boolean () { return false; } | isCanceled |
258,138 | void () { } | stop |
258,139 | boolean () { return false; } | isStopped |
258,140 | Platform () { return myPlatform; } | getPlatform |
258,141 | void (@NotNull ProgressIndicator indicator) { try { promise.setResult(afterPreparation.compute()); } catch (ProcessCanceledException e) { promise.setError(ExecutionBundle.message("canceled.starting.run.configuration")); } catch (ExecutionException t) { logger.warn(logFailureMessage, t); promise.setError(t); } catch (Th... | run |
258,142 | boolean (@NotNull File file, @Nullable TargetEnvironmentRequest request, @NotNull TargetEnvironment remoteEnvironment, @Nullable TargetProgressIndicator indicator, @Nullable Runnable afterUploadCallback) { if (request == null || request instanceof LocalTargetEnvironmentRequest) { return false; } ApplicationManager.getA... | reuploadRootFile |
258,143 | void (T valueToResolve) { if (myTargetPromise.isDone()) { throw new IllegalStateException("Target value is already resolved to '" + myTargetPromise.get() + "'"); } myTargetPromise.setResult(valueToResolve); } | resolve |
258,144 | void (@NotNull Throwable t) { if (myTargetPromise.isDone()) { throw new IllegalStateException("Target value is already resolved to '" + myTargetPromise.get() + "'"); } myTargetPromise.setError(ExecutionBundle.message("message.error.happened.0", t.getMessage())); } | resolveFailure |
258,145 | void () { if (myTargetPromise.isDone()) { throw new IllegalStateException("Target value is already resolved to '" + myTargetPromise.get() + "'"); } myTargetPromise.setError(ExecutionBundle.message("error.message.should.not.proceed.further")); } | stopProceeding |
258,146 | Promise<T> () { return myLocalPromise; } | getLocalValue |
258,147 | Promise<T> () { return myTargetPromise; } | getTargetValue |
258,148 | Promise<T> () { return myOriginalValue.getLocalValue().then(myMapper); } | getLocalValue |
258,149 | Promise<T> () { return myOriginalValue.getTargetValue().then(myMapper); } | getTargetValue |
258,150 | void (T valueToResolve) { if (myLocalPromise.isDone()) { throw new IllegalStateException("Local value is already resolved to '" + myLocalPromise.get() + "'"); } myLocalPromise.setResult(valueToResolve); } | resolve |
258,151 | Promise<T> () { return myLocalPromise; } | getLocalValue |
258,152 | Promise<T> () { return myTargetValue; } | getTargetValue |
258,153 | Promise<T> () { return myPromise; } | getTargetValue |
258,154 | Promise<T> () { return myPromise; } | getLocalValue |
258,155 | Promise<Object> () { return Promises.resolvedPromise(); } | getLocalValue |
258,156 | Promise<Object> () { return Promises.resolvedPromise(); } | getTargetValue |
258,157 | Promise<V> () { return myLocalPromise; } | getLocalValue |
258,158 | Promise<V> () { return myTargetPromise; } | getTargetValue |
258,159 | Promise<T> () { return Promises.collectResults(ContainerUtil.map(myValues, TargetValue::getLocalValue)).then(myMapper); } | getLocalValue |
258,160 | Promise<T> () { return Promises.collectResults(ContainerUtil.map(myValues, TargetValue::getTargetValue)).then(myMapper); } | getTargetValue |
258,161 | LocalTargetEnvironmentRequest () { return (LocalTargetEnvironmentRequest)super.getRequest(); } | getRequest |
258,162 | ResolvedPortBinding (int port) { HostPort hostPort = new HostPort("127.0.0.1", port); return new ResolvedPortBinding(hostPort, hostPort); } | getResolvedPortBinding |
258,163 | TargetPlatform () { return TargetPlatform.CURRENT; } | getTargetPlatform |
258,164 | void () { // } | shutdown |
258,165 | Path () { return myLocalRoot; } | getLocalRoot |
258,166 | String () { return myTargetRoot.toString(); } | getTargetRoot |
258,167 | TargetEnvironmentRequest () { return new LocalTargetEnvironmentRequest( new HashSet<>(getUploadVolumes()), new HashSet<>(getDownloadVolumes()), new HashSet<>(getTargetPortBindings()), new HashSet<>(getLocalPortBindings())); } | duplicate |
258,168 | TargetPlatform () { return TargetPlatform.CURRENT; } | getTargetPlatform |
258,169 | TargetEnvironmentConfiguration () { return null; } | getConfiguration |
258,170 | Volume () { if (myDefaultVolume == null) { myDefaultVolume = createTempVolume(); } return myDefaultVolume; } | getDefaultVolume |
258,171 | Volume () { String id = nextSyntheticId(); return myUploadRoots.computeIfAbsent(id, path -> new LocalUploadVolume(this, id)); } | createTempVolume |
258,172 | String () { return LocalTargetEnvironmentRequest.class.getSimpleName() + ":volume:" + (nextSyntheticId++); //NON-NLS } | nextSyntheticId |
258,173 | void (@NotNull GeneralCommandLine.ParentEnvironmentType parentEnvironmentType) { myParentEnvironmentType = parentEnvironmentType; } | setParentEnvironmentType |
258,174 | String () { return myVolumeId; } | getVolumeId |
258,175 | Platform () { return myRequest.getTargetPlatform().getPlatform(); } | getPlatform |
258,176 | TargetValue<String> (@NotNull String localPath) { return TargetValue.fixed(localPath); } | createUpload |
258,177 | String () { return getClass().getCanonicalName(); } | getSerializationId |
258,178 | void (@NotNull final T runConfiguration, @NotNull final Element element) { } | readExternal |
258,179 | void (@NotNull T runConfiguration, @NotNull Element element) { } | writeExternal |
258,180 | String () { return null; } | getEditorTitle |
258,181 | void (@NotNull final T configuration, @NotNull final ProcessHandler handler, @Nullable RunnerSettings runnerSettings) { } | attachToProcess |
258,182 | void (@NotNull final T configuration, @NotNull final Location location) { } | extendCreatedConfiguration |
258,183 | void (@NotNull final T configuration) { } | extendTemplateConfiguration |
258,184 | void (@NotNull final Map<String, String> envs) { myEnvs.clear(); myEnvs.putAll(envs); } | setEnvs |
258,185 | boolean () { return myPassParentEnvs; } | isPassParentEnvs |
258,186 | void (final boolean passParentEnvs) { myPassParentEnvs = passParentEnvs; } | setPassParentEnvs |
258,187 | TargetEnvironmentRequest () { if (myTargetEnvironmentRequest != null) { return myTargetEnvironmentRequest; } return myTargetEnvironmentRequest = createTargetEnvironmentRequest(); } | getTargetEnvironmentRequest |
258,188 | TargetEnvironmentRequest () { return TargetEnvironmentConfigurations.createEnvironmentRequest(myRunProfile, myProject); } | createTargetEnvironmentRequest |
258,189 | void (@Nullable ProgramRunner.Callback callback) { this.callback = callback; } | setCallback |
258,190 | void () { myContentToReuse = null; } | dispose |
258,191 | Project () { return myProject; } | getProject |
258,192 | ExecutionTarget () { return myTarget; } | getExecutionTarget |
258,193 | RunProfile () { return myRunProfile; } | getRunProfile |
258,194 | RunnerAndConfigurationSettings () { return myRunnerAndConfigurationSettings; } | getRunnerAndConfigurationSettings |
258,195 | RunContentDescriptor () { return myContentToReuse; } | getContentToReuse |
258,196 | void (@Nullable RunContentDescriptor contentToReuse) { myContentToReuse = contentToReuse; if (contentToReuse != null) { Disposer.register(contentToReuse, this); } } | setContentToReuse |
258,197 | RunnerSettings () { return myRunnerSettings; } | getRunnerSettings |
258,198 | ConfigurationPerRunnerSettings () { return myConfigurationSettings; } | getConfigurationSettings |
258,199 | long () { myExecutionId = myIdHolder.incrementAndGet(); return myExecutionId; } | assignNewExecutionId |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.