Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
60,700 | String () { return displayName; } | getDisplayName |
60,701 | Object () { return parent instanceof InternalOperationDescriptor ? ((InternalOperationDescriptor)parent).id : null; } | getParentId |
60,702 | OperationDescriptor () { return parent; } | getParent |
60,703 | String () { return getDisplayName(); } | toString |
60,704 | String () { return this.message; } | getMessage |
60,705 | String () { return this.description; } | getDescription |
60,706 | long () { return this.progress; } | getProgress |
60,707 | long () { return this.total; } | getTotal |
60,708 | String () { return this.unit; } | getUnit |
60,709 | OperationResult () { return this.result; } | getResult |
60,710 | String () { return this.displayName; } | getDisplayName |
60,711 | String () { return this.taskPath; } | getTaskPath |
60,712 | PluginIdentifier () { return this.originPlugin.get(); } | getOriginPlugin |
60,713 | boolean () { return this.upToDate; } | isUpToDate |
60,714 | boolean () { return this.fromCache; } | isFromCache |
60,715 | boolean () { return this.taskExecutionDetails.isIncremental(); } | isIncremental |
60,716 | List<String> () { return this.taskExecutionDetails.getExecutionReasons(); } | getExecutionReasons |
60,717 | TaskOperationDescriptor () { return (TaskOperationDescriptor)super.getDescriptor(); } | getDescriptor |
60,718 | TaskOperationResult () { return (TaskOperationResult)super.getResult(); } | getResult |
60,719 | boolean () { return this.taskExecutionDetails.isIncremental(); } | isIncremental |
60,720 | List<String> () { return this.taskExecutionDetails.getExecutionReasons(); } | getExecutionReasons |
60,721 | long () { return this.startTime; } | getStartTime |
60,722 | long () { return this.endTime; } | getEndTime |
60,723 | String () { return this.skipMessage; } | getSkipMessage |
60,724 | TaskOperationDescriptor () { return (TaskOperationDescriptor)super.getDescriptor(); } | getDescriptor |
60,725 | boolean () { throw Exceptions.unsupportedMethod(TaskExecutionResult.class.getSimpleName() + ".isIncremental()"); } | isIncremental |
60,726 | List<String> () { throw Exceptions.unsupportedMethod(TaskExecutionResult.class.getSimpleName() + ".getExecutionReasons()"); } | getExecutionReasons |
60,727 | InternalTaskExecutionDetails (final boolean incremental, final List<String> executionReasons) { return new InternalTaskExecutionDetails() { @Override public boolean isIncremental() { return incremental; } @Override public List<String> getExecutionReasons() { return executionReasons; } }; } | of |
60,728 | boolean () { return incremental; } | isIncremental |
60,729 | List<String> () { return executionReasons; } | getExecutionReasons |
60,730 | InternalTaskExecutionDetails () { return UNSUPPORTED; } | unsupported |
60,731 | int () { return myLine; } | getLine |
60,732 | int () { return myColumn; } | getColumn |
60,733 | List<File> () { return myClassPath; } | getClassPath |
60,734 | List<File> () { return mySourcePath; } | getSourcePath |
60,735 | List<String> () { return myImplicitImports; } | getImplicitImports |
60,736 | List<EditorReport> () { return myEditorReports; } | getEditorReports |
60,737 | List<String> () { return myExceptions; } | getExceptions |
60,738 | EditorReportSeverity () { return mySeverity; } | getSeverity |
60,739 | String () { return myMessage; } | getMessage |
60,740 | InternalEditorPosition () { return myEditorPosition; } | getPosition |
60,741 | void () { mySerializer = new ToolingSerializer(); } | initToolingSerializer |
60,742 | B () { return myRootModel; } | getRootModel |
60,743 | void (String key, Exception e) { //noinspection UseOfSystemOutOrSystemErr System.err.println(e.getMessage()); tryReportingViaIdeaLogger(e, key); } | reportError |
60,744 | void (Exception e, String key) { try { Class<? extends ModelsHolder> aClass = getClass(); Class<?> loggerClazz = aClass.getClassLoader().loadClass("com.intellij.openapi.diagnostic.Logger"); Method getInstanceMethod = loggerClazz.getMethod("getInstance", Class.class); Object logger = getInstanceMethod.invoke(null, aClas... | tryReportingViaIdeaLogger |
60,745 | boolean (@NotNull Class modelClazz) { String keyPrefix = getModelKeyPrefix(modelClazz); for (String key : myModelsById.keySet()) { if (key.startsWith(keyPrefix)) return true; } return false; } | hasModulesWithModel |
60,746 | void (@NotNull Object model, @NotNull Class modelClazz) { addModel(model, modelClazz, getRootModel()); } | addModel |
60,747 | void (@NotNull Object model, @NotNull Class modelClazz, @NotNull P project) { ProjectIdentifier projectIdentifier = getProjectIdentifier(project); myModelsById.put(extractMapKey(modelClazz, projectIdentifier), model); } | addModel |
60,748 | void (@NotNull Object model, @NotNull Class modelClazz, @NotNull B build) { myModelsById.put(extractMapKey(modelClazz, build.getBuildIdentifier()), model); } | addModel |
60,749 | String (@NotNull Class modelClazz) { return modelClazz.getSimpleName() + modelClazz.getName().hashCode(); } | getModelKeyPrefix |
60,750 | String (@NotNull Class modelClazz, @NotNull ProjectIdentifier projectIdentifier) { String modelKeyPrefix = getModelKeyPrefix(modelClazz); String buildKeyPrefix = getBuildKeyPrefix(projectIdentifier.getBuildIdentifier()); return modelKeyPrefix + '/' + (buildKeyPrefix + projectIdentifier.getProjectPath()); } | extractMapKey |
60,751 | String (@NotNull Class modelClazz, @NotNull BuildIdentifier buildIdentifier) { String modelKeyPrefix = getModelKeyPrefix(modelClazz); String buildKeyPrefix = getBuildKeyPrefix(buildIdentifier); return modelKeyPrefix + '/' + buildKeyPrefix + ":"; } | extractMapKey |
60,752 | String (@NotNull BuildIdentifier buildIdentifier) { String path = buildIdentifier.getRootDir().getPath(); String systemIndependentName = FileUtilRt.toSystemIndependentName(path); return String.valueOf(systemIndependentName.hashCode()); } | getBuildKeyPrefix |
60,753 | ProjectIdentifier (@NotNull P project) { ProjectIdentifier projectIdentifier; if (project instanceof IdeaModule) { // do not use IdeaModule#getProjectIdentifier, it returns project identifier of the root project projectIdentifier = ((IdeaModule)project).getGradleProject().getProjectIdentifier(); } else { projectIdentif... | getProjectIdentifier |
60,754 | String () { return "Models{" + "rootModel=" + myRootModel + ", myModelsById=" + myModelsById + '}'; } | toString |
60,755 | ModelConverter (@NotNull BuildController controller) { return new ToolingSerializerConverter(controller); } | getToolingModelConverter |
60,756 | void ( @NotNull Collection<? extends ProjectImportModelProvider> providers ) { myModelProviders.addAll(providers); } | addProjectImportModelProviders |
60,757 | void (@NotNull Set<Class<?>> targetTypes) { myTargetTypes.addAll(targetTypes); } | addTargetTypes |
60,758 | void () { myUseProjectsLoadedPhase = true; } | prepareForPhasedExecuter |
60,759 | void () { myUseProjectsLoadedPhase = false; } | prepareForNonPhasedExecuter |
60,760 | ModelConverter (@NotNull BuildController controller) { return ModelConverter.NOP; } | getToolingModelConverter |
60,761 | BuildEnvironment (final @Nullable BuildEnvironment buildEnvironment) { if (buildEnvironment == null || buildEnvironment instanceof InternalBuildEnvironment) { return buildEnvironment; } return new InternalBuildEnvironment( () -> { BuildIdentifier buildIdentifier = buildEnvironment.getBuildIdentifier(); return new Inter... | convert |
60,762 | void (BuildController controller) { if (myTargetTypes.isEmpty()) return; try { ProtocolToModelAdapter modelAdapter = ReflectionUtilRt.getField(controller.getClass(), controller, ProtocolToModelAdapter.class, "adapter"); if (modelAdapter == null) return; TargetTypeProvider typeProvider = ReflectionUtilRt.getField(Protoc... | configureAdditionalTypes |
60,763 | Set<ProjectImportModelProvider> (boolean isProjectsLoadedAction) { if (myUseProjectsLoadedPhase) { if (isProjectsLoadedAction) { return myModelProviders.stream() .filter(it -> it.getPhase().equals(GradleModelFetchPhase.PROJECT_LOADED_PHASE)) .collect(Collectors.toSet()); } return myModelProviders.stream() .filter(it ->... | getModelProviders |
60,764 | Build () { return (Build)getRootModel(); } | getMainBuild |
60,765 | List<Build> () { return includedBuilds; } | getIncludedBuilds |
60,766 | void (@NotNull Build includedBuild) { includedBuilds.add(includedBuild); } | addIncludedBuild |
60,767 | List<Build> () { List<Build> result = new ArrayList<>(); result.add(getMainBuild()); result.addAll(includedBuilds); return result; } | getAllBuilds |
60,768 | BuildEnvironment () { return getModel(BuildEnvironment.class); } | getBuildEnvironment |
60,769 | void (@Nullable BuildEnvironment buildEnvironment) { if (buildEnvironment != null) { addModel(buildEnvironment, BuildEnvironment.class); } } | setBuildEnvironment |
60,770 | void (@NotNull final String description, long millis) { performanceTrace.put(description, millis); } | logPerformance |
60,771 | void (@NotNull Consumer<Object> pathsConverter) { super.applyPathsConverter(pathsConverter); BuildEnvironment buildEnvironment = getBuildEnvironment(); if (buildEnvironment != null) { pathsConverter.accept(buildEnvironment); } myBuildsKeyPrefixesMapping = new HashMap<>(); convertPaths(pathsConverter, getMainBuild()); f... | applyPathsConverter |
60,772 | void (@NotNull Consumer<Object> fileMapper, @NotNull Build build) { String originalKey = getBuildKeyPrefix(build.getBuildIdentifier()); fileMapper.accept(build); String currentKey = getBuildKeyPrefix(build.getBuildIdentifier()); if (!originalKey.equals(currentKey)) { myBuildsKeyPrefixesMapping.put(currentKey, originalK... | convertPaths |
60,773 | String (@NotNull BuildIdentifier buildIdentifier) { String currentKey = super.getBuildKeyPrefix(buildIdentifier); String originalKey = myBuildsKeyPrefixesMapping == null ? null : myBuildsKeyPrefixesMapping.get(currentKey); return originalKey == null ? currentKey : originalKey; } | getBuildKeyPrefix |
60,774 | Thread (@NotNull Runnable runnable) { return new Thread(runnable, "idea-tooling-model-converter"); } | newThread |
60,775 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, GradleIcons.class.getClassLoader(), cacheKey, flags); } | load |
60,776 | void (@NotNull IdeaModule gradleModule, @NotNull DataNode<ModuleData> ideModule) { CppProjectImpl cppProject = appendCppProject(gradleModule, ideModule); if (cppProject != null) { CppComponent mainComponent = cppProject.getMainComponent(); Set<File> sourceFolders = mainComponent == null ? new HashSet<>() : getSourceFol... | populateModuleContentRoots |
60,777 | CppProjectImpl (@NotNull IdeaModule gradleModule, @NotNull DataNode<ModuleData> ideModule) { CppProjectImpl cppProject = null; org.gradle.tooling.model.cpp.CppProject gradleCppProject = resolverCtx.getExtraProject(gradleModule, org.gradle.tooling.model.cpp.CppProject.class); if (gradleCppProject != null) { cppProject =... | appendCppProject |
60,778 | CppProjectImpl (@NotNull org.gradle.tooling.model.cpp.CppProject gradleCppProject) { CppProjectImpl cppProject = new CppProjectImpl(); cppProject.setMainComponent(convert(gradleCppProject.getMainComponent())); cppProject.setTestComponent((CppTestSuite)convert(gradleCppProject.getTestComponent())); return cppProject; } | convert |
60,779 | CppComponent (@Nullable org.gradle.tooling.model.cpp.CppComponent component) { if (component == null) return null; CppComponentImpl cppComponent; if (component instanceof org.gradle.tooling.model.cpp.CppTestSuite) { cppComponent = new CppTestSuiteImpl(component.getName(), component.getBaseName()); } else { cppComponent... | convert |
60,780 | CppBinaryImpl (@Nullable org.gradle.tooling.model.cpp.CppBinary binary) { CppBinaryImpl cppBinary; if (binary instanceof CppExecutable) { cppBinary = new CppExecutableImpl(binary.getName(), binary.getBaseName(), binary.getVariantName()); } else if (binary instanceof CppSharedLibrary) { cppBinary = new CppSharedLibraryI... | convert |
60,781 | LinkageDetailsImpl (LinkageDetails details) { LinkageDetailsImpl linkageDetails = new LinkageDetailsImpl(); linkageDetails.setAdditionalArgs(new ArrayList<>(details.getAdditionalArgs())); linkageDetails.setLinkTask(convert(details.getLinkTask())); linkageDetails.setOutputLocation(details.getOutputLocation()); return li... | convert |
60,782 | ExternalTask (Task task) { if (task == null) return null; DefaultExternalTask externalTask = new DefaultExternalTask(); externalTask.setDescription(task.getDescription()); externalTask.setGroup(task.getGroup()); externalTask.setName(task.getName()); externalTask.setQName(task.getPath()); //externalTask.setType(task.); ... | convert |
60,783 | CompilationDetailsImpl (org.gradle.tooling.model.cpp.CompilationDetails details) { CompilationDetailsImpl compilationDetails = new CompilationDetailsImpl(); compilationDetails.setCompileTask(convert(details.getCompileTask())); compilationDetails.setAdditionalArgs(new ArrayList<>(details.getAdditionalArgs())); compilati... | convert |
60,784 | Set<SourceFile> (DomainObjectSet<? extends org.gradle.tooling.model.cpp.SourceFile> sources) { Set<SourceFile> sourceFiles = new LinkedHashSet<>(sources.size()); for (org.gradle.tooling.model.cpp.SourceFile sourceFile : sources) { sourceFiles.add(convert(sourceFile)); } return sourceFiles; } | convertSources |
60,785 | SourceFile (org.gradle.tooling.model.cpp.SourceFile sourceFile) { return new SourceFileImpl(sourceFile.getSourceFile(), sourceFile.getObjectFile()); } | convert |
60,786 | Set<MacroDirective> (DomainObjectSet<? extends org.gradle.tooling.model.cpp.MacroDirective> directives) { Set<MacroDirective> macroDirectives = new LinkedHashSet<>(directives.size()); for (org.gradle.tooling.model.cpp.MacroDirective directive : directives) { macroDirectives.add(convert(directive)); } return macroDirect... | convert |
60,787 | MacroDirective (org.gradle.tooling.model.cpp.MacroDirective directive) { return new MacroDirectiveImpl(directive.getName(), directive.getValue()); } | convert |
60,788 | Set<File> (CppComponent component) { Set<File> result = new LinkedHashSet<>(); for (CppBinary binary : component.getBinaries()) { CompilationDetails compilationDetails = binary.getCompilationDetails(); result.addAll(compilationDetails.getHeaderDirs()); compilationDetails.getSources().forEach(sourceFile -> result.add(so... | getSourceFolders |
60,789 | boolean (String modelName) { return CppProject.class.getName().equals(modelName); } | canBuild |
60,790 | Object (final String modelName, final Project project) { if (!IS_41_OR_BETTER || IS_410_OR_BETTER) { return null; } PluginContainer pluginContainer = project.getPlugins(); if (!pluginContainer.hasPlugin(CppBasePlugin.class)) { if (pluginContainer.hasPlugin(CppPlugin.class)) { project.getLogger().error( "[sync warning] ... | buildAll |
60,791 | Set<SourceFile> (Project project, CppBinary cppBinary, CppCompile cppCompile) { Set<SourceFile> sources = new LinkedHashSet<>(); for (File file : cppBinary.getCppSource().getFiles()) { sources.add(new SourceFileImpl(file, null)); } if (cppCompile.getObjectFileDir().isPresent()) { File objectFileDir = cppCompile.getObje... | getSources |
60,792 | boolean (CppPlatform platform) { Object operatingSystem = callByReflection(platform, "getOperatingSystem"); if (operatingSystem == null) { return false; } Object isWindowsNullable = callByReflection(operatingSystem, "isWindows"); return Boolean.TRUE.equals(isWindowsNullable); } | isWindowsOld |
60,793 | File (LinkExecutable linkExecutable) { File executableFile; RegularFileProperty binaryFile = null; if (IS_47_OR_BETTER) { binaryFile = linkExecutable.getLinkedFile(); } else { try { Object linkedFile = linkExecutable.getClass().getMethod("getBinaryFile").invoke(linkExecutable); if (linkedFile instanceof RegularFileProp... | getExecutableFile |
60,794 | File (Project project, CppBinary cppBinary) { Throwable throwable = null; try { if (cppBinary instanceof ConfigurableComponentWithExecutable) { PlatformToolProvider toolProvider = ((ConfigurableComponentWithExecutable)cppBinary).getPlatformToolProvider(); ToolSearchResult toolSearchResult; if (IS_410_OR_BETTER) { toolS... | findCppCompilerExecutable |
60,795 | ErrorMessageBuilder (@NotNull Project project, @NotNull Exception e) { return ErrorMessageBuilder.create( project, e, "C++ project import errors" ).withDescription("Unable to import C++ project"); } | getErrorMessageBuilder |
60,796 | Object (@NotNull Object receiver, @NotNull String methodName) { Object result = null; try { Method getMethod = receiver.getClass().getMethod(methodName); result = getMethod.invoke(receiver); } catch (NoSuchMethodException e) { Logging.getLogger(CppModelBuilder.class) .warn("Can not find `" + methodName + "` for receive... | callByReflection |
60,797 | String () { return name; } | getName |
60,798 | String () { return baseName; } | getBaseName |
60,799 | void (CppBinary binary) { binaries.add(binary); } | addBinary |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.