Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
---|---|---|
3,700 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask value) { copyOnWrite(); instance.setConstantSearchTask(value); return this; }
|
setConstantSearchTask
|
3,701 |
Builder ( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask.Builder builderForValue) { copyOnWrite(); instance.setConstantSearchTask(builderForValue.build()); return this; }
|
setConstantSearchTask
|
3,702 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.ConstantSearchTask value) { copyOnWrite(); instance.mergeConstantSearchTask(value); return this; }
|
mergeConstantSearchTask
|
3,703 |
Builder () { copyOnWrite(); instance.clearConstantSearchTask(); return this; }
|
clearConstantSearchTask
|
3,704 |
boolean () { return instance.hasCacheDownloadMessage(); }
|
hasCacheDownloadMessage
|
3,705 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CacheDownloadMessage value) { copyOnWrite(); instance.setCacheDownloadMessage(value); return this; }
|
setCacheDownloadMessage
|
3,706 |
Builder ( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CacheDownloadMessage.Builder builderForValue) { copyOnWrite(); instance.setCacheDownloadMessage(builderForValue.build()); return this; }
|
setCacheDownloadMessage
|
3,707 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CacheDownloadMessage value) { copyOnWrite(); instance.mergeCacheDownloadMessage(value); return this; }
|
mergeCacheDownloadMessage
|
3,708 |
Builder () { copyOnWrite(); instance.clearCacheDownloadMessage(); return this; }
|
clearCacheDownloadMessage
|
3,709 |
boolean () { return instance.hasCommitAndDownloadStatistics(); }
|
hasCommitAndDownloadStatistics
|
3,710 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CommitAndDownloadStatistics value) { copyOnWrite(); instance.setCommitAndDownloadStatistics(value); return this; }
|
setCommitAndDownloadStatistics
|
3,711 |
Builder ( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CommitAndDownloadStatistics.Builder builderForValue) { copyOnWrite(); instance.setCommitAndDownloadStatistics(builderForValue.build()); return this; }
|
setCommitAndDownloadStatistics
|
3,712 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.CommitAndDownloadStatistics value) { copyOnWrite(); instance.mergeCommitAndDownloadStatistics(value); return this; }
|
mergeCommitAndDownloadStatistics
|
3,713 |
Builder () { copyOnWrite(); instance.clearCommitAndDownloadStatistics(); return this; }
|
clearCommitAndDownloadStatistics
|
3,714 |
boolean () { return ((bitField0_ & 0x00000001) != 0); }
|
hasSessionId
|
3,715 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { value.getClass(); sessionId_ = value; bitField0_ |= 0x00000001; }
|
setSessionId
|
3,716 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { value.getClass(); if (sessionId_ != null && sessionId_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.getDefaultInstance()) { sessionId_ = org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.newBuilder(sessionId_).mergeFrom(value).buildPartial(); } else { sessionId_ = value; } bitField0_ |= 0x00000001; }
|
mergeSessionId
|
3,717 |
void () { sessionId_ = null; bitField0_ = (bitField0_ & ~0x00000001); }
|
clearSessionId
|
3,718 |
boolean () { return ((bitField0_ & 0x00000002) != 0); }
|
hasType
|
3,719 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type value) { type_ = value.getNumber(); bitField0_ |= 0x00000002; }
|
setType
|
3,720 |
void () { bitField0_ = (bitField0_ & ~0x00000002); type_ = 1; }
|
clearType
|
3,721 |
boolean () { return ((bitField0_ & 0x00000004) != 0); }
|
hasControllerMessage
|
3,722 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { value.getClass(); controllerMessage_ = value; bitField0_ |= 0x00000004; }
|
setControllerMessage
|
3,723 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { value.getClass(); if (controllerMessage_ != null && controllerMessage_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.getDefaultInstance()) { controllerMessage_ = org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.newBuilder(controllerMessage_).mergeFrom(value).buildPartial(); } else { controllerMessage_ = value; } bitField0_ |= 0x00000004; }
|
mergeControllerMessage
|
3,724 |
void () { controllerMessage_ = null; bitField0_ = (bitField0_ & ~0x00000004); }
|
clearControllerMessage
|
3,725 |
boolean () { return ((bitField0_ & 0x00000008) != 0); }
|
hasBuilderMessage
|
3,726 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { value.getClass(); builderMessage_ = value; bitField0_ |= 0x00000008; }
|
setBuilderMessage
|
3,727 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { value.getClass(); if (builderMessage_ != null && builderMessage_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.getDefaultInstance()) { builderMessage_ = org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.newBuilder(builderMessage_).mergeFrom(value).buildPartial(); } else { builderMessage_ = value; } bitField0_ |= 0x00000008; }
|
mergeBuilderMessage
|
3,728 |
void () { builderMessage_ = null; bitField0_ = (bitField0_ & ~0x00000008); }
|
clearBuilderMessage
|
3,729 |
boolean () { return ((bitField0_ & 0x00000010) != 0); }
|
hasFailure
|
3,730 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { value.getClass(); failure_ = value; bitField0_ |= 0x00000010; }
|
setFailure
|
3,731 |
void (org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { value.getClass(); if (failure_ != null && failure_ != org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.getDefaultInstance()) { failure_ = org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.newBuilder(failure_).mergeFrom(value).buildPartial(); } else { failure_ = value; } bitField0_ |= 0x00000010; }
|
mergeFailure
|
3,732 |
void () { failure_ = null; bitField0_ = (bitField0_ & ~0x00000010); }
|
clearFailure
|
3,733 |
Builder () { return (Builder) DEFAULT_INSTANCE.createBuilder(); }
|
newBuilder
|
3,734 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); }
|
newBuilder
|
3,735 |
boolean () { return instance.hasSessionId(); }
|
hasSessionId
|
3,736 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { copyOnWrite(); instance.setSessionId(value); return this; }
|
setSessionId
|
3,737 |
Builder ( org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID.Builder builderForValue) { copyOnWrite(); instance.setSessionId(builderForValue.build()); return this; }
|
setSessionId
|
3,738 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.UUID value) { copyOnWrite(); instance.mergeSessionId(value); return this; }
|
mergeSessionId
|
3,739 |
Builder () { copyOnWrite(); instance.clearSessionId(); return this; }
|
clearSessionId
|
3,740 |
boolean () { return instance.hasType(); }
|
hasType
|
3,741 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.Type value) { copyOnWrite(); instance.setType(value); return this; }
|
setType
|
3,742 |
Builder () { copyOnWrite(); instance.clearType(); return this; }
|
clearType
|
3,743 |
boolean () { return instance.hasControllerMessage(); }
|
hasControllerMessage
|
3,744 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { copyOnWrite(); instance.setControllerMessage(value); return this; }
|
setControllerMessage
|
3,745 |
Builder ( org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage.Builder builderForValue) { copyOnWrite(); instance.setControllerMessage(builderForValue.build()); return this; }
|
setControllerMessage
|
3,746 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage value) { copyOnWrite(); instance.mergeControllerMessage(value); return this; }
|
mergeControllerMessage
|
3,747 |
Builder () { copyOnWrite(); instance.clearControllerMessage(); return this; }
|
clearControllerMessage
|
3,748 |
boolean () { return instance.hasBuilderMessage(); }
|
hasBuilderMessage
|
3,749 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { copyOnWrite(); instance.setBuilderMessage(value); return this; }
|
setBuilderMessage
|
3,750 |
Builder ( org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage.Builder builderForValue) { copyOnWrite(); instance.setBuilderMessage(builderForValue.build()); return this; }
|
setBuilderMessage
|
3,751 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.BuilderMessage value) { copyOnWrite(); instance.mergeBuilderMessage(value); return this; }
|
mergeBuilderMessage
|
3,752 |
Builder () { copyOnWrite(); instance.clearBuilderMessage(); return this; }
|
clearBuilderMessage
|
3,753 |
boolean () { return instance.hasFailure(); }
|
hasFailure
|
3,754 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { copyOnWrite(); instance.setFailure(value); return this; }
|
setFailure
|
3,755 |
Builder ( org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure.Builder builderForValue) { copyOnWrite(); instance.setFailure(builderForValue.build()); return this; }
|
setFailure
|
3,756 |
Builder (org.jetbrains.jps.api.CmdlineRemoteProto.Message.Failure value) { copyOnWrite(); instance.mergeFailure(value); return this; }
|
mergeFailure
|
3,757 |
Builder () { copyOnWrite(); instance.clearFailure(); return this; }
|
clearFailure
|
3,758 |
CompileScopeTestBuilder () { return new CompileScopeTestBuilder(true); }
|
rebuild
|
3,759 |
CompileScopeTestBuilder () { return new CompileScopeTestBuilder(false); }
|
make
|
3,760 |
CompileScopeTestBuilder () { return new CompileScopeTestBuilder(true); }
|
recompile
|
3,761 |
CompileScopeTestBuilder () { myTargetTypes.addAll(JavaModuleBuildTargetType.ALL_TYPES); return this; }
|
allModules
|
3,762 |
CompileScopeTestBuilder (JpsModule module) { myTargets.add(new ModuleBuildTarget(module, JavaModuleBuildTargetType.PRODUCTION)); myTargets.add(new ModuleBuildTarget(module, JavaModuleBuildTargetType.TEST)); return this; }
|
module
|
3,763 |
CompileScopeTestBuilder () { myTargetTypes.add(ArtifactBuildTargetType.INSTANCE); return this; }
|
allArtifacts
|
3,764 |
CompileScopeTestBuilder (JpsArtifact artifact) { myTargets.add(new ArtifactBuildTarget(artifact)); return this; }
|
artifact
|
3,765 |
CompileScopeTestBuilder (BuildTargetType<?>... targets) { myTargetTypes.addAll(Arrays.asList(targets)); return this; }
|
targetTypes
|
3,766 |
CompileScopeTestBuilder (BuildTarget<?> target, String path) { Set<File> files = myFiles.get(target); if (files == null) { files = FileCollectionFactory.createCanonicalFileSet(); myFiles.put(target, files); } files.add(new File(path)); return this; }
|
file
|
3,767 |
CompileScope () { final Collection<BuildTargetType<?>> typesToForceBuild; if (myForceBuild) { typesToForceBuild = new SmartHashSet<>(); typesToForceBuild.addAll(myTargetTypes); for (BuildTarget<?> target : myTargets) { typesToForceBuild.add(target.getTargetType()); } } else { typesToForceBuild = Collections.emptyList(); } return new CompileScopeImpl(myTargetTypes, typesToForceBuild, myTargets, myFiles); }
|
build
|
3,768 |
CompileScopeTestBuilder () { myTargetTypes.addAll(TargetTypeRegistry.getInstance().getTargetTypes()); return this; }
|
all
|
3,769 |
CompileScopeTestBuilder (JpsArtifact... artifacts) { for (JpsArtifact artifact : artifacts) { myTargets.add(new ArtifactBuildTarget(artifact)); } return this; }
|
artifacts
|
3,770 |
String (BuildTarget<?> target) { return target.getTargetType().getTypeId() + ":" + target.getId(); }
|
getTargetIdWithTypeId
|
3,771 |
void (BuildMessage msg) { if (msg.getKind() == BuildMessage.Kind.ERROR) { myErrorMessages.add(msg); myUpToDate = false; } else if (msg.getKind() == BuildMessage.Kind.WARNING) { myWarnMessages.add(msg); } else { myInfoMessages.add(msg); } if (msg instanceof DoneSomethingNotification) { myUpToDate = false; } }
|
processMessage
|
3,772 |
String () { return myMappingsDump; }
|
getMappingsDump
|
3,773 |
void () { assertTrue("Project sources weren't up to date", myUpToDate); }
|
assertUpToDate
|
3,774 |
void () { assertFalse("Build not failed as expected", isSuccessful()); }
|
assertFailed
|
3,775 |
boolean () { return myErrorMessages.isEmpty(); }
|
isSuccessful
|
3,776 |
void () { if (!isSuccessful()) { fail("Build failed.\n" + "Errors:\n" + StringUtil.join(myErrorMessages, "\n") + "\n" + "Info messages:\n" + StringUtil.join(myInfoMessages, "\n")); } }
|
assertSuccessful
|
3,777 |
List<BuildMessage> (@NotNull BuildMessage.Kind kind) { if (kind == BuildMessage.Kind.ERROR) return myErrorMessages; else if (kind == BuildMessage.Kind.WARNING) return myWarnMessages; else return myInfoMessages; }
|
getMessages
|
3,778 |
void (Collection<String> paths) { super.logDeletedFiles(paths); for (String path : paths) { myDeletedFiles.add(new File(path)); } }
|
logDeletedFiles
|
3,779 |
void () { myCompiledFiles.clear(); myDeletedFiles.clear(); }
|
clearFilesData
|
3,780 |
void () { myLogLines.clear(); }
|
clearLog
|
3,781 |
void (String builderName, File[] baseDirs, String... paths) { assertRelativePaths(baseDirs, myCompiledFiles.get(builderName), paths); }
|
assertCompiled
|
3,782 |
void (File[] baseDirs, String... paths) { assertRelativePaths(baseDirs, myDeletedFiles, paths); }
|
assertDeleted
|
3,783 |
void (File[] baseDirs, Collection<File> files, String[] expected) { List<String> relativePaths = new ArrayList<>(); for (File file : files) { String path = file.getAbsolutePath(); for (File baseDir : baseDirs) { if (baseDir != null && FileUtil.isAncestor(baseDir, file, false)) { path = FileUtil.getRelativePath(baseDir, file); break; } } relativePaths.add(FileUtil.toSystemIndependentName(path)); } UsefulTestCase.assertSameElements(relativePaths, expected); }
|
assertRelativePaths
|
3,784 |
void (String message) { myLogLines.add(message); }
|
logLine
|
3,785 |
String (final File... baseDirs) { return StringUtil.join(myLogLines, s -> { for (File dir : baseDirs) { if (dir != null) { String path = FileUtil.toSystemIndependentName(dir.getAbsolutePath()) + "/"; if (s.startsWith(path)) { return s.substring(path.length()); } } } return s; }, "\n"); }
|
getFullLog
|
3,786 |
boolean () { return true; }
|
isEnabled
|
3,787 |
void (String path, String newName) { try { File file = new File(FileUtil.toSystemDependentName(path)); assertTrue("File " + file.getAbsolutePath() + " doesn't exist", file.exists()); final File tempFile = new File(file.getParentFile(), "__" + newName); FileUtil.rename(file, tempFile); File newFile = new File(file.getParentFile(), newName); FileUtil.copyContent(tempFile, newFile); FileUtil.delete(tempFile); change(newFile.getPath()); } catch (IOException e) { throw new RuntimeException(e); } }
|
rename
|
3,788 |
void (final String outputPath, TestFileSystemBuilder expected) { expected.build().assertDirectoryEqual(new File(FileUtil.toSystemDependentName(outputPath))); }
|
assertOutput
|
3,789 |
void (final String outputPath, DirectoryContentSpec expected) { DirectoryContentSpecKt.assertMatches(new File(outputPath), expected); }
|
assertOutput
|
3,790 |
void (JpsModule module, TestFileSystemBuilder expected) { String outputUrl = JpsJavaExtensionService.getInstance().getOutputUrl(module, false); assertNotNull(outputUrl); assertOutput(JpsPathUtil.urlToPath(outputUrl), expected); }
|
assertOutput
|
3,791 |
void (JpsModule module, DirectoryContentSpec expected) { String outputUrl = JpsJavaExtensionService.getInstance().getOutputUrl(module, false); assertNotNull(outputUrl); assertOutput(JpsPathUtil.urlToPath(outputUrl), expected); }
|
assertOutput
|
3,792 |
void (String filePath) { change(filePath, null); }
|
change
|
3,793 |
void (String filePath, final @Nullable String newContent) { try { File file = new File(FileUtil.toSystemDependentName(filePath)); assertTrue("File " + file.getAbsolutePath() + " doesn't exist", file.exists()); if (newContent != null) { FileUtil.writeToFile(file, newContent); } long oldTimestamp = FSOperations.lastModified(file); long time = System.currentTimeMillis(); setLastModified(file, time); if (FSOperations.lastModified(file) <= oldTimestamp) { setLastModified(file, time + 1); long newTimeStamp = FSOperations.lastModified(file); if (newTimeStamp <= oldTimestamp) { //Mac OS and some versions of Linux truncates timestamp to nearest second setLastModified(file, time + 1000); newTimeStamp = FSOperations.lastModified(file); assertTrue("Failed to change timestamp for " + file.getAbsolutePath(), newTimeStamp > oldTimestamp); } sleepUntil(newTimeStamp); } } catch (IOException e) { throw new RuntimeException(e); } }
|
change
|
3,794 |
void (long time) { //we need this to ensure that the file won't be treated as changed by user during compilation and therefore marked for recompilation long delta; while ((delta = time - System.currentTimeMillis()) > 0) { TimeoutUtil.sleep(delta); } }
|
sleepUntil
|
3,795 |
void (File file, long time) { boolean updated = file.setLastModified(time); assertTrue("Cannot modify timestamp for " + file.getAbsolutePath(), updated); }
|
setLastModified
|
3,796 |
void (String filePath) { File file = new File(FileUtil.toSystemDependentName(filePath)); assertTrue("File " + file.getAbsolutePath() + " doesn't exist", file.exists()); final boolean deleted = FileUtil.delete(file); assertTrue("Cannot delete file " + file.getAbsolutePath(), deleted); }
|
delete
|
3,797 |
JpsSdk<JpsDummyElement> (final String name) { try { String pathToRtJar = ClasspathBootstrap.getResourcePath(Object.class); String path = pathToRtJar == null ? null : FileUtil.toSystemIndependentName(new File(pathToRtJar).getCanonicalPath()); return addJdk(name, path); } catch (IOException e) { throw new RuntimeException(e); } }
|
addJdk
|
3,798 |
JpsSdk<JpsDummyElement> (final String name, @Nullable String jdkClassesRoot) { String homePath = System.getProperty("java.home"); String versionString = System.getProperty("java.version"); JpsTypedLibrary<JpsSdk<JpsDummyElement>> jdk = myModel.getGlobal().addSdk(name, homePath, versionString, JpsJavaSdkType.INSTANCE); if (jdkClassesRoot != null) { jdk.addRoot(JpsPathUtil.pathToUrl(jdkClassesRoot), JpsOrderRootType.COMPILED); } return jdk.getProperties(); }
|
addJdk
|
3,799 |
String () { return StringUtil.decapitalize(StringUtil.trimStart(getName(), "test")); }
|
getProjectName
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.