Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
253,000 | String () { return myName; } | getName |
253,001 | void (@NotNull String name) { myName = name; } | setName |
253,002 | void (@Nullable String versionString) { myVersionString = versionString == null || versionString.isEmpty() ? null : versionString; myVersionDefined = true; } | setVersionString |
253,003 | String () { if (myVersionString == null && !myVersionDefined) { String homePath = getHomePath(); if (homePath != null && !homePath.isEmpty()) { setVersionString(getSdkType().getVersionString(this)); } } return myVersionString; } | getVersionString |
253,004 | void () { myVersionDefined = false; myVersionString = null; } | resetVersionString |
253,005 | String () { return myHomePath; } | getHomePath |
253,006 | VirtualFile () { if (myHomePath == null) { return null; } return StandardFileSystems.local().findFileByPath(myHomePath); } | getHomeDirectory |
253,007 | void (@NotNull Element element) { readExternal(element, null); } | readExternal |
253,008 | Element (@NotNull Element parent, @NotNull String childName) { Element child = parent.getChild(childName); if (child == null) throw new InvalidDataException("mandatory element '" + childName + "' is missing: " + parent); return child; } | assertNotMissing |
253,009 | void (@NotNull Element element) { element.setAttribute(ELEMENT_VERSION, "2"); final Element name = new Element(ELEMENT_NAME); name.setAttribute(ATTRIBUTE_VALUE, myName); element.addContent(name); if (mySdkType != null) { final Element sdkType = new Element(ELEMENT_TYPE); sdkType.setAttribute(ATTRIBUTE_VALUE, mySdkType.... | writeExternal |
253,010 | void (String path) { final boolean changes = myHomePath == null ? path != null : !myHomePath.equals(path); myHomePath = path; if (changes) { resetVersionString(); // clear cached value if home path changed } } | setHomePath |
253,011 | ProjectJdkImpl () { ProjectJdkImpl newJdk = new ProjectJdkImpl("", mySdkType); copyTo(newJdk); return newJdk; } | clone |
253,012 | RootProvider () { return myRootProvider; } | getRootProvider |
253,013 | void (@NotNull SdkTypeId newType, @Nullable Element additionalDataElement) { ApplicationManager.getApplication().assertWriteAccessAllowed(); mySdkType = newType; myAdditionalData = additionalDataElement != null ? mySdkType.loadAdditionalData(this, additionalDataElement) : null; } | changeType |
253,014 | void () { if (myDispatcher.hasListeners()) { ApplicationManager.getApplication().runWriteAction(this::fireRootSetChanged); } } | rootsChanged |
253,015 | Sdk () { return ProjectJdkImpl.this; } | get |
253,016 | SdkModificator () { ProjectJdkImpl sdk = clone(); sdk.myOrigin = this; return sdk; } | getSdkModificator |
253,017 | void () { LOG.assertTrue(isWritable()); copyTo(myOrigin); myOrigin = null; Disposer.dispose(this); } | commitChanges |
253,018 | SdkAdditionalData () { return myAdditionalData; } | getSdkAdditionalData |
253,019 | void (SdkAdditionalData data) { myAdditionalData = data; } | setSdkAdditionalData |
253,020 | void (@NotNull VirtualFile root, @NotNull OrderRootType rootType) { myRoots.addRoot(root, rootType); } | addRoot |
253,021 | void (@NotNull String url, @NotNull OrderRootType rootType) { myRoots.addRoot(url, rootType); } | addRoot |
253,022 | void (@NotNull VirtualFile root, @NotNull OrderRootType rootType) { myRoots.removeRoot(root, rootType); } | removeRoot |
253,023 | void (@NotNull String url, @NotNull OrderRootType rootType) { myRoots.removeRoot(url, rootType); } | removeRoot |
253,024 | void (@NotNull OrderRootType rootType) { myRoots.removeAllRoots(rootType); } | removeRoots |
253,025 | void () { myRoots.removeAllRoots(); } | removeAllRoots |
253,026 | boolean () { return myOrigin != null; } | isWritable |
253,027 | String () { return myName + (myVersionDefined ? ": " + myVersionString : "") + " (" + myHomePath + ")"; } | toString |
253,028 | void (@NotNull VirtualFile virtualFile, @NotNull OrderRootType type) { getOrCreateContainer(type).add(virtualFile); } | addRoot |
253,029 | void (@NotNull String url, @NotNull OrderRootType type) { getOrCreateContainer(type).add(url); } | addRoot |
253,030 | void (@NotNull OrderRootType type) { VirtualFilePointerContainer container = myRoots.get(type); if (container != null) { container.clear(); } } | removeAllRoots |
253,031 | void (@NotNull VirtualFile root, @NotNull OrderRootType type) { removeRoot(root.getUrl(), type); } | removeRoot |
253,032 | void (@NotNull String url, @NotNull OrderRootType type) { VirtualFilePointerContainer container = myRoots.get(type); VirtualFilePointer pointer = container == null ? null : container.findByUrl(url); if (pointer != null) { container.remove(pointer); } } | removeRoot |
253,033 | void () { for (VirtualFilePointerContainer myRoot : myRoots.values()) { myRoot.clear(); } } | removeAllRoots |
253,034 | void (@NotNull Element element) { for (PersistentOrderRootType type : OrderRootType.getAllPersistentTypes()) { read(element, type); } if (myNoCopyJars) { myRoots.values().forEach(container -> { for (String root : container.getUrls()) { setNoCopyJars(root); } }); } } | readExternal |
253,035 | void (@NotNull Element element) { for (PersistentOrderRootType type : OrderRootType.getSortedRootTypes()) { write(element, type); } } | writeExternal |
253,036 | void (@NotNull String url) { if (StandardFileSystems.JAR_PROTOCOL.equals(VirtualFileManager.extractProtocol(url))) { String path = VirtualFileManager.extractPath(url); final VirtualFileSystem fileSystem = StandardFileSystems.jar(); if (fileSystem instanceof JarCopyingFileSystem) { ((JarCopyingFileSystem)fileSystem).set... | setNoCopyJars |
253,037 | void (@NotNull Element roots, @NotNull PersistentOrderRootType type) { String sdkRootName = type.getSdkRootName(); Element child = sdkRootName == null ? null : roots.getChild(sdkRootName); if (child == null) { return; } List<Element> composites = child.getChildren(); if (composites.size() != 1) { LOG.error("Single chil... | read |
253,038 | void (@NotNull Element roots, @NotNull PersistentOrderRootType type) { String sdkRootName = type.getSdkRootName(); if (sdkRootName == null) { return; } Element e = new Element(sdkRootName); roots.addContent(e); Element composite = new Element("root"); composite.setAttribute("type", "composite"); e.addContent(composite)... | write |
253,039 | void (@NotNull RootSetChangedListener listener) { throw new RuntimeException(); } | addRootSetChangedListener |
253,040 | void (@NotNull RootSetChangedListener listener, @NotNull Disposable parentDisposable) { throw new RuntimeException(); } | addRootSetChangedListener |
253,041 | void (@NotNull RootSetChangedListener listener) { throw new RuntimeException(); } | removeRootSetChangedListener |
253,042 | VirtualFilePointerContainer (@NotNull OrderRootType rootType) { VirtualFilePointerContainer roots = myRoots.get(rootType); if (roots == null) { roots = VirtualFilePointerManager.getInstance().createContainer(myParent, myListener); myRoots.put(rootType, roots); } return roots; } | getOrCreateContainer |
253,043 | boolean (@NotNull Project project, @NotNull VirtualFile file) { ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex(); return fileIndex.isInContent(file) || fileIndex.isExcluded(file); } | isUnder |
253,044 | Collection<Project> (@NotNull VirtualFile file) { ProjectManager projectManager = ProjectManager.getInstanceIfCreated(); if (projectManager == null) { return Collections.emptyList(); } List<Project> result = new SmartList<>(); ReadAction.run(()-> { for (Project project : projectManager.getOpenProjects()) { if (isUnder(... | getProjectsForFile |
253,045 | ProjectLoadingErrorsNotifier (@NotNull Project project) { return project.getService(ProjectLoadingErrorsNotifier.class); } | getInstance |
253,046 | boolean () { return myCanIgnore; } | canIgnore |
253,047 | boolean () { return true; } | isValid |
253,048 | boolean (String name) { return names.contains(name); } | isUnloaded |
253,049 | boolean () { return !names.isEmpty(); } | hasUnloaded |
253,050 | String () { return names.toString(); } | toString |
253,051 | ModuleManagerEx (@NotNull Project project) { return (ModuleManagerEx)getInstance(project); } | getInstanceEx |
253,052 | void (@NotNull MutableEntityStorage builder, @NotNull MutableEntityStorage unloadedEntityBuilder) { } | unloadNewlyAddedModulesIfPossible |
253,053 | UnloadedModulesListStorage (@NotNull Project project) { return project.getService(UnloadedModulesListStorage.class); } | getInstance |
253,054 | UnloadedModulesNameHolder () { return new UnloadedModulesNameHolderImpl(moduleNames); } | getUnloadedModuleNameHolder |
253,055 | void (@NotNull Collection<String> value) { this.moduleNames.clear(); this.moduleNames.addAll(value); } | setUnloadedModuleNames |
253,056 | void (@NotNull Collection<String> value) { this.moduleNames.addAll(value); } | addUnloadedModuleNames |
253,057 | UnloadedModulesListStorage () { return this; } | getState |
253,058 | void (@NotNull UnloadedModulesListStorage state) { moduleNames.clear(); moduleNames.addAll(state.moduleNames); } | loadState |
253,059 | Collection<Object> () { return Collections.emptySet(); } | loadSchemes |
253,060 | void (@Nullable Function1<? super Object, Boolean> retainFilter) { } | reload |
253,061 | void (final @NotNull Object scheme, final boolean replaceExisting) { } | addScheme |
253,062 | List<Object> () { return Collections.emptyList(); } | getAllSchemes |
253,063 | Object (@NotNull String schemeName) { return null; } | findSchemeByName |
253,064 | boolean (@NotNull Object scheme) { return false; } | removeScheme |
253,065 | Collection<String> () { return Collections.emptySet(); } | getAllSchemeNames |
253,066 | File () { //noinspection ConstantConditions return null; } | getRootDirectory |
253,067 | void (@Nullable String schemeName, boolean notify) { } | setCurrentSchemeName |
253,068 | void (@Nullable String s) { } | setCurrentSchemeName |
253,069 | Object (@NotNull String resourceName, @Nullable Object requestor, @Nullable PluginDescriptor pluginDescriptor) { return null; } | loadBundledScheme |
253,070 | boolean (Object scheme) { return true; } | isMetadataEditable |
253,071 | void () { } | save |
253,072 | SettingsCategory () { return SettingsCategory.OTHER; } | getSettingsCategory |
253,073 | void (@NotNull Sequence<? extends LoadBundleSchemeRequest<Object>> providers) { } | loadBundledSchemes |
253,074 | OutOfProcessRetryListener () { String property = System.getProperty("intellij.build.test.retries.failedClasses.file"); if (property == null) return null; return new OutOfProcessRetryListener(property); } | getListenerForOutOfProcessRetry |
253,075 | void (String className, Throwable e) { if (IgnoreException.isIgnoringThrowable(e)) { return; } myRetryClasses.add(className); } | addError |
253,076 | void (Test test, Throwable e) { if (IgnoreException.isIgnoringThrowable(e)) { return; } String className = getClassName(test); myRetryClasses.add(className); } | addError |
253,077 | void (Test test, AssertionFailedError e) { addError(test, e); } | addFailure |
253,078 | void (Test test) { } | endTest |
253,079 | void (Test test) { } | startTest |
253,080 | String (Test test) { if (test instanceof Describable) { Description description = ((Describable)test).getDescription(); String name = getClassName(description); if (name != null) return name; } return test.getClass().getName(); } | getClassName |
253,081 | String (Description description) { try { return description.getClassName(); } catch (NoSuchMethodError e) { final String displayName = description.getDisplayName(); Matcher matcher = Pattern.compile("(.*)\\((.*)\\)").matcher(displayName); return matcher.matches() ? matcher.group(2) : displayName; } } | getClassName |
253,082 | boolean (String className, String moduleName) { return true; } | matches |
253,083 | String () { return "ALL_CLASSES"; } | toString |
253,084 | boolean (String className) { return matches(className, null); } | matches |
253,085 | Pattern (String filter) { if (!PATTERNS_ARE_ESCAPED) { filter = filter.replace("$", "\\$").replace(".", "\\.").replace("*", ".*"); } return Pattern.compile(filter); } | compilePattern |
253,086 | boolean (Collection<Pattern> patterns, String className) { return patterns.stream().anyMatch(pattern -> pattern.matcher(className).matches()); } | matchesAnyPattern |
253,087 | boolean (String className, @Nullable String moduleName) { return first.matches(className, moduleName) && second.matches(className, moduleName); } | matches |
253,088 | String () { return "TestClassesFilter.And{" + first + ", " + second + '}'; } | toString |
253,089 | boolean (String className, String moduleName) { return TestClassesFilter.matchesAnyPattern(myPatterns, className); } | matches |
253,090 | String () { return "PatternListTestClassFilter{patterns=" + myPatterns + '}'; } | toString |
253,091 | boolean (String className, String moduleName) { return myClassNames.contains(className); } | matches |
253,092 | String () { return "NameListTestClassFilter{names=" + myClassNames + '}'; } | toString |
253,093 | String (final @NotNull Path path) { Path absPath = path.toAbsolutePath(); String fileName = absPath.getFileName().toString(); if (!FileUtilRt.extensionEquals(fileName, "class")) { return null; } if (!includeUnconventionallyNamedTests) { if (fileName.endsWith("Test.class")) { return getClassFQN(absPath); } } else { Stri... | computeClassName |
253,094 | String (final @NotNull Path path) { String fqn = StringUtil .trimEnd(classPathRoot.relativize(path).toString(), ".class") .replace(path.getFileSystem().getSeparator(), "."); return IGNORED_CLASS_NAMES.contains(fqn) ? null : fqn; } | getClassFQN |
253,095 | List<String> (@NotNull Path current) { if (!Files.exists(current)) { return Collections.emptyList(); } try (Stream<Path> walk = Files.walk(current)) { return walk .filter(path -> Files.isRegularFile(path)) .map(path -> computeClassName(path)) .filter(name -> name != null) .toList(); } catch (IOException e) { throw new ... | findAndStoreTestClasses |
253,096 | Collection<String> () { return classNameList; } | getClasses |
253,097 | TestClassesFilter (String classFilterName) { String patterns = getTestPatterns(); if (!StringUtil.isEmpty(patterns)) { System.out.println("Using patterns: [" + patterns + "]"); return new PatternListTestClassFilter(StringUtil.split(patterns, ";")); } List<String> testGroupNames = getTestGroups(); if (testGroupNames.con... | calcTestClassFilter |
253,098 | List<String> () { return StringUtil.split(System.getProperty("intellij.build.test.groups", System.getProperty("idea.test.group", "")).trim(), ";"); } | getTestGroups |
253,099 | boolean (Class<?> testCaseClass, String moduleName) { if (shouldAddTestCase(testCaseClass, moduleName, true) && testCaseClass != myFirstTestClass && testCaseClass != myLastTestClass && TestFrameworkUtil.canRunTest(testCaseClass)) { // fair bucketing initialization if (IS_FAIR_BUCKETING && BUCKETS.isEmpty()) return true... | isClassTestCase |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.