Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
41,000 | StructClass () { return classStruct; } | getClassStruct |
41,001 | List<ClassWrapperNode> () { return subclasses; } | getSubclasses |
41,002 | boolean (Type elementType, String className, String element, String descriptor) { String value = elementType == Type.ELEMENT_CLASS ? className : element; return value == null || value.length() <= 2 || !isValidIdentifier(elementType == Type.ELEMENT_METHOD, value) || KEYWORDS.contains(value) || elementType == Type.ELEMEN... | toBeRenamed |
41,003 | boolean (boolean isMethod, String identifier) { assert identifier != null : "Null identifier passed to the isValidIdentifier() method."; assert !identifier.isEmpty() : "Empty identifier passed to the isValidIdentifier() method."; if (isMethod && (identifier.equals(CodeConstants.INIT_NAME) || identifier.equals(CodeConst... | isValidIdentifier |
41,004 | String (String fullName, String shortName) { if (shortName == null) { return "class_" + (classCounter++); } int index = 0; while (index < shortName.length() && Character.isDigit(shortName.charAt(index))) { index++; } if (index == 0 || index == shortName.length()) { return "class_" + (classCounter++); } else { String na... | getNextClassName |
41,005 | String (String className, String field, String descriptor) { return "field_" + (fieldCounter++); } | getNextFieldName |
41,006 | String (String className, String method, String descriptor) { return "method_" + (methodCounter++); } | getNextMethodName |
41,007 | String (String fullName) { return fullName.substring(fullName.lastIndexOf('/') + 1); } | getSimpleClassName |
41,008 | String (String fullName, String newName) { return fullName.substring(0, fullName.lastIndexOf('/') + 1) + newName; } | replaceSimpleClassName |
41,009 | void (String[] args) { getMessage("com.example.welcomeMessage2", "our App", BUNDLE_NAME); } | main |
41,010 | void (String[] args) { int i = 0; i++; System.out.println(i); <selection>MyClass.getMessage("com.example.welcomeMessage3", "our App", BUNDLE_NAME)</selection>; } | main |
41,011 | void (String[] args) { System.out.println(message1("sam<caret>e.name")); } | main |
41,012 | void (String[] args) { @org.jetbrains.annotations.PropertyKey(resourceBundle = "Bundle1") String property; property = "sam<caret>e.name"; } | main |
41,013 | void (String[] args) { System.out.print(getMessage("com.example.localization.welcomeMessage")); } | main |
41,014 | void ( GenTestt<?> obj ) { } | a |
41,015 | void ( AnotherGenTestt<?> obj ) { } | b |
41,016 | void ( Predicatte<?> obj ) { } | c |
41,017 | void ( AnotherPredicatte<?> obj ) { } | d |
41,018 | void () { String camelCase<TYPO descr="Typo: In word 'Ttest'">Ttest</TYPO> = "she is reading"; String <TYPO descr="Typo: In word 'ttest'">ttest</TYPO> = "she is reading"; } | method |
41,019 | String () { return "CONASTANT"; } | foo |
41,020 | void (Test first, Test... rest) { } | a |
41,021 | void (Testt first, Testt... rest) { } | b |
41,022 | void ( GenTest<?> obj ) { } | a |
41,023 | void ( AnotherGenTest<?> obj ) { } | b |
41,024 | void ( Predicate<?> obj ) { } | c |
41,025 | void ( AnotherPredicate<?> obj ) { } | d |
41,026 | void (String parameter) { } | method |
41,027 | void (String[] args) { System.out.println("1"); new String("<TYPO descr="Typo: In word 'CONASTANT'">CONASTANT</TYPO>"); Integer.valueOf("<TYPO descr="Typo: In word 'CONASTANT'">CONASTANT</TYPO>"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat(" CONASTANT"); SimpleDateFormat simpleDateFormat2 = new SimpleDate... | main |
41,028 | String () { System.out.println("<TYPO descr="Typo: In word 'CONASTANT'">CONASTANT</TYPO>"); return null; } | foo |
41,029 | String () { return <warning descr="String 'Foo Bar' is not properly capitalized. It should have sentence capitalization">"Foo B<caret>ar"</warning>; } | getName1 |
41,030 | String () { return "Foo bar"; } | getName1 |
41,031 | String () { if (true) return "Foo bar"; else return "Foo Boo"; } | getName |
41,032 | String () { return (<warning descr="String 'Hello World' is not properly capitalized. It should have sentence capitalization">"Hello World"</warning>); } | getName1 |
41,033 | String (boolean a, boolean b) { return (a ? <warning descr="String 'Hello World' is not properly capitalized. It should have sentence capitalization">"Hello World"</warning> : b ? (<warning descr="String 'Goodbye World' is not properly capitalized. It should have sentence capitalization">"Goodbye World"</warning>) : ""... | getName2 |
41,034 | String (Map<String, String> map) { return map.getOrDefault("key", <warning descr="String 'Hello World' is not properly capitalized. It should have sentence capitalization">"Hello World"</warning>); } | getOrDefaultTest |
41,035 | void (boolean b) { foo(b ? <warning descr="String 'Hello World' is not properly capitalized. It should have sentence capitalization">"Hello World"</warning> : "Hello world"); } | testConsume |
41,036 | String () { if (true) return <warning descr="String 'Foo bar' is not properly capitalized. It should have title capitalization">"Foo bar"</warning>; else return <warning descr="String 'Foo boo' is not properly capitalized. It should have title capitalization">"Foo <caret>boo"</warning>; } | getName |
41,037 | String () { return "Compare with Clip_board"; } | getName1 |
41,038 | String () { return ""; } | getName |
41,039 | String () { return "Use .java *.java _Java ~java <caret>Files"; } | getName |
41,040 | String () { return "Foo\nBar"; } | getName |
41,041 | void () { new ConstructorArgument(<warning descr="String 'Foo bar' is not properly capitalized. It should have title capitalization">"Foo bar"</warning>); } | create |
41,042 | String () { return getName(); } | getName |
41,043 | String () { return <warning descr="String 'Foo bar' is not properly capitalized. It should have title capitalization">"Foo\nb<caret>ar"</warning>; } | getName |
41,044 | String () { return <warning descr="String 'Use .java *.java _java ~java files' is not properly capitalized. It should have title capitalization">"Use .java *.java _java ~java <caret>files"</warning>; } | getName |
41,045 | String () { return <warning descr="String 'Compare with clip_board' is not properly capitalized. It should have title capitalization">"Compare <caret>with clip_board"</warning>; } | getName1 |
41,046 | void (String text) { consume(text); } | get |
41,047 | void () {} | foo |
41,048 | String () { return <warning descr="Hardcoded string literal: \"Hello\"">"Hello"</warning>; } | foo4 |
41,049 | void (String[] args) { ActionListener listener = new ActionListener(){ { final String test = <warning descr="Hardcoded string literal: \"problem reported twice\"">"problem reported twice"</warning>; } public void actionPerformed(final ActionEvent e) { } }; } | main |
41,050 | void (final ActionEvent e) { } | actionPerformed |
41,051 | String (String s) { return s.isEmpty() ? "" : s; } | internEmpty |
41,052 | String (String s) { return notNullize(s, ""); } | notNullize |
41,053 | String (String s, String def) { return s == null ? def : s; } | notNullize |
41,054 | String (int column) { return <warning descr="Reference to non-localized string is used where localized string is expected">getCol(column).getLocalizedName()</warning>; } | getColumnName2 |
41,055 | void (String s) { bar(new InnerTest(<warning descr="Hardcoded string literal: \"Literal\"">"Literal"</warning>) { public void run() { } }); } | foo |
41,056 | void (InnerTest t) { } | bar |
41,057 | Object[][] () { return new Object[][]{ {1, 2, (new String[][]{{"aaa"}})} }; } | testNonNls |
41,058 | Object[][] () { return new Object[][]{ {1, 2, (new String[][]{{<warning descr="Hardcoded string literal: \"aaa\"">"aaa"</warning>}})} }; } | testNls |
41,059 | String () { return "text"; } | foo |
41,060 | String () { return "text"; } | foo |
41,061 | String () { return <warning descr="Hardcoded string literal: \"text\"">"text"</warning>; } | foo |
41,062 | void (String[] args) { System.out.println("ABC = " + ABC); } | main |
41,063 | void (String[] args) { System.out.println("ABC = " + ABC); } | main |
41,064 | ThreeState (@NotNull PsiElement contextElement, @NotNull PsiFile psiFile, int offset) { ULiteralExpression literal = UastContextKt.toUElement(contextElement.getParent(), ULiteralExpression.class); return literal != null && !DumbService.isDumb(psiFile.getProject()) && JavaI18nUtil.mustBePropertyKey(literal, null) ? Thre... | shouldSkipAutopopup |
41,065 | String () { String keyText = super.getKeyText(); final String keyPrefix = getKeyPrefix(); if (keyPrefix != null) keyText = keyPrefix + keyText; return keyText; } | getKeyText |
41,066 | void (Object property, Set<Object> variants) { String key = ((IProperty)property).getUnescapedKey(); final String keyPrefix = getKeyPrefix(); if (keyPrefix != null && key != null) { if (!key.startsWith(keyPrefix)) return; key = key.substring(keyPrefix.length()); super.addKey(key, variants); } super.addKey(property, var... | addKey |
41,067 | String () { if (!myPrefixEvaluated) { for(PsiElement curParent = PsiTreeUtil.getParentOfType(getElement().getParent().getParent(),XmlTag.class); curParent instanceof XmlTag curParentTag; curParent = curParent.getParent()) { if ("bundle".equals(curParentTag.getLocalName()) && Arrays.binarySearch(XmlUtil.JSTL_FORMAT_URIS... | getKeyPrefix |
41,068 | boolean () { return myDynamicPrefix; } | isDynamicPrefix |
41,069 | boolean (@NotNull PsiElement target) { return PropertyReferenceBase.isPropertyPsi(target); } | acceptsTarget |
41,070 | boolean (@NotNull PsiReferenceService.Hints hints) { if (hints == PsiReferenceService.Hints.HIGHLIGHTED_REFERENCES) return false; return super.acceptsHint(hints); } | acceptsHint |
41,071 | boolean (@NotNull PsiElement target) { return target instanceof PsiFile && PropertiesImplUtil.isPropertiesFile((PsiFile)target); } | acceptsTarget |
41,072 | PropertiesFoldingSettings () { return ApplicationManager.getApplication().getService(PropertiesFoldingSettings.class); } | getInstance |
41,073 | void (boolean fold) { myFoldPlaceholdersToContext = fold; } | setFoldPlaceholdersToContext |
41,074 | boolean () { return myFoldPlaceholdersToContext; } | isFoldPlaceholdersToContext |
41,075 | PropertiesFoldingSettings () { return this; } | getState |
41,076 | void (@NotNull final PropertiesFoldingSettings state) { XmlSerializerUtil.copyBean(state, this); } | loadState |
41,077 | boolean (PsiElement element) { return PsiTreeUtil.getChildOfAnyType(element, OuterLanguageElement.class, JspXmlTagBase.class) == null; } | isNonDynamicAttribute |
41,078 | boolean (@NotNull PsiElement element, PsiReferenceService.@NotNull Hints hints) { if (!myProvider.acceptsHint(hints)) return false; return super.acceptsHints(element, hints); } | acceptsHints |
41,079 | boolean (@NotNull PsiElement target) { return myProvider.acceptsTarget(target); } | acceptsTarget |
41,080 | void (@NotNull final PsiReferenceRegistrar registrar) { JavaClassReferenceProvider CLASS_REFERENCE_PROVIDER = new JavaClassReferenceProvider() { @Override public boolean isSoft() { return true; } }; registrar.registerReferenceProvider(PsiJavaPatterns.psiElement(PropertyValueImpl.class), new PsiReferenceProvider() { @Ov... | registerReferenceProviders |
41,081 | boolean () { return true; } | isSoft |
41,082 | boolean (@NotNull PsiElement target) { return target instanceof PsiClass; } | acceptsTarget |
41,083 | boolean (@NotNull PsiElement element, PsiReferenceService.@NotNull Hints hints) { if (hints == PsiReferenceService.Hints.HIGHLIGHTED_REFERENCES) return false; return super.acceptsHints(element, hints); } | acceptsHints |
41,084 | void (@NotNull final PsiReferenceRegistrar registrar) { UastReferenceRegistrar.registerUastReferenceProvider(registrar, injectionHostUExpression(), new UastPropertiesReferenceProvider(true), PsiReferenceRegistrar.LOWER_PRIORITY); UastReferenceRegistrar.registerUastReferenceProvider(registrar, injectionHostUExpression()... | registerReferenceProviders |
41,085 | boolean (@NotNull PsiElement target) { return target instanceof PsiFile; } | acceptsTarget |
41,086 | boolean (@NotNull PsiReferenceService.Hints hints) { if (hints == PsiReferenceService.Hints.HIGHLIGHTED_REFERENCES) return false; return super.acceptsHint(hints); } | acceptsHint |
41,087 | void (@NotNull IProperty property, @NotNull List<? super FoldingDescriptor> result) { ProgressManager.getInstance().executeProcessUnderProgress(() -> ReferencesSearch.search(property.getPsiElement()).forEach((PsiReference reference) -> !tryToFoldReference(reference, property, result)), getOrCreateIndicator()); } | fold |
41,088 | ProgressIndicator () { ProgressIndicator progress = ProgressIndicatorProvider.getGlobalProgressIndicator(); if (progress == null) { progress = new EmptyProgressIndicator(); progress.start(); } progress.setIndeterminate(false); return progress; } | getOrCreateIndicator |
41,089 | boolean (@NotNull PsiReference reference, @NotNull IProperty property, @NotNull List<? super FoldingDescriptor> result) { int before = result.size(); PsiElement referenceElement = reference.getElement(); // all arguments[i+1..] are considered template arguments String key = property.getUnescapedKey(); if (key == null) ... | tryToFoldReference |
41,090 | PsiElement[] (@NotNull PsiElement referenceElement) { PsiExpression expression = PsiTreeUtil.getParentOfType(referenceElement, PsiExpression.class, false); if (expression == null) return null; PsiElement parent = expression.getParent(); if (!(parent instanceof PsiExpressionList)) return null; PsiExpression[] arguments ... | getJavaArguments |
41,091 | PsiElement[] (@NotNull PsiElement referenceElement) { PsiElement expression = referenceElement.getParent(); if (expression == null) return null; List<PsiElement> arguments = new ArrayList<>(); for (PsiElement e = expression.getNextSibling(); e != null; e = e.getNextSibling()) { if (e instanceof PsiComment || e instance... | getKotlinArguments |
41,092 | boolean (@NotNull ASTNode node) { return true; } | isCollapsedByDefault |
41,093 | PsiClass () { return JavaPsiFacade.getInstance(myProject).findClass("java.util.ResourceBundle", GlobalSearchScope.allScope(myProject)); } | getResourceBundle |
41,094 | String () { return JavaTemplateUtil.TEMPLATE_I18NIZED_EXPRESSION; } | getTemplateName |
41,095 | String () { return JavaTemplateUtil.TEMPLATE_I18NIZED_CONCATENATION; } | getConcatenationTemplateName |
41,096 | boolean () { return true; } | canShowJavaCodeInfo |
41,097 | List<String> (@NotNull Set<Module> contextModules) { return I18nUtil.defaultSuggestPropertiesFiles(myProject, contextModules); } | suggestPropertiesFiles |
41,098 | I18nizedTextGenerator () { return null; } | getI18nizedTextGenerator |
41,099 | String (String value) { return value; } | escapeValue |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.