Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
60,800 | CppBinary (CppBinary binary) { if (binary instanceof CppSharedLibrary) { return new CppSharedLibraryImpl((CppSharedLibrary)binary); } if (binary instanceof CppStaticLibrary) { return new CppStaticLibraryImpl((CppStaticLibrary)binary); } if (binary instanceof CppExecutable) { return new CppExecutableImpl((CppExecutable)... | newCopy |
60,801 | String () { return name; } | getName |
60,802 | void (String name) { this.name = name; } | setName |
60,803 | String () { return value; } | getValue |
60,804 | void (String value) { this.value = value; } | setValue |
60,805 | ExternalTask () { return compileTask; } | getCompileTask |
60,806 | void (ExternalTask compileTask) { this.compileTask = compileTask; } | setCompileTask |
60,807 | File () { return compilerExecutable; } | getCompilerExecutable |
60,808 | void (File compilerExecutable) { this.compilerExecutable = compilerExecutable; } | setCompilerExecutable |
60,809 | File () { return compileWorkingDir; } | getCompileWorkingDir |
60,810 | void (File compileWorkingDir) { this.compileWorkingDir = compileWorkingDir; } | setCompileWorkingDir |
60,811 | List<File> () { return frameworkSearchPaths; } | getFrameworkSearchPaths |
60,812 | void (@NotNull List<File> frameworkSearchPaths) { this.frameworkSearchPaths = frameworkSearchPaths; } | setFrameworkSearchPaths |
60,813 | List<File> () { return systemHeaderSearchPaths; } | getSystemHeaderSearchPaths |
60,814 | void (@NotNull List<File> systemHeaderSearchPaths) { this.systemHeaderSearchPaths = systemHeaderSearchPaths; } | setSystemHeaderSearchPaths |
60,815 | List<File> () { return userHeaderSearchPaths; } | getUserHeaderSearchPaths |
60,816 | void (@NotNull List<File> userHeaderSearchPaths) { this.userHeaderSearchPaths = userHeaderSearchPaths; } | setUserHeaderSearchPaths |
60,817 | void (@NotNull Set<SourceFile> sources) { this.sources = sources; } | setSources |
60,818 | Set<File> () { return headerDirs; } | getHeaderDirs |
60,819 | void (@NotNull Set<File> headerDirs) { this.headerDirs = headerDirs; } | setHeaderDirs |
60,820 | void (@NotNull Set<MacroDirective> macroDefines) { this.macroDefines = macroDefines; } | setMacroDefines |
60,821 | Set<String> () { return macroUndefines; } | getMacroUndefines |
60,822 | void (@NotNull Set<String> macroUndefines) { this.macroUndefines = macroUndefines; } | setMacroUndefines |
60,823 | List<String> () { return additionalArgs; } | getAdditionalArgs |
60,824 | void (@NotNull List<String> additionalArgs) { this.additionalArgs = additionalArgs; } | setAdditionalArgs |
60,825 | String () { return name; } | getName |
60,826 | String () { return variantName; } | getVariantName |
60,827 | String () { return baseName; } | getBaseName |
60,828 | CompilationDetailsImpl () { return compilationDetails; } | getCompilationDetails |
60,829 | void (@NotNull CompilationDetailsImpl compilationDetails) { this.compilationDetails = compilationDetails; } | setCompilationDetails |
60,830 | LinkageDetailsImpl () { return linkageDetails; } | getLinkageDetails |
60,831 | void (@NotNull LinkageDetailsImpl linkageDetails) { this.linkageDetails = linkageDetails; } | setLinkageDetails |
60,832 | ExternalTask () { return linkTask; } | getLinkTask |
60,833 | void (ExternalTask linkTask) { this.linkTask = linkTask; } | setLinkTask |
60,834 | File () { return outputLocation; } | getOutputLocation |
60,835 | void (File outputLocation) { this.outputLocation = outputLocation; } | setOutputLocation |
60,836 | List<String> () { return additionalArgs; } | getAdditionalArgs |
60,837 | void (@NotNull List<String> additionalArgs) { this.additionalArgs = additionalArgs; } | setAdditionalArgs |
60,838 | File () { return sourceFile; } | getSourceFile |
60,839 | void (File sourceFile) { this.sourceFile = sourceFile; } | setSourceFile |
60,840 | File () { return objectFile; } | getObjectFile |
60,841 | void (File objectFile) { this.objectFile = objectFile; } | setObjectFile |
60,842 | CppComponent () { return mainComponent; } | getMainComponent |
60,843 | void (@Nullable CppComponent mainComponent) { this.mainComponent = mainComponent; } | setMainComponent |
60,844 | CppTestSuite () { return testComponent; } | getTestComponent |
60,845 | void (@Nullable CppTestSuite testComponent) { this.testComponent = testComponent; } | setTestComponent |
60,846 | CoverageDataManager (@NotNull Project project) { return project.getService(CoverageDataManagerImpl.class); } | getInstance |
60,847 | void (@NotNull CoverageSuitesBundle suite) {} | coverageDataCalculated |
60,848 | void (@NotNull VirtualFile fileOrDirectory) { if (myCurrentSuiteRoots != null && VfsUtilCore.isUnder(fileOrDirectory.getPath(), myCurrentSuiteRoots)) { ApplicationManager.getApplication().executeOnPooledThread(() -> { CoverageDataManagerImpl manager = (CoverageDataManagerImpl) CoverageDataManager.getInstance(myProject)... | onFileChange |
60,849 | void (@NotNull VirtualFile fileOrDirectory) { } | onBeforeFileChange |
60,850 | ExternalCoverageWatchManager (@NotNull Project project) { return project.getService(ExternalCoverageWatchManager.class); } | getInstance |
60,851 | void (List<? extends CoverageSuite> suites) { myCurrentSuiteRoots = ContainerUtil.map(suites, suite -> suite.getCoverageDataFileName()); LocalFileSystem fileSystem = LocalFileSystem.getInstance(); myCurrentSuiteRoots.forEach(path -> fileSystem.refreshAndFindFileByPath(path)); myWatchRequests = fileSystem.addRootsToWatc... | addRootsToWatch |
60,852 | void () { if (myWatchRequests == null) return; LocalFileSystem.getInstance().removeWatchedRoots(myWatchRequests); VirtualFileManager.getInstance().removeVirtualFileListener(myContentListener); myWatchRequests = null; myCurrentSuiteRoots = null; } | clearWatches |
60,853 | void (@NotNull VirtualFile contentRoot, @NotNull CoverageSuitesBundle suite, @NotNull CoverageDataManager dataManager, @NotNull ProjectData data, Project project, Annotator annotator) { if (!contentRoot.isValid()) { return; } Map<String, String> normalizedFiles2Files = getNormalizedFiles2FilesMapping(data); final Proje... | annotate |
60,854 | ProjectData (@NotNull ProjectData oldData, @NotNull String oldPath, @NotNull VirtualFile contentRoot) { final ProjectData newData = new ProjectData(); oldData.getClasses().forEach((name, oldClass) -> { String relPath = StringUtil.substringAfter(name, oldPath); String newPath = name; if (relPath != null) { VirtualFile t... | remapData |
60,855 | CoverageDataManager (@NotNull Project project) { return CoverageDataManager.getInstance(project); } | getCoverageDataManager |
60,856 | void (ColoredTreeCellRenderer cellRenderer, @Nls String coverageInfo) { if (coverageInfo != null) { cellRenderer.append(" (" + coverageInfo + ")", SimpleTextAttributes.GRAY_ATTRIBUTES); } } | appendCoverageInfo |
60,857 | void (@NotNull RunConfigurationBase configuration, @NotNull ProcessHandler handler, RunnerSettings runnerSettings) { resetCoverageSuit(configuration); // attach to process termination listener CoverageDataManager.getInstance(configuration.getProject()).attachToProcess(handler, configuration, runnerSettings); } | attachToProcess |
60,858 | void (RunConfigurationBase configuration) { final CoverageEnabledConfiguration covConfig = CoverageEnabledConfiguration.getOrCreate(configuration); // reset coverage suite covConfig.setCurrentCoverageSuite(null); // register new coverage suite Project project = configuration.getProject(); ApplicationManager.getApplicat... | resetCoverageSuit |
60,859 | void (RunConfigurationBase runConfiguration, Element element) { CoverageEnabledConfiguration.getOrCreate(runConfiguration).writeExternal(element); } | doWriteExternal |
60,860 | boolean (@NotNull File candidate) { return true; } | canBeLoaded |
60,861 | boolean () { return false; } | isCoverageByTestApplicable |
60,862 | String () { return myFile.getPath(); } | getCoverageDataFilePath |
60,863 | boolean () { return myFile.exists(); } | ensureFileExists |
60,864 | String () { return mySourceProvider; } | getSourceProvider |
60,865 | boolean () { return ensureFileExists(); } | isValid |
60,866 | CoverageOptionsProvider (Project project) { return project.getService(CoverageOptionsProvider.class); } | getInstance |
60,867 | int () { return myState.myAddOrReplace; } | getOptionToReplace |
60,868 | void (int addOrReplace) { myState.myAddOrReplace = addOrReplace; } | setOptionsToReplace |
60,869 | boolean () { return myState.myActivateViewOnRun; } | activateViewOnRun |
60,870 | void (boolean state) { myState.myActivateViewOnRun = state; } | setActivateViewOnRun |
60,871 | State () { return myState; } | getState |
60,872 | void (@NotNull State state) { myState.myAddOrReplace = state.myAddOrReplace; myState.myActivateViewOnRun = state.myActivateViewOnRun; } | loadState |
60,873 | void (CoverageSuitesBundle newSuite) { super.onSuiteChosen(newSuite); myFileCoverageInfos.clear(); myTestDirCoverageInfos.clear(); myDirCoverageInfos.clear(); myTestDirectories.clear(); } | onSuiteChosen |
60,874 | DirCoverageInfo (@NotNull VirtualFile dir, @NotNull CoverageSuitesBundle currentSuite) { final String path = normalizeFilePath(dir.getPath()); final boolean isInTestContent = myTestDirectories.contains(path); if (!currentSuite.isTrackTestFolders() && isInTestContent) { return null; } return isInTestContent ? myTestDirC... | getDirCoverageInfo |
60,875 | String (@NotNull Project project, @NotNull VirtualFile dir, @NotNull CoverageSuitesBundle currentSuite, @NotNull CoverageDataManager manager) { DirCoverageInfo coverageInfo = getDirCoverageInfo(dir, currentSuite); if (coverageInfo == null) { return null; } if (manager.isSubCoverageActive()) { return coverageInfo.covere... | getDirCoverageInformationString |
60,876 | String (final String filePath) { return normalizeFilePath(filePath); } | getFilePath |
60,877 | String (@NotNull Project project, @NotNull VirtualFile file, @NotNull CoverageSuitesBundle currentSuite, @NotNull CoverageDataManager manager) { final String path = normalizeFilePath(file.getPath()); final FileCoverageInfo coverageInfo = myFileCoverageInfos.get(path); if (coverageInfo == null) { return null; } if (mana... | getFileCoverageInformationString |
60,878 | FileCoverageInfo (@NotNull VirtualFile file, @NotNull final Annotator annotator, @NotNull final ProjectData projectData, @NotNull final Map<String, String> normalizedFiles2Files) { file = file.getCanonicalFile() != null ? file.getCanonicalFile() : file; assert file != null; final String filePath = normalizeFilePath(fil... | collectBaseFileCoverage |
60,879 | DirCoverageInfo (@NotNull final VirtualFile dir, final @NotNull CoverageDataManager dataManager, final Annotator annotator, final ProjectData projectInfo, boolean trackTestFolders, @NotNull final ProjectFileIndex index, @NotNull final CoverageEngine coverageEngine, Set<? super VirtualFile> visitedDirs, @NotNull final M... | collectFolderCoverage |
60,880 | boolean () { // By default returns "true" for backward compatibility return true; } | shouldCollectCoverageInsideLibraryDirs |
60,881 | void (@NotNull final VirtualFile contentRoot, @NotNull final CoverageSuitesBundle suite, final @NotNull CoverageDataManager dataManager, @NotNull final ProjectData data, final Project project, final Annotator annotator) { if (!contentRoot.isValid()) { return; } // TODO: check name filter!!!!! final ProjectFileIndex ind... | annotate |
60,882 | Runnable (@NotNull final CoverageSuitesBundle suite, final @NotNull CoverageDataManager dataManager) { final ProjectData data = suite.getCoverageData(); if (data == null) { return null; } return () -> { final Project project = getProject(); final VirtualFile[] modulesContentRoots = getRoots(project, dataManager, suite)... | createRenewRequest |
60,883 | void (final String dirPath, final DirCoverageInfo info) { myDirCoverageInfos.put(dirPath, info); try { myDirCoverageInfos.put((new File(dirPath)).getCanonicalPath(), info); } catch (IOException e) { //pass } } | annotateSourceDirectory |
60,884 | void (final String dirPath, final DirCoverageInfo info) { myTestDirCoverageInfos.put(dirPath, info); try { myTestDirCoverageInfos.put((new File(dirPath)).getCanonicalPath(), info); } catch (IOException e) { //pass } } | annotateTestDirectory |
60,885 | void (@NotNull final String filePath, @NotNull final FileCoverageInfo info) { myFileCoverageInfos.put(filePath, info); try { myFileCoverageInfos.put((new File(filePath)).getCanonicalPath(), info); } catch (IOException e) { //pass } } | annotateFile |
60,886 | VirtualFile[] (Project project, @NotNull CoverageDataManager dataManager, CoverageSuitesBundle suite) { final ProjectRootManager rootManager = ProjectRootManager.getInstance(project); // find all modules content roots return dataManager.doInReadActionIfProjectOpen(() -> rootManager.getContentRoots()); } | getRoots |
60,887 | int (FileCoverageInfo info) { return calcPercent(info.coveredLineCount, info.totalLineCount); } | calcCoveragePercentage |
60,888 | int (final int covered, final int total) { return total != 0 ? (int)((double)covered / total * 100) : 100; } | calcPercent |
60,889 | String (@NotNull final DirCoverageInfo info) { return CoverageBundle.message("coverage.view.text.files.covered", calcPercent(info.coveredFilesCount, info.totalFilesCount)); } | getFilesCoverageInformationString |
60,890 | FileCoverageInfo (@NotNull final ClassData classData) { final Object[] lines = classData.getLines(); // class data lines = [0, 1, ... count] but first element with index = #0 is fake and isn't // used thus count = length = 1 final int count = lines.length - 1; if (count == 0) { return null; } final FileCoverageInfo inf... | fileInfoForCoveredFile |
60,891 | void (@NotNull FileCoverageInfo info, @Nullable LineData lineData) { if (lineData == null) { // Ignore not src code return; } final int status = lineData.getStatus(); // covered - if src code & covered (or inferred covered) if (status != LineCoverage.NONE) { info.coveredLineCount++; } info.totalLineCount++; } | processLineData |
60,892 | FileCoverageInfo (@NotNull File file) { return null; } | fillInfoForUncoveredFile |
60,893 | long () { return myDate; } | getTimeStamp |
60,894 | void () { myNewToOldLines = null; myOldToNewLines = null; } | clear |
60,895 | boolean () { return myOldContent != null; } | canGetFastMapping |
60,896 | Int2IntMap () { if (myOldToNewLines == null) { myOldToNewLines = doGetLineMapping(true); if (myOldToNewLines == null) return null; } return myOldToNewLines.get(); } | getOldToNewLineMapping |
60,897 | Int2IntMap () { if (myNewToOldLines == null) { myNewToOldLines = doGetLineMapping(false); if (myNewToOldLines == null) return null; } return myNewToOldLines.get(); } | getNewToOldLineMapping |
60,898 | Int2IntMap (Diff.Change change, int firstNLines) { Int2IntMap result = new Int2IntOpenHashMap(); int prevLineInFirst = 0; int prevLineInSecond = 0; while (change != null) { for (int l = 0; l < change.line0 - prevLineInFirst; l++) { result.put(prevLineInFirst + l, prevLineInSecond + l); } prevLineInFirst = change.line0 ... | buildMapping |
60,899 | String () { return CoverageBundle.message("run.with.coverage"); } | getStartActionText |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.