Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
63,300 | boolean () { return false; } | isDirectory |
63,301 | boolean () { return myBeforeFile.isValid() && myAfterFile.isValid(); } | isValid |
63,302 | VirtualFile () { return myBeforeFile.getParent(); } | getParent |
63,303 | VirtualFile[] () { return EMPTY_ARRAY; } | getChildren |
63,304 | OutputStream (Object requestor, long newModificationStamp, long newTimeStamp) { throw new UnsupportedOperationException(); } | getOutputStream |
63,305 | long () { return myBeforeFile.getTimeStamp(); } | getTimeStamp |
63,306 | long () { return myBeforeFile.getLength(); } | getLength |
63,307 | long () { return myBeforeFile.getModificationStamp(); } | getModificationStamp |
63,308 | void (boolean asynchronous, boolean recursive, Runnable postRunnable) { } | refresh |
63,309 | InputStream () { throw new UnsupportedOperationException(); } | getInputStream |
63,310 | FileType () { return myBeforeFile.getFileType(); } | getFileType |
63,311 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TestDataGroupVirtualFile file = (TestDataGroupVirtualFile)o; if (!myAfterFile.equals(file.myAfterFile)) return false; if (!myBeforeFile.equals(file.myBeforeFile)) return false; return true; } | equals |
63,312 | int () { int result = myBeforeFile.hashCode(); result = 31 * result + myAfterFile.hashCode(); return result; } | hashCode |
63,313 | TestDataGroupFileSystem () { return (TestDataGroupFileSystem)VirtualFileManager.getInstance().getFileSystem(PROTOCOL); } | getTestDataGroupFileSystem |
63,314 | String (VirtualFile beforeFile, VirtualFile afterFile) { return beforeFile.getPath() + GROUP_FILES_SEPARATOR + afterFile.getPath(); } | getPath |
63,315 | String (@NotNull String path) { String[] parts = path.split(GROUP_FILES_SEPARATOR); if (parts.length != 2) { return super.extractPresentableUrl(path); } // extractPresentableUrl is called from PsiAwareFileEditorManagerImpl#getFileTooltipText and CopyPathsAction#getPaths. // First one wraps the return value with FileUti... | extractPresentableUrl |
63,316 | VirtualFile (@NotNull String path) { String[] parts = path.split(GROUP_FILES_SEPARATOR); if (parts.length != 2) { return null; } String beforePath = parts[0]; String afterPath = parts[1]; if (StringUtil.isEmpty(beforePath) || StringUtil.isEmpty(afterPath)) { return null; } LocalFileSystem localFileSystem = LocalFileSys... | findFileByPathInner |
63,317 | boolean (@NotNull PsiElement element) { if (!(element instanceof PsiClass inspectionClass)) { return false; } if (!PsiUtil.isPluginProject(element.getProject())) { return false; } String inspectionClassName = inspectionClass.getName(); return inspectionClassName != null && inspectionClassName.endsWith(INSPECTION_CLASS_... | isApplicable |
63,318 | String () { return DevKitBundle.message("inspection.renamer.option.name"); } | getOptionName |
63,319 | boolean () { return PropertiesComponent.getInstance().getBoolean(PROPERTY_RENAME_DESCRIPTION_AND_SHORT_NAME, true); } | isEnabled |
63,320 | void (boolean enabled) { PropertiesComponent.getInstance().setValue(PROPERTY_RENAME_DESCRIPTION_AND_SHORT_NAME, enabled); } | setEnabled |
63,321 | AutomaticRenamer (PsiElement element, String newName, Collection<UsageInfo> usages) { return new InspectionAutomaticRenamer((PsiClass)element, newName); } | createRenamer |
63,322 | String (String inspectionClassName) { return StringUtil.trimEnd(inspectionClassName, INSPECTION_CLASS_SUFFIX); } | getDescriptionFileName |
63,323 | XmlAttribute (PsiClass inspectionClass) { Extension extension = InspectionDescriptionInfo.findExtension(inspectionClass); return extension == null ? null : extension.getXmlTag().getAttribute("shortName"); } | getInspectionShortNameAttribute |
63,324 | boolean (PsiClass inspectionClass) { Module module = ModuleUtilCore.findModuleForPsiElement(inspectionClass); if (module == null) { return false; } return InspectionDescriptionInfo.create(module, inspectionClass).getShortNameMethod() != null; } | isGetShortNameMethodOverridden |
63,325 | String () { return DevKitBundle.message("inspection.renamer.dialog.title"); } | getDialogTitle |
63,326 | String () { return DevKitBundle.message("inspection.renamer.dialog.description"); } | getDialogDescription |
63,327 | String () { return DevKitBundle.message("inspection.renamer.entity.name"); } | entityName |
63,328 | void (List<UsageInfo> result, boolean searchInStringsAndComments, boolean searchInNonJavaFiles, List<? super UnresolvableCollisionUsageInfo> unresolvedUsages, Map<PsiElement, String> allRenames) { super.findUsages(result, searchInStringsAndComments, searchInNonJavaFiles, unresolvedUsages, allRenames); if (allRenames ==... | findUsages |
63,329 | void (@NotNull Project project, @Nullable Module module, JavaParameters javaParameters) { Sdk jdk = javaParameters.getJdk(); if (jdk == null) { return; } ParametersList vm = javaParameters.getVMParametersList(); if (PsiUtil.isIdeaProject(project)) { if (!vm.hasProperty(SYSTEM_CL_PROPERTY) && !vm.getList().contains("--a... | patchJavaParameters |
63,330 | void (@NotNull Project project, @NotNull Sdk jdk, @NotNull ParametersList vm) { var sdkVersion = ((JavaSdk)jdk.getSdkType()).getVersion(jdk); if (sdkVersion != null && sdkVersion.isAtLeast(JavaSdkVersion.JDK_17)) { var scope = ProjectScope.getContentScope(project); var files = ReadAction.compute(() -> FilenameIndex.get... | appendAddOpensWhenNeeded |
63,331 | boolean (Project project, Module module, String qualifiedName) { UserDataHolder holder = module == null ? project : module; Key<Boolean> cacheKey = LOADER_VALID; Boolean result = holder.getUserData(cacheKey); if (result == null) { result = ReadAction.compute(() -> { //noinspection RedundantCast return DumbService.getIn... | loaderValid |
63,332 | JComponent () { return anchor; } | getAnchor |
63,333 | void (@Nullable JComponent anchor) { this.anchor = anchor; myModuleLabel.setAnchor(anchor); myVMParameters.setAnchor(anchor); myProgramParameters.setAnchor(anchor); } | setAnchor |
63,334 | void (@NotNull PluginRunConfiguration prc) { myModules.setSelectedModule(prc.getModule()); getVMParameters().setText(prc.VM_PARAMETERS); getProgramParameters().setText(prc.PROGRAM_PARAMETERS); myJrePathEditor.setPathOrName(prc.getAlternativeJrePath(), prc.isAlternativeJreEnabled()); } | resetEditorFrom |
63,335 | void (@NotNull PluginRunConfiguration prc) { prc.setModule(myModules.getSelectedModule()); prc.VM_PARAMETERS = getVMParameters().getText(); prc.PROGRAM_PARAMETERS = getProgramParameters().getText(); prc.setAlternativeJrePath(myJrePathEditor.getJrePathOrName()); prc.setAlternativeJreEnabled(myJrePathEditor.isAlternative... | applyEditorTo |
63,336 | JComponent () { myModules.fillModules(myPRC.getProject(), PluginModuleType.getInstance()); JPanel wholePanel = new JPanel(new GridBagLayout()); myVMParameters.setText(DevKitBundle.message("vm.parameters")); myVMParameters.setComponent(new RawCommandLineEditor()); myVMParameters.getComponent().setDialogCaption(myVMParam... | createEditor |
63,337 | RawCommandLineEditor () { return myVMParameters.getComponent(); } | getVMParameters |
63,338 | RawCommandLineEditor () { return myProgramParameters.getComponent(); } | getProgramParameters |
63,339 | List<String> (@Nullable ProductInfo productInfo) { if (productInfo != null && !productInfo.getBootClassPathJarNames().isEmpty()) { return productInfo.getBootClassPathJarNames(); } return List.of( // log4j, jdom and trove4j needed for running on branch 202 and older "log4j.jar", "jdom.jar", "trove4j.jar", "openapi.jar",... | getJarFileNames |
63,340 | String () { return ALTERNATIVE_JRE_PATH; } | getAlternativeJrePath |
63,341 | void (String ALTERNATIVE_JRE_PATH) { this.ALTERNATIVE_JRE_PATH = ALTERNATIVE_JRE_PATH; } | setAlternativeJrePath |
63,342 | boolean () { return ALTERNATIVE_JRE_PATH_ENABLED; } | isAlternativeJreEnabled |
63,343 | void (boolean ALTERNATIVE_JRE_PATH_ENABLED) { this.ALTERNATIVE_JRE_PATH_ENABLED = ALTERNATIVE_JRE_PATH_ENABLED; } | setAlternativeJreEnabled |
63,344 | void (ParametersList list, @Nullable String value) { if (value == null) return; for (String parameter : value.split(" ")) { if (parameter != null && parameter.length() > 0) { list.add(parameter); } } } | fillParameterList |
63,345 | String () { final Module module = getModule(); return module != null ? module.getName() : myModuleName != null ? myModuleName : ""; } | compute |
63,346 | void (Module module) { myModule = module; } | setModule |
63,347 | RunConfiguration (@NotNull Project project) { PluginRunConfiguration runConfiguration = new PluginRunConfiguration(project, this, ""); if (runConfiguration.VM_PARAMETERS == null) { runConfiguration.VM_PARAMETERS = DEFAULT_PARAMETERS; } else { runConfiguration.VM_PARAMETERS += DEFAULT_PARAMETERS; } return runConfigurati... | createTemplateConfiguration |
63,348 | boolean (@NotNull Project project) { return ModuleUtil.hasModulesOfType(project, PluginModuleType.getInstance()); } | isApplicable |
63,349 | RunConfiguration (@Nullable String name, @NotNull RunConfiguration template) { PluginRunConfiguration pluginRunConfiguration = (PluginRunConfiguration)template; if (pluginRunConfiguration.getModule() == null) { Collection<Module> modules = ModuleUtil.getModulesOfType(pluginRunConfiguration.getProject(), PluginModuleTyp... | createConfiguration |
63,350 | String () { return "plugin"; } | getTag |
63,351 | String () { return "reference.dialogs.rundebug.devkit.PluginConfigurationType"; } | getHelpTopic |
63,352 | RunConfigurationSingletonPolicy () { return RunConfigurationSingletonPolicy.SINGLE_INSTANCE_ONLY; } | getSingletonPolicy |
63,353 | void (final String sandboxHome) { File sandboxSystemPath = new File(sandboxHome, "system"); File systemPath = new File(PathManager.getSystemPath()); File[] runningIdeaLicenses = systemPath.listFiles(new PatternFilenameFilter(IDEA_KEY_FILE_PATTERN)); if (runningIdeaLicenses != null) { for (File license : runningIdeaLice... | copyIDEALicense |
63,354 | PsiElementVisitor (@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return UastHintedVisitorAdapter.create(holder.getFile().getLanguage(), new AbstractUastNonRecursiveVisitor() { @Override public boolean visitCallExpression(@NotNull UCallExpression expression) { if (isAwtRgbColorConstructor(expression)) { In... | buildInternalVisitor |
63,355 | boolean (@NotNull UCallExpression expression) { if (isAwtRgbColorConstructor(expression)) { Integer grayValue = getGrayValue(expression); if (grayValue != null) { PsiElement sourcePsi = expression.getSourcePsi(); if (sourcePsi != null && DevKitInspectionUtil.isClassAvailable(holder, GRAY_CLASS_NAME)) { holder.registerP... | visitCallExpression |
63,356 | boolean (@NotNull UCallExpression call) { List<UExpression> callParams = call.getValueArguments(); if (callParams.size() != 3) return false; PsiMethod constructor = call.resolve(); if (constructor == null || !constructor.isConstructor()) return false; PsiClass constructorClass = constructor.getContainingClass(); if (co... | isAwtRgbColorConstructor |
63,357 | Integer (@NotNull UCallExpression constructorCall) { List<UExpression> constructorParams = constructorCall.getValueArguments(); UExpression redParam = constructorParams.get(0); Integer red = evaluateColorValue(redParam); if (red == null) return null; UExpression greenParam = constructorParams.get(1); UExpression bluePa... | getGrayValue |
63,358 | Integer (@NotNull UExpression expression) { Object evaluatedExpression = expression.evaluate(); if (evaluatedExpression instanceof Integer value) { return value; } return null; } | evaluateColorValue |
63,359 | String () { return "InspectionUsingGrayColors"; } | getShortName |
63,360 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); UCallExpression awtGrayColorConstructor = UastContextKt.toUElement(element, UCallExpression.class); if (awtGrayColorConstructor == null) return; UastCodeGenerationPlugin generationPlugin = UastCodeG... | applyFix |
63,361 | StreamEx<GlobalSearchScope> (Module module) { // Try search in narrow scopes first return StreamEx.<Supplier<GlobalSearchScope>>of( () -> GlobalSearchScope.EMPTY_SCOPE, () -> module.getModuleScope(false), module::getModuleWithDependenciesScope, () -> { GlobalSearchScope[] scopes = ContainerUtil.map2Array(ModuleUtilCore... | searchScopes |
63,362 | StreamEx<PsiDirectory> (Module module, DescriptionType descriptionType) { final JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(module.getProject()); final PsiPackage psiPackage = javaPsiFacade.findPackage(descriptionType.getDescriptionFolder()); if (psiPackage == null) return StreamEx.empty(); return searchSco... | allDescriptionDirs |
63,363 | PsiDirectory[] (Module module, DescriptionType descriptionType) { final JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(module.getProject()); final PsiPackage psiPackage = javaPsiFacade.findPackage(descriptionType.getDescriptionFolder()); if (psiPackage != null) { return psiPackage.getDirectories(GlobalSearchSc... | getDescriptionsDirs |
63,364 | String (PsiClass aClass) { String descriptionDir = ""; PsiClass each = aClass; while (each != null) { String name = each.getName(); if (StringUtil.isEmptyOrSpaces(name)) { return null; } descriptionDir = name + descriptionDir; each = each.getContainingClass(); } return descriptionDir; } | getDescriptionDirName |
63,365 | boolean (PsiClass epClass) { return findCandidate(epClass) == null; } | skipIfNotRegistered |
63,366 | boolean (PsiClass epClass) { ExtensionCandidate candidate = findCandidate(epClass); assert candidate != null; DomElement domElement = DomManager.getDomManager(epClass.getProject()).getDomElement(candidate.pointer.getElement()); if (!(domElement instanceof Extension)) return false; @SuppressWarnings("unchecked") Generic... | skipOptionalBeforeAfter |
63,367 | String (Module module, PsiClass psiClass) { return DevKitBundle.message("inspections.intention.description.not.found"); } | getHasNotDescriptionError |
63,368 | String () { return DevKitBundle.message("inspections.intention.description.no.before.after.template"); } | getHasNotBeforeAfterError |
63,369 | ExtensionCandidate (PsiClass epClass) { return ContainerUtil.getOnlyItem(ExtensionLocatorKt.locateExtensionsByPsiClass(epClass)); } | findCandidate |
63,370 | boolean (@NotNull ProblemsHolder holder) { return DevKitInspectionUtil.isAllowedInPluginsOnly(holder.getFile()); } | isAllowed |
63,371 | PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(holder.getProject()); PsiFile file = holder.getFile(); GlobalSearchScope resolveScope = file.getResolveScope(); PsiClass languageClass = psiFacade.findClass(Language.class.getName(), resolveScope... | buildInternalVisitor |
63,372 | boolean (@NotNull UField field) { PsiType fieldType = field.getType(); if (myMapType.isAssignableFrom(fieldType)) { PsiClass keyClass = getKeyClass(fieldType); if (keyClass != null && isLeakable(keyClass)) { PsiElement typeElement = getTypeElement(field); //noinspection UElementAsPsi PsiElement element = typeElement ==... | visitField |
63,373 | boolean (@Nullable PsiClass keyClass) { return exists( myBaseClasses, baseClass -> isInheritorOrSelf(keyClass, baseClass, true) ); } | isLeakable |
63,374 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); assert isJavaTypeElement(element); PsiTypeElement stringTypeElement = PsiElementFactory.getInstance(project) .createTypeElementFromText(myText, element.getContext()); JavaCodeStyleManager.getInstanc... | applyFix |
63,375 | boolean (@NotNull PsiElement element) { return element instanceof PsiTypeElement && element.getLanguage().is(JavaLanguage.INSTANCE); } | isJavaTypeElement |
63,376 | boolean (PsiClass epClass) { return false; } | skipOptionalBeforeAfter |
63,377 | boolean (ProblemsHolder holder, Module module, PsiClass psiClass) { throw new IllegalStateException("must be implemented for " + getClass()); } | checkDynamicDescription |
63,378 | boolean (ProblemsHolder holder, Module module, PsiClass psiClass, UClass uClass) { String descriptionDir = getDescriptionDir(module, psiClass); if (StringUtil.isEmptyOrSpaces(descriptionDir)) { return false; } for (PsiDirectory description : getDescriptionsDirs(module)) { PsiDirectory dir = description.findSubdirectory... | checkFixedDescription |
63,379 | boolean (@NotNull VirtualFile dir) { boolean hasBefore = false; boolean hasAfter = false; for (VirtualFile file : dir.getChildren()) { String name = file.getName(); if (name.endsWith(".template")) { if (name.startsWith("before.")) { hasBefore = true; } else if (name.startsWith("after.")) { hasAfter = true; } } } return... | hasBeforeAndAfterTemplate |
63,380 | String (Module module, PsiClass psiClass) { return DescriptionCheckerUtil.getDescriptionDirName(psiClass); } | getDescriptionDir |
63,381 | boolean (@NotNull Property property) { if (RegistryPropertiesAnnotatorKt.isRegistryPropertiesFile(property.getContainingFile())) { final String name = property.getName(); return name != null && RegistryPropertiesAnnotatorKt.isImplicitUsageKey(name); } return false; } | isUsed |
63,382 | PsiElementVisitor (@NotNull final ProblemsHolder holder, boolean isOnTheFly) { return UastHintedVisitorAdapter.create(holder.getFile().getLanguage(), new AbstractUastNonRecursiveVisitor() { @Override public boolean visitCallExpression(@NotNull UCallExpression node) { if (!node.isMethodNameOneOf(List.of(CREATE_ACTION_TO... | buildInternalVisitor |
63,383 | boolean (@NotNull UCallExpression node) { if (!node.isMethodNameOneOf(List.of(CREATE_ACTION_TOOLBAR_METHOD_NAME, CREATE_ACTION_POPUP_MENU_METHOD_NAME))) { return SKIP_CHILDREN; } PsiMethod method = node.resolve(); if (method != null && requiresSpecifiedActionPlace(method) && node.getValueArgumentCount() > 0) { String m... | visitCallExpression |
63,384 | boolean (@NotNull PsiMethod method) { PsiClass aClass = method.getContainingClass(); if (aClass != null && ActionManager.class.getName().equals(aClass.getQualifiedName())) { PsiParameter[] parameters = method.getParameterList().getParameters(); if (parameters.length > 0 && parameters[0].getType() instanceof PsiClassTyp... | requiresSpecifiedActionPlace |
63,385 | boolean (UExpression parameter) { Object evaluatedExpression = parameter.evaluate(); if (evaluatedExpression instanceof String stringValue && (stringValue.isEmpty() || "unknown".equals(stringValue))) { return true; } return false; } | actionPlaceIsUnspecified |
63,386 | String () { return "UnspecifiedActionsPlace"; } | getShortName |
63,387 | boolean (@NotNull PsiFile file) { return isAllowed(file, DevKitInspectionUtil::isPluginFile); } | isAllowedInPluginsOnly |
63,388 | boolean (@NotNull PsiFile file) { return isAllowed(file, __ -> true); } | isAllowed |
63,389 | boolean (@NotNull ProblemsHolder holder, @NonNls String classFqn) { return JavaPsiFacade.getInstance(holder.getProject()).findClass(classFqn, holder.getFile().getResolveScope()) != null; } | isClassAvailable |
63,390 | boolean (@NotNull PsiFile file, @NotNull Predicate<? super PsiFile> predicate) { if (ApplicationManager.getApplication().isUnitTestMode()) return true; // always run in tests VirtualFile vFile = file.getVirtualFile(); if (vFile == null) return false; if (TestSourcesFilter.isTestSources(vFile, file.getProject())) return... | isAllowed |
63,391 | boolean (@NotNull PsiFile file) { Module module = ModuleUtilCore.findModuleForPsiElement(file); if (module == null) { return false; } return PluginModuleType.isPluginModuleOrDependency(module) || PsiUtil.isPluginModule(module); } | isInPluginModule |
63,392 | boolean (@NotNull PsiFile file) { String path = file.getVirtualFile().getPath(); boolean isPlatform = path.contains("/platform/") && !path.contains("/platform/cwm-") && !path.contains("/platform/rd-"); // Rider lives in other repository, but also kind-of platform for Rider IDE boolean isRider = path.contains("/Rider/Fr... | isPluginFile |
63,393 | String () { return myClassName; } | getClassName |
63,394 | String () { return myDescriptionFolder; } | getDescriptionFolder |
63,395 | boolean () { return myFixedDescriptionFilename; } | isFixedDescriptionFilename |
63,396 | boolean (@NotNull ProblemsHolder holder) { return super.isAllowed(holder) && DevKitInspectionUtil.isClassAvailable(holder, ActionUpdateThreadAware.class.getName()); } | isAllowed |
63,397 | JvmElementVisitor<Boolean> (@NotNull Project project, @NotNull HighlightSink sink, boolean isOnTheFly) { return new DefaultJvmElementVisitor<>() { @Override public Boolean visitClass(@NotNull JvmClass clazz) { if (clazz.getClassKind() != JvmClassKind.CLASS || clazz.hasModifier(JvmModifier.ABSTRACT) || !JvmInheritanceUt... | buildVisitor |
63,398 | Boolean (@NotNull JvmClass clazz) { if (clazz.getClassKind() != JvmClassKind.CLASS || clazz.hasModifier(JvmModifier.ABSTRACT) || !JvmInheritanceUtil.isInheritor(clazz, ActionUpdateThreadAware.class.getName())) { return false; } boolean isAnAction = false; boolean hasUpdateMethod = false; JBIterable<JvmReferenceType> su... | visitClass |
63,399 | boolean (@NotNull DomElementAnnotationHolder holder) { return DevKitInspectionUtil.isAllowed(holder.getFileElement().getFile()); } | isAllowed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.