Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
248,800 | Charset () { return myCharset != null ? myCharset : super.getCharset(); } | getCharset |
248,801 | ProcessOutput () { return myProcessRunner.runProcess(); } | runProcess |
248,802 | ProcessOutput (int timeoutInMilliseconds) { return myProcessRunner.runProcess(timeoutInMilliseconds); } | runProcess |
248,803 | ProcessOutput (int timeoutInMilliseconds, boolean destroyOnTimeout) { return myProcessRunner.runProcess(timeoutInMilliseconds, destroyOnTimeout); } | runProcess |
248,804 | ProcessOutput (@NotNull ProgressIndicator indicator) { return myProcessRunner.runProcess(indicator); } | runProcessWithProgressIndicator |
248,805 | ProcessOutput (@NotNull ProgressIndicator indicator, int timeoutInMilliseconds) { return myProcessRunner.runProcess(indicator, timeoutInMilliseconds); } | runProcessWithProgressIndicator |
248,806 | ProcessOutput (@NotNull ProgressIndicator indicator, int timeoutInMilliseconds, boolean destroyOnTimeout) { return myProcessRunner.runProcess(indicator, timeoutInMilliseconds, destroyOnTimeout); } | runProcessWithProgressIndicator |
248,807 | void (@NotNull String sgrSequenceBody) { /* The ITU's T.416 Information technology - Open Document Architecture (ODA) and interchange format: https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-T.416-199303-I!!PDF-E&type=items uses ':' as separator characters instead * */ String separator = StringUtil.containsChar(... | processSgr |
248,808 | void (int commandCode, Iterator<Integer> sgrCodesIterator) { switch (commandCode) { case SGR_COMMAND_RESET -> resetTerminal(); case SGR_COMMAND_BOLD -> myWeight = BOLD; case SGR_COMMAND_FAINT -> myWeight = FAINT; case SGR_COMMAND_ITALIC -> myIsItalic = true; case SGR_COMMAND_UNDERLINE -> myUnderline = SINGLE_UNDERLINE;... | processSgr |
248,809 | String () { return Objects.requireNonNull(mySerializedSgrStateProvider.getValue()); } | getAnsiSerializedSGRState |
248,810 | String () { List<String> state = new ArrayList<>(); IntConsumer codeConsumer = it -> state.add(Integer.toString(it)); codeConsumer.accept(SGR_COMMAND_RESET); if (myFont != TerminalFont.DEFAULT) { codeConsumer.accept(myFont.sgrCode); } if (myWeight != Weight.DEFAULT) { codeConsumer.accept(myWeight.sgrCode); } if (myUnde... | computeAnsiSerializedSGRState |
248,811 | void () { myFont = EMPTY_EMULATOR.myFont; myWeight = EMPTY_EMULATOR.myWeight; myUnderline = EMPTY_EMULATOR.myUnderline; myBackgroundColor = EMPTY_EMULATOR.myBackgroundColor; myForegroundColor = EMPTY_EMULATOR.myForegroundColor; myFrameType = EMPTY_EMULATOR.myFrameType; myBlink = EMPTY_EMULATOR.myBlink; myIsInverse = EM... | resetTerminal |
248,812 | boolean () { return EMPTY_EMULATOR.equals(this); } | isInitialState |
248,813 | Color () { return myBackgroundColor == null ? null : myBackgroundColor.getColor(); } | getBackgroundColor |
248,814 | int () { return myBackgroundColor == null ? -1 : myBackgroundColor.getColorIndex(); } | getBackgroundColorIndex |
248,815 | Color () { return myForegroundColor == null ? null : myForegroundColor.getColor(); } | getForegroundColor |
248,816 | int () { return myForegroundColor == null ? -1 : myForegroundColor.getColorIndex(); } | getForegroundColorIndex |
248,817 | boolean () { return myIsInverse; } | isInverse |
248,818 | Underline () { return myUnderline; } | getUnderline |
248,819 | FrameType () { return myFrameType; } | getFrameType |
248,820 | boolean () { return myIsCrossedOut; } | isCrossedOut |
248,821 | Weight () { return myWeight; } | getWeight |
248,822 | boolean () { return myIsItalic; } | isItalic |
248,823 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AnsiTerminalEmulator emulator = (AnsiTerminalEmulator)o; if (myIsItalic != emulator.myIsItalic) return false; if (myIsInverse != emulator.myIsInverse) return false; if (myIsConseal != emulator.myIsConseal) return... | equals |
248,824 | int () { int result = myFont.hashCode(); result = 31 * result + myWeight.hashCode(); result = 31 * result + myUnderline.hashCode(); result = 31 * result + myBlink.hashCode(); result = 31 * result + myFrameType.hashCode(); result = 31 * result + (myIsItalic ? 1 : 0); result = 31 * result + (myIsInverse ? 1 : 0); result ... | hashCode |
248,825 | AnsiTerminalColor (@NotNull Iterator<Integer> encodedColorIterator) { if (!encodedColorIterator.hasNext()) { return null; } int encodingType = encodedColorIterator.next(); if (encodingType == SGR_COLOR_ENCODING_RGB) { Integer redCode = encodedColorIterator.hasNext() ? encodedColorIterator.next() : null; Integer greenCo... | decodeColor |
248,826 | AnsiTerminalColor (int encodedColor) { if (encodedColor >= 0 && encodedColor <= MAX_8BIT_COLOR_INDEX) { return new EightBitColor(encodedColor); } else if (encodedColor >= COLOR_CUBE_MIN_INDEX && encodedColor <= 255) { //16-231: 6 × 6 × 6 cube (216 colors): 16 + 36 × r + 6 × g + b (0 ≤ r, g, b ≤ 5) //232-255: grayscale ... | decode8BitColor |
248,827 | String () { return SGR_COLOR_ENCODING_RGB + ";" + myRed + ";" + myGreen + ";" + myBlue; } | getAnsiEncodedColor |
248,828 | int () { return -1; } | getColorIndex |
248,829 | Color () { //noinspection UseJBColor return new Color(myRed, myGreen, myBlue); } | getColor |
248,830 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RGBColor color = (RGBColor)o; if (myRed != color.myRed) return false; if (myGreen != color.myGreen) return false; if (myBlue != color.myBlue) return false; return true; } | equals |
248,831 | int () { int result = myRed; result = 31 * result + myGreen; result = 31 * result + myBlue; return result; } | hashCode |
248,832 | int () { return myColorIndex; } | getColorIndex |
248,833 | String () { return SGR_COLOR_ENCODING_INDEXED + ";" + getColorIndex(); } | getAnsiEncodedColor |
248,834 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; IndexedAnsiTerminalColor color = (IndexedAnsiTerminalColor)o; if (myColorIndex != color.myColorIndex) return false; return true; } | equals |
248,835 | int () { return myColorIndex; } | hashCode |
248,836 | Color () { return null; } | getColor |
248,837 | Color () { int colorIndex = getColorIndex(); if (colorIndex >= COLOR_CUBE_MIN_INDEX && colorIndex < GRAY_MIN_INDEX) { int encodedColor = colorIndex - COLOR_CUBE_MIN_INDEX; //noinspection UseJBColor return new Color(CUBE_STEPS[(encodedColor / 36) % 6], CUBE_STEPS[(encodedColor / 6) % 6], CUBE_STEPS[encodedColor % 6]); }... | getColor |
248,838 | GeneralCommandLine () { return myCommandLine; } | getCommandLine |
248,839 | GeneralCommandLine (@NotNull GeneralCommandLine commandLine, boolean withMediator, boolean showConsole) { if (withMediator && SystemInfo.isWindows) { WinRunnerMediator.injectRunnerCommand(commandLine, showConsole); } return commandLine; } | mediate |
248,840 | boolean () { return myShouldKillProcessSoftly; } | shouldKillProcessSoftly |
248,841 | void (boolean shouldKillProcessSoftly) { myShouldKillProcessSoftly = shouldKillProcessSoftly; } | setShouldKillProcessSoftly |
248,842 | boolean () { if (processCanBeKilledByOS(myProcess)) { if (SystemInfo.isWindows) { return hasPty() || myMediatedProcess || canTerminateGracefullyWithWinP(); } if (SystemInfo.isUnix) { return true; } } return false; } | canDestroyProcessGracefully |
248,843 | void () { // Don't close streams, because a process may survive graceful termination. // Streams will be closed after the process is really terminated. try { myProcess.getOutputStream().flush(); } catch (IOException e) { LOG.warn(e); } finally { doDestroyProcess(); } } | destroyProcessImpl |
248,844 | void () { boolean gracefulTerminationAttempted = shouldKillProcessSoftly() && canDestroyProcessGracefully() && destroyProcessGracefully(); if (!gracefulTerminationAttempted) { // execute default process destroy super.doDestroyProcess(); } } | doDestroyProcess |
248,845 | void (boolean shouldKillProcessSoftlyWithWinP) { myShouldKillProcessSoftlyWithWinP = shouldKillProcessSoftlyWithWinP; } | setShouldKillProcessSoftlyWithWinP |
248,846 | boolean () { return myShouldKillProcessSoftlyWithWinP && SystemInfo.isWin10OrNewer && !isWslProcess(); } | canTerminateGracefullyWithWinP |
248,847 | boolean () { List<String> command = getProcessService().getCommand(myProcess); String executable = ContainerUtil.getFirstItem(command); boolean wsl = executable != null && PathUtil.getFileName(executable).equals("wsl.exe"); if (wsl) { LOG.info("WinP graceful termination does not work for WSL process: " + command); } if... | isWslProcess |
248,848 | boolean () { ProcessService processService = getProcessService(); if (SystemInfo.isWindows) { if (processService.hasControllingTerminal(myProcess) && WinProcessTerminator.terminateWinProcessGracefully(this, processService, this::sendInterruptToPtyProcess)) { return true; } if (myMediatedProcess) { return WinRunnerMedia... | destroyProcessGracefully |
248,849 | ProcessService () { // Without non-cancelable section "ProcessService.getInstance()" will fail under a canceled progress. return ProgressManager.getInstance().computeInNonCancelableSection(ProcessService::getInstance); } | getProcessService |
248,850 | boolean () { OutputStream outputStream = myProcess.getOutputStream(); if (outputStream != null) { try { outputStream.write(Ascii.ETX); outputStream.flush(); return true; } catch (IOException e) { LOG.info("Failed to send Ctrl+C to PTY process. Fallback to default graceful termination.", e); } } return false; } | sendInterruptToPtyProcess |
248,851 | boolean () { return processCanBeKilledByOS(getProcess()) || getProcess() instanceof ProcessTreeKiller; } | canKillProcess |
248,852 | void () { if (processCanBeKilledByOS(getProcess())) { // execute 'kill -SIGKILL <pid>' on Unix killProcessTree(getProcess()); } else if (getProcess() instanceof ProcessTreeKiller) { ((ProcessTreeKiller)getProcess()).killProcessTree(); } } | killProcess |
248,853 | boolean (@NotNull Process process) { if (SystemInfo.isWindows) { try { Integer pid = ProcessService.getInstance().winPtyChildProcessId(process); if (pid != null) { if (pid == -1) return true; boolean res = WinProcessManager.kill(pid, true); process.destroy(); return res; } if (Registry.is("disable.winp", false)) { retu... | killProcessTree |
248,854 | void (@NotNull Process process) { killProcess(getProcessID(process)); } | killProcess |
248,855 | void (int pid) { if (SystemInfo.isWindows) { try { if (!Registry.is("disable.winp", false)) { try { ProcessService.getInstance().killWinProcess(pid); return; } catch (Throwable e) { LOG.error("Failed to kill process with winp, fallback to default logic", e); } } WinProcessManager.kill(pid, false); } catch (Throwable e)... | killProcess |
248,856 | void (@NotNull Process process, @NotNull String actionName, @Nullable String commandLine) { Integer pid = null; try { pid = getProcessID(process); } catch (Throwable ignored) { } LOG.info("Cannot " + actionName + " already terminated process (pid: " + pid + ", command: " + commandLine + ")"); } | logSkippedActionWithTerminatedProcess |
248,857 | int (@NotNull Process process) { return (int)process.pid(); } | getProcessID |
248,858 | int () { return (int)ProcessHandle.current().pid(); } | getCurrentProcessId |
248,859 | String () { if (ourPid == null) { ourPid = String.valueOf(getCurrentProcessId()); } return ourPid; } | getApplicationPid |
248,860 | List<ProcessInfo> () { List<ProcessInfo> result; if (SystemInfo.isWindows) { result = getProcessListUsingWinProcessListHelper(); if (result != null) return result; LOG.info("Cannot get process list via " + WIN_PROCESS_LIST_HELPER_FILENAME + ", fallback to wmic"); result = getProcessListUsingWindowsWMIC(); if (result !=... | doGetProcessList |
248,861 | record (int pid, String commandLine, String user, String state, int parentPid) { } | MacProcessInfo |
248,862 | void (@NonNls String message) { Application application = ApplicationManager.getApplication(); if (application == null || application.isUnitTestMode()) { LOG.warn(message); } else { LOG.error(message); } } | logErrorTestSafe |
248,863 | String (@NotNull String fullCommandLine, @NotNull String executableName) { List<String> commandLineList = StringUtil.splitHonorQuotes(fullCommandLine, ' '); if (commandLineList.isEmpty()) return ""; String first = StringUtil.unquoteString(commandLineList.get(0)); if (StringUtil.endsWithIgnoreCase(first, executableName)... | extractCommandLineArgs |
248,864 | void (@NotNull List<String> args) { final int size = args.size(); if (size != 2) { LOG.error("Usage: %s <output directory>".formatted(getCommandName())); System.exit(-1); } ApplicationInfo appInfo = ApplicationInfo.getInstance(); String IDE_CODE = appInfo.getBuild().getProductCode().toLowerCase(Locale.getDefault()); St... | main |
248,865 | OptionsPanelInfo (@NotNull OptComponent component, @NotNull OptionController controller) { final OptionsPanelInfo result = new OptionsPanelInfo(); result.type = component.getClass().getSimpleName(); result.value = component instanceof OptControl control ? controller.getOption(control.bindId()) : null; if (component ins... | retrievePanelStructure |
248,866 | String (@NotNull String source, @Nullable String languageForCodeBlocks) { final Document document = Jsoup.parse(source); RENAME_MAP.forEach(map -> document.select(map.first).tagName(map.second)); final Elements ol = document.select("ol"); ol.tagName("list"); ol.attr("style", "decimal"); UNWRAP_MAP.forEach(map -> docume... | cleanupHtml |
248,867 | boolean (@NotNull Node node) { if (!(node instanceof Element element)) return false; return element.tagName().equals("list") || (element.tagName().equals("code") && element.attr("style").equals("block")) || isBr(node); } | isBlockElement |
248,868 | boolean (@NotNull Node node) { if (!(node instanceof Element)) return false; return "br".equals(((Element) node).tagName()); } | isBr |
248,869 | String (@NotNull String id) { return id.replaceAll("[^\\w\\d]", "-") .replaceAll("-{2,}", "-"); } | safeId |
248,870 | boolean () { return appliesToDialects; } | isAppliesToDialects |
248,871 | boolean () { return isCleanup; } | isCleanup |
248,872 | boolean () { return isEnabledDefault; } | isEnabledDefault |
248,873 | boolean () { return hasOptionsPanel; } | isHasOptionsPanel |
248,874 | String () { return id; } | getId |
248,875 | String () { return name; } | getName |
248,876 | String () { return severity; } | getSeverity |
248,877 | String () { return language; } | getLanguage |
248,878 | String () { return extendedDescription; } | getExtendedDescription |
248,879 | String () { return briefDescription; } | getBriefDescription |
248,880 | List<String> () { return List.copyOf(path); } | getPath |
248,881 | boolean (Object o) { if (this == o) return true; if (!(o instanceof Inspection that)) return false; return appliesToDialects == that.appliesToDialects && isCleanup == that.isCleanup && isEnabledDefault == that.isEnabledDefault && hasOptionsPanel == that.hasOptionsPanel && id.equals(that.id) && name.equals(that.name) &&... | equals |
248,882 | int () { return Objects.hash(id, name, severity, path, language, appliesToDialects, isCleanup, isEnabledDefault, briefDescription, extendedDescription, hasOptionsPanel, options); } | hashCode |
248,883 | int (@NotNull Inspection o) { return name.compareTo(o.name); } | compareTo |
248,884 | String () { return id; } | getId |
248,885 | String () { return name; } | getName |
248,886 | String () { return version; } | getVersion |
248,887 | List<Inspection> () { return Optional.ofNullable(inspections) .map((Function<List<Inspection>, List<Inspection>>)ArrayList::new) .orElse(Collections.emptyList()); } | getInspections |
248,888 | void (@NotNull Inspection inspection) { inspections.add(inspection); } | addInspection |
248,889 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Plugin plugin = (Plugin)o; return Objects.equals(id, plugin.id) && Objects.equals(name, plugin.name) && Objects.equals(version, plugin.version); } | equals |
248,890 | int () { return Objects.hash(id, name, version); } | hashCode |
248,891 | String () { return text; } | getText |
248,892 | void (String text) { this.text = text; } | setText |
248,893 | String () { return type; } | getType |
248,894 | void (String type) { this.type = type; } | setType |
248,895 | List<OptionsPanelInfo> () { return children; } | getChildren |
248,896 | void (List<OptionsPanelInfo> children) { this.children = children; } | setChildren |
248,897 | List<Plugin> () { return Optional.ofNullable(plugins) .map((Function<List<Plugin>, List<Plugin>>) ArrayList::new) .orElse(Collections.emptyList()); } | getPlugins |
248,898 | void (@NotNull List<String> args) { myOptions = createCmdlineOptions(); try { Args.parse(myOptions, ArrayUtilRt.toStringArray(args)); } catch (Exception e) { printHelpAndExit(args, myOptions); return; } if (verbose(myOptions) && !myOptions.suppressHelp()) { final StringBuilder buff = new StringBuilder("Options:"); prin... | premain |
248,899 | InspectionApplication () { return myApplication; } | getApplication |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.