Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
293,700
boolean () { return false; }
mayChangeTargetsSync
293,701
void (@NotNull String forcedText) { }
forceUpdateEditableUiModel
293,702
void (@NotNull Map<Repo, PushSpec<Source, Target>> pushSpecs, @Nullable VcsPushOptionValue additionalOption, boolean force, @NotNull Map<String, VcsPushOptionValue> customParams) { push(pushSpecs, additionalOption, force); }
push
293,703
OptionsPanelPosition () { return OptionsPanelPosition.DEFAULT; }
getPosition
293,704
S () { return mySource; }
getSource
293,705
T () { return myTarget; }
getTarget
293,706
String () { return mySource + "->" + myTarget; }
toString
293,707
State () { return state; }
getState
293,708
void (@NotNull State state) { this.state = state; }
loadState
293,709
boolean (final @NotNull String remote, final @NotNull String branch) { return ContainerUtil.exists(state.FORCE_PUSH_TARGETS, info -> info.targetRemoteName.equals(remote) && info.targetBranchName.equals(branch)); }
containsForcePushTarget
293,710
void (@NotNull String targetRemote, @NotNull String targetBranch) { List<ForcePushTargetInfo> targets = state.FORCE_PUSH_TARGETS; if (!containsForcePushTarget(targetRemote, targetBranch)) { targets.add(new ForcePushTargetInfo(targetRemote, targetBranch)); } }
addForcePushTarget
293,711
boolean () { return state.SHOW_DETAILS_PANEL; }
getShowDetailsInPushDialog
293,712
void (boolean value) { state.SHOW_DETAILS_PANEL = value; }
setShowDetailsInPushDialog
293,713
String () { return name; }
name
293,714
boolean () { return false; }
reloadable
293,715
boolean () { return false; }
defaultStateAsResource
293,716
String () { return ""; }
additionalExportDirectory
293,717
String () { return ""; }
additionalExportFile
293,718
boolean () { return false; }
externalStorageOnly
293,719
boolean () { return false; }
reportStatistic
293,720
boolean () { return false; }
allowLoadInTests
293,721
boolean () { return true; }
useLoadedStateAsExisting
293,722
boolean () { return false; }
getStateRequiresEdt
293,723
SettingsCategory () { return SettingsCategory.OTHER; }
category
293,724
Storage (@NotNull Storage original, @NotNull String newValue) { return new StorageImpl(newValue, newValue, original.deprecated(), original.exclusive(), original.exportable(), original.roamingType(), original.stateSplitter(), original.storageClass(), original.useSaveThreshold()); }
copyWithNewValue
293,725
Storage (@NotNull Storage original) { //noinspection deprecation return new StorageImpl(original.value(), original.file(), true, original.exclusive(), original.exportable(), original.roamingType(), original.stateSplitter(), original.storageClass(), original.useSaveThreshold()); }
deprecatedCopy
293,726
String () { return myFile; }
file
293,727
String () { return myValue; }
value
293,728
boolean () { return myDeprecated; }
deprecated
293,729
RoamingType () { return myType; }
roamingType
293,730
ThreeState () { return myUseSaveThreshold; }
useSaveThreshold
293,731
boolean () { return myExclusive; }
exclusive
293,732
boolean () { return myExportable; }
exportable
293,733
boolean () { return true; }
usePathMacroManager
293,734
void () { assertCompatibleSerialization(new MyBean()); }
testCompatibility
293,735
void (final Object data) { assertThat(serializeWithJDom(data)).isEqualTo(serialize(data)); }
assertCompatibleSerialization
293,736
Element (@NotNull Object data) { final Element jDomRoot = new Element("MyBean"); if (data instanceof com.intellij.openapi.util.JDOMExternalizable) { ((com.intellij.openapi.util.JDOMExternalizable)data).writeExternal(jDomRoot); } else { com.intellij.openapi.util.DefaultJDOMExternalizer.writeExternal(data, jDomRoot); } return jDomRoot; }
serializeWithJDom
293,737
Element (Object bean) { return XmlSerializer.serialize(bean, null); }
serialize
293,738
ThreeState () { return ThreeState.UNSURE; }
useSaveThreshold
293,739
boolean () { return false; }
exclusive
293,740
boolean () { return false; }
exportable
293,741
boolean () { return true; }
usePathMacroManager
293,742
String () { return value(); }
file
293,743
String () { return path; }
value
293,744
boolean () { return deprecated; }
deprecated
293,745
RoamingType () { return RoamingType.DEFAULT; }
roamingType
293,746
String () { return "IDEA_MODULE"; }
getName
293,747
String () { return ProjectModelBundle.message("filetype.idea.module.description"); }
getDescription
293,748
String () { return DEFAULT_EXTENSION; }
getDefaultExtension
293,749
Icon () { return IconManager.getInstance().getPlatformIcon(PlatformIcons.IdeaModule); }
getIcon
293,750
boolean () { return false; }
isBinary
293,751
String (@NotNull VirtualFile file, byte @NotNull [] content) { return StandardCharsets.UTF_8.name(); }
getCharset
293,752
String () { return "IDEA_PROJECT"; }
getName
293,753
String () { return ProjectModelBundle.message("filetype.idea.project.description"); }
getDescription
293,754
String () { return DEFAULT_EXTENSION; }
getDefaultExtension
293,755
Icon () { return IconManager.getInstance().getPlatformIcon(PlatformIcons.IdeaModule); }
getIcon
293,756
boolean () { return false; }
isBinary
293,757
String (@NotNull VirtualFile file, byte @NotNull [] content) { return StandardCharsets.UTF_8.name(); }
getCharset
293,758
ProjectFileIndex (Project project) { return ProjectFileIndex.getInstance(project); }
getInstance
293,759
ProjectFileIndex (@NotNull Project project) { return project.getService(ProjectFileIndex.class); }
getInstance
293,760
AdditionalLibraryRootsListenerHelper () { return ApplicationManager.getApplication().getService(AdditionalLibraryRootsListenerHelper.class); }
getInstance
293,761
ExternalProjectSystemRegistry () { return ApplicationManager.getApplication().getService(ExternalProjectSystemRegistry.class); }
getInstance
293,762
OrderEnumerator () { return withoutSdk().withoutDepModules().withoutModuleSourceEntries(); }
librariesOnly
293,763
OrderEnumerator () { return withoutDepModules().withoutLibraries().withoutModuleSourceEntries(); }
sdkOnly
293,764
PathsList () { return classes().getPathsList(); }
getPathsList
293,765
PathsList () { return sources().getPathsList(); }
getSourcePathsList
293,766
OrderEnumerator (@NotNull Module module) { return ModuleRootManager.getInstance(module).orderEntries(); }
orderEntries
293,767
OrderEnumerator (@NotNull Project project) { return ProjectRootManager.getInstance(project).orderEntries(); }
orderEntries
293,768
void (@NotNull Module module, @NotNull String path) { updateModel(module, model -> model.addContentEntry(VfsUtilCore.pathToUrl(path))); }
addContentRoot
293,769
void (@NotNull Module module, @NotNull VirtualFile path) { updateModel(module, model -> model.addContentEntry(path)); }
addContentRoot
293,770
void (@NotNull Module module, @Nullable String libName, @NotNull List<String> classesRootUrls, @NotNull List<String> sourceRootUrls) { addModuleLibrary(module, libName, classesRootUrls, sourceRootUrls, DependencyScope.COMPILE); }
addModuleLibrary
293,771
void (@NotNull Module module, @Nullable String libName, @NotNull List<String> classesRootUrls, @NotNull List<String> sourceRootUrls, @NotNull DependencyScope scope) { addModuleLibrary(module, libName, classesRootUrls, sourceRootUrls, Collections.emptyList(), scope); }
addModuleLibrary
293,772
void (@NotNull Module module, @Nullable String libName, @NotNull List<String> classesRootUrls, @NotNull List<String> sourceRootUrls, @NotNull List<String> excludedRootUrls, @NotNull DependencyScope scope) { addModuleLibrary(module, libName, classesRootUrls, sourceRootUrls, excludedRootUrls, scope, false); }
addModuleLibrary
293,773
void (@NotNull Module module, @Nullable String libName, @NotNull List<String> classesRootUrls, @NotNull List<String> sourceRootUrls, @NotNull List<String> excludedRootUrls, @NotNull DependencyScope scope, boolean exported) { addModuleLibrary(module, libName, classesRootUrls, sourceRootUrls, excludedRootUrls, scope, exported, EmptyConsumer.getInstance()); }
addModuleLibrary
293,774
void (@NotNull Module module, @Nullable String libName, @NotNull List<String> classesRootUrls, @NotNull List<String> sourceRootUrls, @NotNull List<String> excludedRootUrls, @NotNull DependencyScope scope, boolean exported, Consumer<? super LibraryEx.ModifiableModelEx> postProcessor) { updateModel(module, model -> { LibraryEx library = (LibraryEx)model.getModuleLibraryTable().createLibrary(libName); LibraryEx.ModifiableModelEx libraryModel = library.getModifiableModel(); for (String rootUrl : classesRootUrls) { libraryModel.addRoot(rootUrl, OrderRootType.CLASSES); } for (String rootUrl : sourceRootUrls) { libraryModel.addRoot(rootUrl, OrderRootType.SOURCES); } for (String excludedUrl : excludedRootUrls) { libraryModel.addExcludedRoot(excludedUrl); } LibraryOrderEntry entry = model.findLibraryOrderEntry(library); assert entry != null : library; entry.setScope(scope); entry.setExported(exported); postProcessor.consume(libraryModel); ApplicationManager.getApplication().invokeAndWait(() -> WriteAction.run(libraryModel::commit)); }); }
addModuleLibrary
293,775
void (@NotNull Module module, @NotNull String classesRootUrl) { if (ApplicationManager.getApplication().isUnitTestMode() && classesRootUrl.endsWith(".jar")) { assert false : "jar file is expected, local file is used"; } addModuleLibrary(module, null, Collections.singletonList(classesRootUrl), Collections.emptyList()); }
addModuleLibrary
293,776
void (@NotNull Module module, @NotNull Library library) { addDependency(module, library, DependencyScope.COMPILE, false); }
addDependency
293,777
void (@NotNull Module module, @NotNull Library library) { updateModel(module, model -> { LibraryOrderEntry entry = model.findLibraryOrderEntry(library); if (entry == null) { throw new IllegalArgumentException("Library " + library.getName() + " is not found in dependencies of module " + module.getName()); } model.removeOrderEntry(entry); }); }
removeDependency
293,778
void (@NotNull Module module, @NotNull Library library, @NotNull DependencyScope scope, boolean exported) { updateModel(module, model -> { LibraryOrderEntry entry = model.addLibraryEntry(library); entry.setExported(exported); entry.setScope(scope); }); }
addDependency
293,779
void (@NotNull Module module, @Nullable Sdk sdk) { updateModel(module, model -> { model.setSdk(sdk); }); }
setModuleSdk
293,780
void (@NotNull Module module) { updateModel(module, model -> model.inheritSdk()); }
setSdkInherited
293,781
void (@NotNull Module from, @NotNull Module to) { addDependency(from, to, DependencyScope.COMPILE, false); }
addDependency
293,782
void (@NotNull Module from, @NotNull Module to, @NotNull DependencyScope scope, boolean exported) { updateModel(from, model -> { ModuleOrderEntry entry = model.addModuleOrderEntry(to); entry.setScope(scope); entry.setExported(exported); }); }
addDependency
293,783
void (@NotNull Module module, @NotNull Consumer<? super ModifiableRootModel> task) { modifyModel(module, model -> { task.consume(model); return Boolean.TRUE; }); }
updateModel
293,784
void (@NotNull Module module, @NotNull Function<? super ModifiableRootModel, Boolean> modifier) { ModifiableRootModel model = ReadAction.compute(() -> ModuleRootManager.getInstance(module).getModifiableModel()); try { if (modifier.apply(model)) { ApplicationManager.getApplication().invokeAndWait(() -> { if (!module.isDisposed()) { WriteAction.run(model::commit); } }); } } finally { if (!model.isDisposed()) { model.dispose(); } } }
modifyModel
293,785
void (@NotNull Module module, @NotNull VirtualFile contentRoot, @NotNull Collection<String> urlsToUnExclude, @NotNull Collection<String> urlsToExclude) { updateModel(module, modifiableModel -> { for (ContentEntry contentEntry : modifiableModel.getContentEntries()) { if (contentRoot.equals(contentEntry.getFile())) { for (String url : urlsToUnExclude) { contentEntry.removeExcludeFolder(url); } for (String url : urlsToExclude) { contentEntry.addExcludeFolder(url); } break; } } }); }
updateExcludedFolders
293,786
R (@NotNull OrderEntry orderEntry, R value) { return value; }
visitOrderEntry
293,787
R (@NotNull ModuleSourceOrderEntry moduleSourceOrderEntry, R value) { return visitOrderEntry(moduleSourceOrderEntry, value); }
visitModuleSourceOrderEntry
293,788
R (@NotNull LibraryOrderEntry libraryOrderEntry, R value) { return visitOrderEntry(libraryOrderEntry, value); }
visitLibraryOrderEntry
293,789
R (@NotNull ModuleOrderEntry moduleOrderEntry, R value) { return visitOrderEntry(moduleOrderEntry, value); }
visitModuleOrderEntry
293,790
R (@NotNull JdkOrderEntry jdkOrderEntry, R value) { return visitOrderEntry(jdkOrderEntry, value); }
visitJdkOrderEntry
293,791
R (@NotNull ModuleJdkOrderEntry jdkOrderEntry, R value) { return visitJdkOrderEntry(jdkOrderEntry, value); }
visitModuleJdkOrderEntry
293,792
R (@NotNull InheritedJdkOrderEntry inheritedJdkOrderEntry, R initialValue) { return visitJdkOrderEntry(inheritedJdkOrderEntry, initialValue); }
visitInheritedJdkOrderEntry
293,793
DependencyScope (@NotNull Element element) { String scope = element.getAttributeValue(SCOPE_ATTR); if (scope != null) { try { return valueOf(scope); } catch (IllegalArgumentException e) { return COMPILE; } } else { return COMPILE; } }
readExternal
293,794
void (Element element) { if (this != COMPILE) { element.setAttribute(SCOPE_ATTR, name()); } }
writeExternal
293,795
boolean () { return myForProductionCompile; }
isForProductionCompile
293,796
boolean () { return myForProductionRuntime; }
isForProductionRuntime
293,797
boolean () { return myForTestCompile; }
isForTestCompile
293,798
boolean () { return myForTestRuntime; }
isForTestRuntime
293,799
JavaModuleExternalPaths (@NotNull Module module) { return ModuleRootManager.getInstance(module).getModuleExtension(JavaModuleExternalPaths.class); }
getInstance