Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
287,700 | void (VirtualFile originalFile) { myOriginalFile = originalFile; } | setOriginalFile |
287,701 | String () { return PROTOCOL; } | getProtocol |
287,702 | void (boolean asynchronous) { } | refresh |
287,703 | VirtualFileSystem () { return ourFileSystem; } | getFileSystem |
287,704 | String () { VirtualFile parent = getParent(); return (parent == null ? "" : parent.getPath()) + "/" + getName(); } | getPath |
287,705 | boolean () { return myIsWritable; } | isWritable |
287,706 | boolean () { return false; } | isDirectory |
287,707 | boolean () { return myValid; } | isValid |
287,708 | void (boolean valid) { myValid = valid; } | setValid |
287,709 | VirtualFile () { return null; } | getParent |
287,710 | VirtualFile[] () { return EMPTY_ARRAY; } | getChildren |
287,711 | long () { return myModStamp; } | getModificationStamp |
287,712 | void (long stamp) { myModStamp = stamp; } | setModificationStamp |
287,713 | long () { return 0; // todo[max] : Add UnsupportedOperationException at better times. } | getTimeStamp |
287,714 | long () { try { return contentsToByteArray().length; } catch (IOException e) { //noinspection CallToPrintStackTrace e.printStackTrace(); assert false; return 0; } } | getLength |
287,715 | void (boolean asynchronous, boolean recursive, Runnable postRunnable) { } | refresh |
287,716 | void (boolean writable) { myIsWritable = writable; } | setWritable |
287,717 | void () { setModificationStamp(newModificationStamp); setContent(toByteArray()); } | close |
287,718 | void (byte @NotNull [] content) { //StringUtil.assertValidSeparators(content); myContent = content; } | setContent |
287,719 | String () { return "BinaryLightVirtualFile: " + getPresentableUrl(); } | toString |
287,720 | void (@NotNull Key<?> flag) { set(flag, null); } | reset |
287,721 | boolean (@NotNull Key<Boolean> flag) { return get(flag) == Boolean.TRUE; } | is |
287,722 | void (@NotNull TestModeFlagListener listener) { ourListeners.add(listener); } | addListener |
287,723 | boolean () { return disableNonBundledPlugins; } | isDisableNonBundledPlugins |
287,724 | boolean () { return dontReopenProjects; } | isDontReopenProjects |
287,725 | boolean () { return isLightEdit; } | isLightEdit |
287,726 | boolean () { return isCommandLine; } | isCommandLine |
287,727 | boolean () { return isHeadless; } | isHeadless |
287,728 | boolean () { return isRemoteDevHost; } | isRemoteDevHost |
287,729 | boolean () { return Boolean.getBoolean("idea.use.dev.build.server"); } | isDevServer |
287,730 | void (@NotNull List<String> args) { isHeadless = isHeadless(args); isCommandLine = isHeadless || (!args.isEmpty() && isGuiCommand(args.get(0))); isLightEdit = "LightEdit".equals(System.getProperty(PLATFORM_PREFIX_PROPERTY)) || (!isCommandLine && isFileAfterOptions(args)); if (isHeadless) { System.setProperty(AWT_HEADLESS, Boolean.TRUE.toString()); } if (args.isEmpty()) { return; } isRemoteDevHost = CWM_HOST_COMMAND.equals(args.get(0)) || CWM_HOST_NO_LOBBY_COMMAND.equals(args.get(0)) || REMOTE_DEV_HOST_COMMAND.equals(args.get(0)) || SPLIT_MODE_COMMAND.equals(args.get(0)); for (String arg : args) { if (DISABLE_NON_BUNDLED_PLUGINS.equalsIgnoreCase(arg)) { disableNonBundledPlugins = true; } else if (DONT_REOPEN_PROJECTS.equalsIgnoreCase(arg)) { dontReopenProjects = true; } } } | setFlags |
287,731 | boolean (String arg) { return "diff".equals(arg) || "merge".equals(arg); } | isGuiCommand |
287,732 | boolean (@NotNull List<String> args) { for (String arg : args) { // If not an option if (!arg.startsWith("-")) { try { Path path = Paths.get(arg); return Files.isRegularFile(path) || !Files.exists(path); } catch (Throwable t) { return false; } } else if (arg.equals("-l") || arg.equals("--line") || arg.equals("-c") || arg.equals("--column")) { return true; } } return false; } | isFileAfterOptions |
287,733 | void (boolean headless) { isHeadless = headless; isCommandLine = true; isLightEdit = false; } | setHeadlessInTestMode |
287,734 | boolean (List<String> args) { if (Boolean.getBoolean(AWT_HEADLESS)) { return true; } if (args.isEmpty()) { return false; } String firstArg = args.get(0); List<String> headlessCommands = Arrays.asList( "ant", "duplocate", "dataSources", "dump-launch-parameters", "dump-shared-index", "traverseUI", "buildAppcodeCache", "format", "keymap", "update", "inspections", "intentions", "rdserver-headless", "thinClient-headless", "installPlugins", "dumpActions", "cwmHostStatus", "remoteDevStatus", "invalidateCaches", "warmup", "buildEventsScheme", "inspectopedia-generator", "remoteDevShowHelp", "installGatewayProtocolHandler", "uninstallGatewayProtocolHandler", "appcodeClangModulesDiff", "appcodeClangModulesPrinter", "exit", "qodanaExcludedPlugins"); return headlessCommands.contains(firstArg) || firstArg.length() < 20 && firstArg.endsWith("inspect"); } | isHeadless |
287,735 | boolean () { if (LoadingState.COMPONENTS_REGISTERED.isOccurred()) { Application app = ApplicationManager.getApplication(); @SuppressWarnings("SimplifiableServiceRetrieving") PropertiesComponent propertyComponent = app == null ? null : app.getService(PropertiesComponent.class); if (propertyComponent != null && propertyComponent.getBoolean(POWER_SAVE_MODE)) { return true; } } return false; } | isEnabled |
287,736 | void (boolean value) { if (!LoadingState.COMPONENTS_REGISTERED.isOccurred()) { return; } PropertiesComponent propertyComponent = PropertiesComponent.getInstance(); boolean isEnabled = propertyComponent.getBoolean(POWER_SAVE_MODE); if (isEnabled != value) { propertyComponent.setValue(POWER_SAVE_MODE, value); ApplicationManager.getApplication().getMessageBus().syncPublisher(TOPIC).powerSaveStateChanged(); } } | setEnabled |
287,737 | TypePresentationService () { return ApplicationManager.getApplication().getService(TypePresentationService.class); } | getService |
287,738 | PsiNavigationSupport () { return ApplicationManager.getApplication().getService(PsiNavigationSupport.class); } | getInstance |
287,739 | void (@NonNls @NotNull String name, boolean value) { setValue(name, value, false); } | setValue |
287,740 | PropertiesComponent (@NotNull Project project) { return project.getService(PropertiesComponent.class); } | getInstance |
287,741 | PropertiesComponent () { return ApplicationManager.getApplication().getService(PropertiesComponent.class); } | getInstance |
287,742 | boolean (@NonNls String name) { return Boolean.parseBoolean(getValue(name)); } | isTrueValue |
287,743 | boolean (@NonNls @NotNull String name, boolean defaultValue) { String value = getValue(name); return value == null ? defaultValue : Boolean.parseBoolean(value); } | getBoolean |
287,744 | boolean (@NonNls @NotNull String name) { return getBoolean(name, false); } | getBoolean |
287,745 | int (@NonNls @NotNull String name, int defaultValue) { return getInt(name, defaultValue); } | getOrInitInt |
287,746 | int (@NonNls @NotNull String name, int defaultValue) { return StringUtilRt.parseInt(getValue(name), defaultValue); } | getInt |
287,747 | long (@NonNls @NotNull String name, long defaultValue) { return StringUtilRt.parseLong(getValue(name), defaultValue); } | getLong |
287,748 | long (@NonNls @NotNull String name, long defaultValue) { return getLong(name, defaultValue); } | getOrInitLong |
287,749 | boolean (@NotNull Object object) { try { for (Field field : object.getClass().getDeclaredFields()) { field.setAccessible(true); PropertyName annotation = field.getAnnotation(PropertyName.class); if (annotation != null) { final String name = annotation.value(); setValue(name, String.valueOf(field.get(object))); } } return true; } catch (IllegalAccessException e) { return false; } } | saveFields |
287,750 | boolean (@NotNull Object object) { try { for (Field field : object.getClass().getDeclaredFields()) { field.setAccessible(true); final PropertyName annotation = field.getAnnotation(PropertyName.class); if (annotation != null) { final Class<?> type = field.getType(); String defaultValue = annotation.defaultValue(); if (PropertyName.NOT_SET.equals(defaultValue)) { if (type.equals(boolean.class)) { defaultValue = String.valueOf(field.getBoolean(object)); } else if (type.equals(long.class)) { defaultValue = String.valueOf(field.getLong(object)); } else if (type.equals(int.class)) { defaultValue = String.valueOf(field.getInt(object)); } else if (type.equals(short.class)) { defaultValue = String.valueOf(field.getShort(object)); } else if (type.equals(byte.class)) { defaultValue = String.valueOf(field.getByte(object)); } else if (type.equals(double.class)) { defaultValue = String.valueOf(field.getDouble(object)); } else if (type.equals(float.class)) { defaultValue = String.valueOf(field.getFloat(object)); } else if (type.equals(String.class)) { defaultValue = String.valueOf(field.get(object)); } } final String stringValue = getValue(annotation.value(), defaultValue); Object value = null; if (type.equals(boolean.class)) { value = Boolean.valueOf(stringValue); } else if (type.equals(long.class)) { value = Long.parseLong(stringValue); } else if (type.equals(int.class)) { value = Integer.parseInt(stringValue); } else if (type.equals(short.class)) { value = Short.parseShort(stringValue); } else if (type.equals(byte.class)) { value = Byte.parseByte(stringValue); } else if (type.equals(double.class)) { value = Double.parseDouble(stringValue); } else if (type.equals(float.class)) { value = Float.parseFloat(stringValue); } else if (type.equals(String.class)) { value = stringValue; } if (value != null) { field.set(object, value); } } } return true; } catch (IllegalAccessException e) { return false; } } | loadFields |
287,751 | float (@NonNls @NotNull String name, float defaultValue) { if (isValueSet(name)) { try { final String value = getValue(name); if (value != null) return Float.parseFloat(value); } catch (NumberFormatException ignore) { } } return defaultValue; } | getFloat |
287,752 | PluginUtil () { return ApplicationManager.getApplication().getService(PluginUtil.class); } | getInstance |
287,753 | String () { return "ARCHIVE"; } | getName |
287,754 | String () { return CoreBundle.message("filetype.archive.description"); } | getDescription |
287,755 | String () { return ""; } | getDefaultExtension |
287,756 | Icon () { return IconManager.getInstance().getPlatformIcon(PlatformIcons.ArchiveFileType); } | getIcon |
287,757 | boolean () { return true; } | isBinary |
287,758 | LighterASTNode () { return wrap(myRoot); } | getRoot |
287,759 | LighterASTNode (final @NotNull LighterASTNode node) { ASTNode parent = ((NodeWrapper)node).myNode.getTreeParent(); return parent == null ? null : wrap(parent); } | getParent |
287,760 | List<LighterASTNode> (final @NotNull LighterASTNode parent) { final ASTNode[] children = ((NodeWrapper)parent).myNode.getChildren(null); if (children.length == 0) return ContainerUtil.emptyList(); List<LighterASTNode> result = new ArrayList<>(children.length); for (final ASTNode child : children) { result.add(wrap(child)); } return result; } | getChildren |
287,761 | LighterASTNode (@NotNull ASTNode node) { return node.getFirstChildNode() == null && node.getTextLength() > 0 ? new TokenNodeWrapper(node) : new NodeWrapper(node); } | wrap |
287,762 | ASTNode (@NotNull LighterASTNode node) { return ((NodeWrapper)node).myNode; } | unwrap |
287,763 | IElementType () { return myNode.getElementType(); } | getTokenType |
287,764 | int () { return myNode.getStartOffset(); } | getStartOffset |
287,765 | int () { return myNode.getStartOffset() + myNode.getTextLength(); } | getEndOffset |
287,766 | int () { return myNode.getTextLength(); } | getTextLength |
287,767 | boolean (final Object o) { if (this == o) return true; if (!(o instanceof NodeWrapper)) return false; final NodeWrapper that = (NodeWrapper)o; if (myNode != null ? !myNode.equals(that.myNode) : that.myNode != null) return false; return true; } | equals |
287,768 | int () { return myNode.hashCode(); } | hashCode |
287,769 | String () { return "node wrapper[" + myNode + "]"; } | toString |
287,770 | CharSequence () { return myNode.getText(); } | getText |
287,771 | String () { return "token wrapper[" + myNode + "]"; } | toString |
287,772 | LanguageMatcher (@NotNull Language language) { if (language instanceof MetaLanguage) { return new MetaLanguageMatcher((MetaLanguage)language); } else { return new ExactMatcher(language); } } | match |
287,773 | LanguageMatcher (@NotNull Language language) { if (language instanceof MetaLanguage) { return new MetaLanguageKindMatcher((MetaLanguage)language); } else { return new LanguageKindMatcher(language); } } | matchWithDialects |
287,774 | boolean (@NotNull Language language) { return myLanguage.is(language); } | matchesLanguage |
287,775 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExactMatcher matcher = (ExactMatcher)o; if (!myLanguage.equals(matcher.myLanguage)) return false; return true; } | equals |
287,776 | int () { return myLanguage.hashCode(); } | hashCode |
287,777 | String () { return myLanguage.toString(); } | toString |
287,778 | boolean (@NotNull Language language) { return language.isKindOf(myLanguage); } | matchesLanguage |
287,779 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LanguageKindMatcher matcher = (LanguageKindMatcher)o; if (!myLanguage.equals(matcher.myLanguage)) return false; return true; } | equals |
287,780 | int () { return myLanguage.hashCode(); } | hashCode |
287,781 | String () { return myLanguage + " with dialects"; } | toString |
287,782 | boolean (@NotNull Language language) { return myLanguage.matchesLanguage(language); } | matchesLanguage |
287,783 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MetaLanguageMatcher matcher = (MetaLanguageMatcher)o; if (!myLanguage.equals(matcher.myLanguage)) return false; return true; } | equals |
287,784 | int () { return myLanguage.hashCode(); } | hashCode |
287,785 | String () { return myLanguage + " (meta)"; } | toString |
287,786 | boolean (@NotNull Language language) { return LanguageUtil.getBaseLanguages(language).filter(it -> myLanguage.matchesLanguage(it)).isNotEmpty(); } | matchesLanguage |
287,787 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MetaLanguageKindMatcher matcher = (MetaLanguageKindMatcher)o; if (!myLanguage.equals(matcher.myLanguage)) return false; return true; } | equals |
287,788 | int () { return myLanguage.hashCode(); } | hashCode |
287,789 | String () { return myLanguage + " (meta) with dialects"; } | toString |
287,790 | void (@NotNull MetaLanguage metaLanguage, @NotNull PluginDescriptor pluginDescriptor) { if (MetaLanguage.this == metaLanguage) { for (Language matchingLanguage : metaLanguage.getMatchingLanguages()) { LanguageUtil.clearMatchingMetaLanguagesCache(matchingLanguage); } metaLanguage.unregisterLanguage(pluginDescriptor); } } | extensionRemoved |
287,791 | List<MetaLanguage> () { return EP_NAME.getExtensionList(); } | all |
287,792 | Collection<Language> () { List<Language> result = new ArrayList<>(); for (Language t : Language.getRegisteredLanguages()) { if (matchesLanguage(t)) { result.add(t); } } return result; } | getMatchingLanguages |
287,793 | void () { for (Language language : Language.getRegisteredLanguages()) { LanguageUtil.clearMatchingMetaLanguagesCache(language); } } | clearAllMatchingMetaLanguagesCache |
287,794 | void (@NotNull LanguageFilter filter) { myFilters.addIfAbsent(filter); } | registerLanguageExtension |
287,795 | boolean (@NotNull LanguageFilter filter) { return myFilters.remove(filter); } | unregisterLanguageExtension |
287,796 | String () { return language; } | getKey |
287,797 | CharTable () { return myCharTable; } | getCharTable |
287,798 | LighterASTNode () { return myTreeStructure.getRoot(); } | getRoot |
287,799 | LighterASTNode (final @NotNull LighterASTNode node) { return myTreeStructure.getParent(node); } | getParent |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.