Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
5,200 | Builder () { if (failureBuilder_ == null) { failure_ = null; onChanged(); } else { failureBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } | clearFailure |
5,201 | Builder ( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } | setUnknownFields |
5,202 | Builder ( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } | mergeUnknownFields |
5,203 | String () { return PluginPathManager.getPluginHomePath("ant") + "/tests/data/psi"; } | getTestDataPath |
5,204 | void () { doTest(true); } | testSingleProject |
5,205 | void () { doTest(true); } | testProjectWithDefaultTarget |
5,206 | void () { doTest(true); } | testProjectWithDescriptions |
5,207 | void () { doTest(true); } | testProjectWithDependentTargets |
5,208 | void () { doTest(true); } | testSimpleProperties |
5,209 | void () { doTest(true); } | testPropertyLocation |
5,210 | void () { doTest(true); } | testPropertyFile |
5,211 | void () { doTest(true); } | testSimpleAntCall |
5,212 | void () { doTest(true); } | testAntCallNestedTargets |
5,213 | void () { doTest(true); } | testAntComments |
5,214 | void () { doTest(true); } | testPrologEpilogue |
5,215 | void () { doTest(true); } | testMacroDef |
5,216 | void () { doTest(true); } | testPresetDef |
5,217 | void () { doTest(true); } | testForwardMacroDef |
5,218 | void () { doTest(true); } | testSequentialParallel |
5,219 | void () { doTest(true); } | testAvailable |
5,220 | void () { doTest(true); } | testChecksum |
5,221 | void () { doTest(true); } | testChecksum1 |
5,222 | void () { doTest(true); } | testCondition |
5,223 | void () { doTest(true); } | testUptodate |
5,224 | void () { doTest(true); } | testBasename |
5,225 | void () { doTest(true); } | testLoadFile |
5,226 | void () { doTest(true); } | testTempFile |
5,227 | void () { doTest(true); } | testLength |
5,228 | void () { doTest(true); } | testPathConvert |
5,229 | void () { doTest(true); } | testWhichResource |
5,230 | void () { doTest(true); } | testP4Counter |
5,231 | void () { doTest(true); } | testJarLibResolve |
5,232 | void () { doTest(true); } | testAntTask |
5,233 | void () { doTest(true); } | testJava |
5,234 | void () { doTest(true); } | testBuildNumber |
5,235 | String () { return PluginPathManager.getPluginHomePath("ant") + "/tests/data/psi/resolve/"; } | getTestDataPath |
5,236 | void () { doTest(); } | testSimpleProperty |
5,237 | void () { doTest(); } | testSimplePropertyReference |
5,238 | void () { doTest(); } | testParam |
5,239 | void () { doTest(); } | testParamReference |
5,240 | void () { doTest(); } | testRefid |
5,241 | void () { doTest(); } | testRefidReference |
5,242 | void () { doTest(); } | testRefidReferenceInDependieTarget |
5,243 | void () { doTest(); } | testSingleTarget |
5,244 | void () { doTest(); } | testSingleTargetReference |
5,245 | void () { doTest(); } | testAntCall |
5,246 | void () { doTest(); } | testAntCallReference |
5,247 | void () { doTest(); } | testDependsTarget1 |
5,248 | void () { doTest(); } | testDependsTarget2 |
5,249 | void () { doTest(); } | testDependsTargetReference1 |
5,250 | void () { doTest(); } | testDependsTargetReference2 |
5,251 | void () { doTest(); } | testTargetProperties |
5,252 | void () { doTest(); } | testTstampProperty |
5,253 | void () { doTest(); } | testTstampProperty1 |
5,254 | void () { doTest(); } | testInputProperty |
5,255 | void () { doTest(); } | testInputProperty1 |
5,256 | void () { doTest(); } | testRenameByRef |
5,257 | void () { doTest(); } | testRenameByDeclaration |
5,258 | String () { return PluginPathManager.getPluginHomePath("ant").replace('\\', '/') + "/tests/data/psi/rename/"; } | getTestDataPath |
5,259 | void () { final String filename = getTestName(true) + ".xml"; VirtualFile vfile = VirtualFileManager.getInstance().findFileByUrl("file://" + getTestDataPath() + filename); String text = FileDocumentManager.getInstance().getDocument(vfile).getText(); final int off = text.indexOf("<ren>"); text = text.replace("<ren>", ""); configureFromFileText(filename, text); assertNotNull(getFile()); PsiElement element = TargetElementUtil.getInstance().findTargetElement( getEditor(), TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED | TargetElementUtil.ELEMENT_NAME_ACCEPTED, off); assertNotNull(element); assertTrue(element instanceof PsiNamedElement); final RenameRefactoring rename = RefactoringFactory.getInstance(getProject()).createRename(element, ((PsiNamedElement)element).getName() + "-after"); rename.setSearchInComments(false); rename.setSearchInNonJavaFiles(false); rename.run(); checkResultByFile(filename + "-after"); } | doTest |
5,260 | String () { return PluginPathManager.getPluginHomePath("ant") + "/tests/data/psi/completion/"; } | getTestDataPath |
5,261 | void () { final String testName = "PropertyCompletion"; doTestFor( new String [] { testName, testName + ".properties" }, "xml" ); } | testPropertyCompletion |
5,262 | void () { final String testName = "PropertyCompletion2"; final String[] fileNames = new String [] { testName + ".xml", "PropertyCompletion.properties" }; myFixture.testCompletionTyping(fileNames, ".pro\n", testName + "_after.xml"); } | testPropertyCompletion2 |
5,263 | void (final String[] fileNames, final String ext) { String initialTest = fileNames[0]; for(int i = 0; i < fileNames.length; ++i) { if (fileNames[i].indexOf('.') == -1) fileNames[i] += "."+ext; } myFixture.testCompletion(fileNames, initialTest + "_after." + ext); } | doTestFor |
5,264 | String () { return PluginPathManager.getPluginHomePath("ant") + "/tests/data/highlighting/"; } | getTestDataPath |
5,265 | void (@NotNull ExpectedHighlightingData data, @NotNull Collection<? extends HighlightInfo> infos, @NotNull String text) { // ignore warnings } | doCheckResult |
5,266 | void () { //<property name="a" value="aValue"/> //<property name="b" value="${a}bValue"/> //<property name="c" value="${d}cValue"/> //<property name="d" value="dValue"/> PropertiesProvider[] providers = new PropertiesProvider[] { new PropertiesProviderImpl("a", "aValue"), new PropertiesProviderImpl("b", "${a}bValue"), new PropertiesProviderImpl("c", "${d}cValue"), new PropertiesProviderImpl("d", "dValue"), }; assertEquals("abc", expand(providers, "abc")); assertEquals("aValue", expand(providers, "${a}")); assertEquals("aValuebValue", expand(providers, "${b}")); assertEquals("${d}cValue", expand(providers, "${c}")); assertEquals("dValue", expand(providers, "${d}")); assertEquals("${d}cValuedValue", expand(providers, "${c}${d}")); PropertiesProvider[] providers2 = new PropertiesProvider[] { new PropertiesProviderImpl("loop.me1", "prefix-${loop.me2}"), new PropertiesProviderImpl("loop.me2", "prefix-${loop.me1}"), new PropertiesProviderImpl("loop.me3", "prefix-${loop.me3}"), new PropertiesProviderImpl("aaa", "aaa_val_${bbb}"), new PropertiesProviderImpl("bbb", "bbb_val"), new PropertiesProviderImpl("ccc", "${aaa}_${bbb}"), }; assertEquals("prefix-${loop.me2}", expand(providers2, "${loop.me1}")); assertEquals("prefix-prefix-${loop.me2}", expand(providers2, "${loop.me2}")); assertEquals("prefix-${loop.me3}", expand(providers2, "${loop.me3}")); assertEquals("aaa_val_${bbb}_bbb_val", expand(providers2, "${ccc}")); } | testPropertyExpand |
5,267 | String (PropertiesProvider[] providers, String str) { PropertyExpander expander = new PropertyExpander(str); if (expander.hasPropertiesToExpand()) { for (PropertiesProvider provider : providers) { expander.acceptProvider(provider); if (!expander.hasPropertiesToExpand()) { break; } } } return expander.getResult(); } | expand |
5,268 | Iterator<String> () { return myMap.keySet().iterator(); } | getNamesIterator |
5,269 | String (String propertyName) { return myMap.get(propertyName); } | getPropertyValue |
5,270 | PsiElement (String propertyName) { return null; } | getNavigationElement |
5,271 | String () { return PluginPathManager.getPluginHomePath("ant") + "/tests/data/psi/completion/"; } | getTestDataPath |
5,272 | void (@NotNull @TestDataFile @NonNls String relativePath) { super.configureByFile(relativePath); AntSupport.markFileAsAntFile(getVFile(), getFile().getProject(), true); } | configureByFile |
5,273 | void () { configureByFile("test1.xml"); performNormalCompletion(); assertNotNull(getItems()); assertTrue(getItems().length > 0); select(); } | testSimpleProperty |
5,274 | void () { configureByFile("test2.xml"); performNormalCompletion(); assertNotNull(getItems()); assertTrue(getItems().length > 0); select(); } | testSimplePropertyWithDot1 |
5,275 | void () { configureByFile("test4.xml"); performNormalCompletion(); assertNotNull(getItems()); assertTrue(getItems().length > 0); select(); } | testSimplePropertyWithDot2 |
5,276 | void () { configureByFile("/test5.xml"); performNormalCompletion(); assertNotNull(getItems()); assertTrue(getItems().length > 0); select(); } | testSimplePropertyWithDot3 |
5,277 | void () { configureByFile("test10.xml"); performNormalCompletion(); assertNotNull(getItems()); select(Lookup.REPLACE_SELECT_CHAR, getSelected()); checkResultByFile("test10-out.xml"); } | testReplace1 |
5,278 | void () { configureByFile("/test6.xml"); performNormalCompletion(); assertNotNull(getItems()); assertTrue(getItems().length > 0); select(); } | testSimplePropertyWithDot4 |
5,279 | void () { configureByFile("test7.xml"); performNormalCompletion(); final LookupElement[] items = getItems(); assertNotNull(items); assertTrue(items.length > 0); select(); } | testSimplePropertyWithDotAndMulityReference |
5,280 | void () { configureByFile("test3.xml"); performNormalCompletion(); assertNotNull(getItems()); assertTrue(getItems().length > 0); select(); } | testSimplePropertyWithNoPrefix |
5,281 | void () { configureByFile("test8.xml"); performNormalCompletion(); checkResultByFile("/test8-out.xml"); } | testInsertion1 |
5,282 | void () { configureByFile("test9.xml"); performNormalCompletion(); checkResultByFile("/test8-out.xml"); } | testInsertion2 |
5,283 | void () { configureByFile("targetCompletion.xml"); performNormalCompletion(); checkResultByFile("/targetCompletion-out.xml"); } | testTargetCompletion |
5,284 | void () { final String filePath = "targetCompletion2.xml"; configureByFile(filePath); performNormalCompletion(); //select(); checkResultByFile("/targetCompletion2-out.xml"); } | testTargetCompletion2 |
5,285 | void () { configureByFile("EntityCompletion.xml"); performNormalCompletion(); checkResultByFile("EntityCompletion-out.xml"); } | testEntityCompletion |
5,286 | void () { configureByFile("RestrictedTagCompletion.xml"); performNormalCompletion(); assertNotNull(getItems()); assertTrue(getItems().length > 0); select(); checkResultByFile("RestrictedTagCompletion-out.xml"); } | testRestrictedTagCompletion |
5,287 | void () { final String testName = getTestName(false); configureByFile(testName + ".xml"); performNormalCompletion(); final LookupElement[] lookupItems = getItems(); assertNotNull("Target attributes should be present", lookupItems); assertTrue(lookupItems.length > 0); checkResultByFile(testName + "-out.xml"); } | testTargetAttributesCompletion |
5,288 | void () { doTest(); } | testEndTagCompletion |
5,289 | void () { doTest(); } | testTargetIfAttrEasterEgg |
5,290 | void () { doTest(); } | testTargetUnlessAttrEasterEgg |
5,291 | void () { doTest(); } | _testMacrodefParam |
5,292 | void () { doTest(); } | _testMacrodefParam1 |
5,293 | void () { doTest(); } | testMacrodefNestedElement |
5,294 | void () { final String testName = getTestName(false); configureByFile(testName + ".xml"); performNormalCompletion(); checkResultByFile(testName + "-out.xml"); } | doTest |
5,295 | void () { select(Lookup.NORMAL_SELECT_CHAR, getSelected()); } | select |
5,296 | void () { new CodeCompletionHandlerBase(CompletionType.BASIC).invokeCompletion(getProject(), getEditor()); } | performNormalCompletion |
5,297 | void (char completionChar, LookupElement item) { ((LookupManagerImpl)LookupManager.getInstance(getProject())).forceSelection(completionChar, item); } | select |
5,298 | LookupElement () { final Lookup lookup = LookupManager.getInstance(getProject()).getActiveLookup(); return lookup.getCurrentItem(); } | getSelected |
5,299 | String () { return PluginPathManager.getPluginHomePath("ant") + "/tests/data/psi/customTypes"; } | getMyTestDataPath |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.