id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
1553760_167 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void documentNullPrefix() {\n\t\tNullPointerException npe = assertThrows(NullPointerException.class, () -> builder.document(null, \"ouch\"));\n\t\tassertTrue(npe.getMessage().contains(\"Must provide a prefix\"));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.documentNullPrefix... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder document(String prefix, String suffix) {\n\t\trequireNonNull(prefix, \"Must provide a prefix\"); //$NON-NLS-1$\n\t\trequireNonNull(suffix, \"Must provide a suffix\"); //$NON-NLS-1$\n\t\tdocumentHandler = new LiteralHtmlDocumentHandler(prefix, suffix);\n\t\treturn this;\n\t}",
"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_188 | {
"fields": [
{
"declarator": "writer",
"modifier": "private",
"original_string": "private StringWriter writer;",
"type": "StringWriter",
"var_name": "writer"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlSubsetDocument... | {
"body": "@Test\n\tpublic void imageLink() {\n\t\tbuilder.imageLink(\"target\", \"image.png\");\n\t\tassertContent(\"<a href=\\\"target\\\"><img border=\\\"0\\\" src=\\\"image.png\\\"/></a>\");\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilderTest.imageLink()",
"constructor": false,
"full_signature":... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final HtmlDocumentBuilder delegate;",
"type": "HtmlDocumentBuilder",
"var_name": "delegate"
},
{
"declarator": "blockStrategies",
"modifier": "private",
"origi... | {
"body": "@Override\n\tpublic void imageLink(Attributes linkAttributes, Attributes imageAttributes, String href, String imageUrl) {\n\t\tassertOpenBlock();\n\t\tdelegate.imageLink(linkAttributes, imageAttributes, href, imageUrl);\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilder.imageLink(Attributes link... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_130 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/blocks/BlockQuoteBlockTest.java",
"identifier": "BlockQuoteBlockTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void canStart() {\n\t\tassertCanStart(true, \">\");\n\t\tassertCanStart(true, \"> \");\n\t\tassertCanStart(true, \"> test\");\n\t\tassertCanStart(true, \" > test\");\n\t\tassertCanStart(true, \" > test\");\n\t\tassertCanStart(true, \" > test\");\n\t\tassertCanStart(false, \" > test\")... | {
"fields": [
{
"declarator": "START_PATTERN = Pattern.compile(\"\\\\s{0,3}>\\\\s?(.*)\")",
"modifier": "private static final",
"original_string": "private static final Pattern START_PATTERN = Pattern.compile(\"\\\\s{0,3}>\\\\s?(.*)\");",
"type": "Pattern",
"var_name": "START_PATTERN... | {
"body": "@Override\n\tpublic boolean canStart(LineSequence lineSequence) {\n\t\treturn canStart(lineSequence.getCurrentLine());\n\t}",
"class_method_signature": "BlockQuoteBlock.canStart(LineSequence lineSequence)",
"constructor": false,
"full_signature": "@Override public boolean canStart(LineSequence lineSe... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_55 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void blockQuote() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.QUOTE, new Attributes());\n\t\tbuilder.characters(\"block text\");\n\t\tbuilder.endBlock();\n\t\tbuilder.endDocument();\n\n\t\tString markup = out.toString();\n\n\t\tassertEquals(\"{quote}block text{quote}\\... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_219 | {
"fields": [
{
"declarator": "temporaryFolder = new TemporaryFolder()",
"modifier": "@Rule\n\tpublic",
"original_string": "@Rule\n\tpublic TemporaryFolder temporaryFolder = new TemporaryFolder();",
"type": "TemporaryFolder",
"var_name": "temporaryFolder"
},
{
"declarat... | {
"body": "@Test\n\tpublic void ensureFolderExistsMissingNoCreate() {\n\t\tFile folder = mock(File.class);\n\t\tBuildFailureException bfe = assertThrows(BuildFailureException.class,\n\t\t\t\t() -> markupToEclipseHelp.ensureFolderExists(\"test\", folder, false));\n\t\tassertTrue(bfe.getMessage().contains(\"test does n... | {
"fields": [
{
"declarator": "outputFolder",
"modifier": "protected",
"original_string": "protected File outputFolder;",
"type": "File",
"var_name": "outputFolder"
},
{
"declarator": "sourceFolder",
"modifier": "protected",
"original_string": "protected Fil... | {
"body": "protected void ensureFolderExists(String name, File folder, boolean createIfMissing) {\n\t\tif (folder.exists()) {\n\t\t\tif (!folder.isDirectory()) {\n\t\t\t\tthrow new BuildFailureException(format(\"{0} exists but is not a folder: {1}\", name, folder));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (!createIfMi... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_43 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void tableWithParagraphs() {\n\t\tassertTableRow(\"| |abc\\ndef| |\\n\\n\", BlockType.TABLE_CELL_NORMAL, () -> {\n\t\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes());\n\t\t\tbuilder.characters(\"abc\");\n\t\t\tbuilder.endBlock();\n\t\t\tbuilder.beginBlock(BlockType.PARAGRAPH, ne... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_126 | {
"fields": [
{
"declarator": "block = new SetextHeaderBlock()",
"modifier": "private final",
"original_string": "private final SetextHeaderBlock block = new SetextHeaderBlock();",
"type": "SetextHeaderBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclipse.mylyn.... | {
"body": "@Test\n\tpublic void process() {\n\t\tassertContent(\"<h2 id=\\\"heading-text\\\">Heading Text</h2>\", \"Heading Text\\n-------\");\n\t\tassertContent(\"<h1 id=\\\"heading-text\\\">Heading Text</h1>\", \"Heading Text\\n=\");\n\t\tassertContent(\"<h1 id=\\\"heading-text\\\">Heading Text</h1>\", \"Heading Te... | {
"fields": [
{
"declarator": "indentPattern = Pattern.compile(\"\\\\s{0,3}\\\\S.*\")",
"modifier": "private final",
"original_string": "private final Pattern indentPattern = Pattern.compile(\"\\\\s{0,3}\\\\S.*\");",
"type": "Pattern",
"var_name": "indentPattern"
},
{
"... | {
"body": "@Override\n\tpublic void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) {\n\t\tLine currentLine = lineSequence.getCurrentLine();\n\t\tLine nextLine = lineSequence.getNextLine();\n\t\tMatcher matcher = setextUnderlinePattern.matcher(nextLine.getText());\n\t\tcheckStat... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_171 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void setSupportsImages() {\n\t\tassertSupportsImages(true);\n\t\tassertSupportsImages(false);\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.setSupportsImages()",
"constructor": false,
"full_signature": "@Test public void setSupportsImages()",
"identifier": "setSupportsIm... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder setSupportsImages(boolean supportsImages) {\n\t\tthis.supportsImages = supportsImages;\n\t\treturn this;\n\t}",
"class_method_signature": "HtmlLanguageBuilder.setSupportsImages(boolean supportsImages)",
"constructor": false,
"full_signature": "public HtmlLanguageBuilder set... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_14 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void paragraph() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes());\n\t\tbuilder.characters(\"text\\n\\nmore text\");\n\t\tbuilder.endBlock();\n\t\tbuilder.endDocument();\n\n\t\tString markup = out.toString();\n\n\t\tassertEquals(\"text more tex... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_0 | {
"fields": [
{
"declarator": "strategy = new GfmIdGenerationStrategy()",
"modifier": "private final",
"original_string": "private final GfmIdGenerationStrategy strategy = new GfmIdGenerationStrategy();",
"type": "GfmIdGenerationStrategy",
"var_name": "strategy"
}
],
"file": ... | {
"body": "@Test\n\tpublic void withNonAlphaNumeric() {\n\t\tassertEquals(\"one-two\", strategy.generateId(\"%One & Two!\"));\n\t}",
"class_method_signature": "GfmIdGenerationStrategyTest.withNonAlphaNumeric()",
"constructor": false,
"full_signature": "@Test public void withNonAlphaNumeric()",
"identifier": "... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.markdown/src/main/java/org/eclipse/mylyn/wikitext/markdown/internal/GfmIdGenerationStrategy.java",
"identifier": "GfmIdGenerationStrategy",
"interfaces": "",
"methods": [
{
"class_method_signature": "GfmIdGenerationStrategy.generateId... | {
"body": "@Override\n\tpublic String generateId(String headingText) {\n\t\tString id = headingText.toLowerCase(Locale.getDefault());\n\t\tid = id.replaceAll(\"[^a-z0-9_-]\", \"-\"); //$NON-NLS-1$//$NON-NLS-2$\n\t\tCharMatcher hyphenMatcher = CharMatcher.is('-');\n\t\tid = hyphenMatcher.trimFrom(hyphenMatcher.collaps... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_258 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/HtmlParserTest.java",
"identifier": "HtmlParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void parsePreservesAsDocumentSetting() throws IOException, SAXException {\n\t\tHtmlParser parser = new HtmlParser();\n\t\tStringWriter out = new StringWriter();\n\t\tHtmlDocumentBuilder builder = new HtmlDocumentBuilder(out);\n\t\tbuilder.setEmitAsDocument(false);\n\n\t\tparser.parse(new In... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final AbstractSaxHtmlParser delegate;",
"type": "AbstractSaxHtmlParser",
"var_name": "delegate"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/... | {
"body": "public void parse(InputSource input, DocumentBuilder builder) throws IOException, SAXException {\n\t\tparse(input, builder, true);\n\t}",
"class_method_signature": "HtmlParser.parse(InputSource input, DocumentBuilder builder)",
"constructor": false,
"full_signature": "public void parse(InputSource in... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_109 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LinesIterableTest.java",
"identifier": "LinesIterableTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void iteratorWithNoLines() {\n\t\tLinesIterable iterable = new LinesIterable(LineSequence.create(\"\"), Predicates.<Line> alwaysTrue());\n\t\tIterator<Line> iterator = iterable.iterator();\n\t\tassertNotNull(iterator);\n\t\tassertFalse(iterator.hasNext());\n\t\tassertThrows(NoSuchElementExc... | {
"fields": [
{
"declarator": "lineSequence",
"modifier": "private final",
"original_string": "private final LineSequence lineSequence;",
"type": "LineSequence",
"var_name": "lineSequence"
},
{
"declarator": "predicate",
"modifier": "private final",
"origina... | {
"body": "@Override\n\tpublic Iterator<Line> iterator() {\n\t\treturn new LinesIterator();\n\t}",
"class_method_signature": "LinesIterable.iterator()",
"constructor": false,
"full_signature": "@Override public Iterator<Line> iterator()",
"identifier": "iterator",
"invocations": [],
"modifiers": "@Overrid... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_83 | {
"fields": [
{
"declarator": "line = new Line(0, 1, \"test\")",
"modifier": "private final",
"original_string": "private final Line line = new Line(0, 1, \"test\");",
"type": "Line",
"var_name": "line"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/tes... | {
"body": "@Test\n\tpublic void eligibleForReferenceDefinitionLinkIndented() {\n\t\tPotentialBracketEndDelimiter delimiter = new PotentialBracketEndDelimiter(line, 0);\n\t\tassertTrue(delimiter.eligibleForReferenceDefinition(new PotentialBracketDelimiter(line, 3, 1, \"[\"),\n\t\t\t\tCursors.createCursor(\"a\\n [\")))... | {
"fields": [
{
"declarator": "HTML_ENTITY_PATTERN = Pattern\n\t\t\t.compile(\"(&([a-zA-Z][a-zA-Z0-9]{1,32}|#x[a-fA-F0-9]{1,8}|#[0-9]{1,8});)\")",
"modifier": "private static final",
"original_string": "private static final Pattern HTML_ENTITY_PATTERN = Pattern\n\t\t\t.compile(\"(&([a-zA-Z][a-zA... | {
"body": "boolean eligibleForReferenceDefinition(PotentialBracketDelimiter openingDelimiter, Cursor cursor) {\n\t\tboolean linkDelimiter = openingDelimiter.isLinkDelimiter();\n\t\tif (!linkDelimiter) {\n\t\t\treturn false;\n\t\t}\n\t\tint cursorRelativeOffset = cursor.toCursorOffset(openingDelimiter.getOffset());\n\... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_220 | {
"fields": [
{
"declarator": "temporaryFolder = new TemporaryFolder()",
"modifier": "@Rule\n\tpublic",
"original_string": "@Rule\n\tpublic TemporaryFolder temporaryFolder = new TemporaryFolder();",
"type": "TemporaryFolder",
"var_name": "temporaryFolder"
},
{
"declarat... | {
"body": "@Test\n\tpublic void ensureFolderExistsNothingToDo() {\n\t\tFile folder = mock(File.class);\n\t\tdoReturn(true).when(folder).exists();\n\t\tdoReturn(true).when(folder).isDirectory();\n\t\tmarkupToEclipseHelp.ensureFolderExists(\"test\", folder, false);\n\t\tverify(folder).exists();\n\t\tverify(folder).isDi... | {
"fields": [
{
"declarator": "outputFolder",
"modifier": "protected",
"original_string": "protected File outputFolder;",
"type": "File",
"var_name": "outputFolder"
},
{
"declarator": "sourceFolder",
"modifier": "protected",
"original_string": "protected Fil... | {
"body": "protected void ensureFolderExists(String name, File folder, boolean createIfMissing) {\n\t\tif (folder.exists()) {\n\t\t\tif (!folder.isDirectory()) {\n\t\t\t\tthrow new BuildFailureException(format(\"{0} exists but is not a folder: {1}\", name, folder));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (!createIfMi... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_298 | {
"fields": [
{
"declarator": "out",
"modifier": "private",
"original_string": "private StringWriter out;",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlDocumentBuilder builder... | {
"body": "@Test(expected = NullPointerException.class)\n\tpublic void setDocumentHandlerNull() {\n\t\tbuilder.setDocumentHandler(null);\n\t}",
"class_method_signature": "HtmlDocumentBuilderTest.setDocumentHandlerNull()",
"constructor": false,
"full_signature": "@Test(expected = NullPointerException.class) publ... | {
"fields": [
{
"declarator": "ABSOLUTE_URL_PATTERN = Pattern.compile(\"[a-zA-Z]{3,8}://?.*\")",
"modifier": "private static final",
"original_string": "private static final Pattern ABSOLUTE_URL_PATTERN = Pattern.compile(\"[a-zA-Z]{3,8}://?.*\");",
"type": "Pattern",
"var_name": "ABS... | {
"body": "public void setDocumentHandler(HtmlDocumentHandler documentHandler) {\n\t\tthis.documentHandler = Objects.requireNonNull(documentHandler, \"Must provide a documentHandler\"); //$NON-NLS-1$\n\t}",
"class_method_signature": "HtmlDocumentBuilder.setDocumentHandler(HtmlDocumentHandler documentHandler)",
"c... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_332 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/HorizontalRuleEventTest.java",
"identifier": "HorizontalRuleEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new HorizontalRuleEvent(), new HorizontalRuleEvent());\n\t}",
"class_method_signature": "HorizontalRuleEventTest.equals()",
"constructor": false,
"full_signature": "@Test public void equals()",
"identifier": "equals",
"invocations": [
"asser... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/event/HorizontalRuleEvent.java",
"identifier": "HorizontalRuleEvent",
"interfaces": "",
"methods": [
{
"class_method_signature": "HorizontalRuleEvent.invoke(DocumentBuilder build... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (obj == this) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof HorizontalRuleEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"class_method_signature": "HorizontalRuleEvent.equ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_277 | {
"fields": [
{
"declarator": "delegate1 = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder delegate1 = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "delegate1"
},
{
"declarator... | {
"body": "@Test\n\tpublic void acronym() {\n\t\tmultiplexer.acronym(\"one\", \"two\");\n\t\tassertEvents(new AcronymEvent(\"one\", \"two\"));\n\t}",
"class_method_signature": "MultiplexingDocumentBuilderTest.acronym()",
"constructor": false,
"full_signature": "@Test public void acronym()",
"identifier": "acr... | {
"fields": [
{
"declarator": "builders = new ArrayList<DocumentBuilder>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilder> builders = new ArrayList<DocumentBuilder>();",
"type": "List<DocumentBuilder>",
"var_name": "builders"
}
],
"file"... | {
"body": "@Override\n\tpublic void acronym(String text, String definition) {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.acronym(text, definition);\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.acronym(String text, String definition)",
"constructor": false,
"full_signa... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_148 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void nameNull() {\n\t\tNullPointerException npe = assertThrows(NullPointerException.class, () -> builder.name(null));\n\t\tassertTrue(npe.getMessage().contains(\"Must provide a name\"));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.nameNull()",
"constructor": false,
"full... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder name(String name) {\n\t\trequireNonNull(name, \"Must provide a name\"); //$NON-NLS-1$\n\t\tcheckArgument(!Strings.isNullOrEmpty(name), \"Name must not be empty\"); //$NON-NLS-1$\n\t\tcheckArgument(!name.equalsIgnoreCase(HtmlLanguage.NAME_HTML), \"Name must not be equal to %s\", /... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_324 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/BeginDocumentEventTest.java",
"identifier": "BeginDocumentEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new BeginDocumentEvent(), new BeginDocumentEvent());\n\t}",
"class_method_signature": "BeginDocumentEventTest.equals()",
"constructor": false,
"full_signature": "@Test public void equals()",
"identifier": "equals",
"invocations": [
"assertEq... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/event/BeginDocumentEvent.java",
"identifier": "BeginDocumentEvent",
"interfaces": "",
"methods": [
{
"class_method_signature": "BeginDocumentEvent.invoke(DocumentBuilder builder)... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (obj == this) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof BeginDocumentEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"class_method_signature": "BeginDocumentEvent.equal... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_261 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/markup/MarkupLanguageProviderTest.java",
"identifier": "MarkupLanguageProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void getMarkupLanguagesDuplicatedNames() {\n\t\tMarkupLanguageProvider provider = new MarkupLanguageProvider() {\n\n\t\t\t@Override\n\t\t\tprotected Set<MarkupLanguage> loadMarkupLanguages() {\n\t\t\t\treturn ImmutableSet.<MarkupLanguage> of(new MockMarkupLanguage(\"Test\"), new MockMarkupL... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/markup/MarkupLanguageProvider.java",
"identifier": "MarkupLanguageProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "MarkupLanguageProvider.getMarkupLanguages()",
... | {
"body": "public final Set<MarkupLanguage> getMarkupLanguages() {\n\t\tSet<MarkupLanguage> languages = ImmutableSet\n\t\t\t\t.copyOf(Objects.requireNonNull(loadMarkupLanguages(), \"loadMarkupLanguages() must not return null\")); //$NON-NLS-1$\n\t\tassertLanguageNames(languages);\n\t\treturn languages;\n\t}",
"clas... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_95 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/PotentialEmphasisSpanTest.java",
"identifier": "PotentialEmphasisSpanTest",
"interfaces": "",
"superclass": "extends AbstractSourceSpanTest"
} | {
"body": "@Test\n\tpublic void isRightFlanking() {\n\t\tassertRightFlanking(false, \"**\", 0, 2);\n\t\tassertRightFlanking(true, \"a** \", 1, 2);\n\t\tassertRightFlanking(true, \"a**a\", 1, 2);\n\t\tassertRightFlanking(true, \"a**.\", 1, 2);\n\t\tassertRightFlanking(true, \"a**\", 1, 2);\n\n\t\tassertRightFlanking(f... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/PotentialEmphasisSpan.java",
"identifier": "PotentialEmphasisSpan",
"interfaces": "",
"methods": [
{
"class_method_signature": "PotentialEmphasisSpan.crea... | {
"body": "boolean isRightFlanking(Cursor cursor, int length) {\n\t\tchar charBefore = charBefore(cursor);\n\t\tchar charAfter = charAfter(cursor, length);\n\t\treturn !isWhitespace(charBefore)\n\t\t\t\t&& !(isPunctuation(charBefore) && !isWhitespace(charAfter) && !isPunctuation(charAfter));\n\n\t}",
"class_method_... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_236 | {
"fields": [
{
"declarator": "temporaryFolder = new TemporaryFolder()",
"modifier": "@Rule\n\tpublic",
"original_string": "@Rule\n\tpublic TemporaryFolder temporaryFolder = new TemporaryFolder();",
"type": "TemporaryFolder",
"var_name": "temporaryFolder"
},
{
"declarat... | {
"body": "@Test\n\tpublic void embeddedTableOfContents() {\n\t\tHtmlDocumentBuilder builder = mock(HtmlDocumentBuilder.class);\n\t\tSplitOutlineItem item = mock(SplitOutlineItem.class);\n\t\tFile htmlOutputFile = mock(File.class);\n\t\tSplittingHtmlDocumentBuilder splittingBuilder = markupToEclipseHelp.createSplitti... | {
"fields": [
{
"declarator": "outputFolder",
"modifier": "protected",
"original_string": "protected File outputFolder;",
"type": "File",
"var_name": "outputFolder"
},
{
"declarator": "sourceFolder",
"modifier": "protected",
"original_string": "protected Fil... | {
"body": "protected SplittingHtmlDocumentBuilder createSplittingBuilder(HtmlDocumentBuilder builder, SplitOutlineItem item,\n\t\t\tFile htmlOutputFile, String relativePath) {\n\t\tSplittingHtmlDocumentBuilder splittingBuilder = new SplittingHtmlDocumentBuilder();\n\t\tsplittingBuilder.setRootBuilder(builder);\n\t\ts... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_164 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void addHeadingsLowerBounds() {\n\t\tbuilder.addHeadings(1);\n\t\tIllegalArgumentException iae = assertThrows(IllegalArgumentException.class, () -> builder.addHeadings(0));\n\t\tassertTrue(iae.getMessage().contains(\"Heading level must be between 1 and 6\"));\n\t}",
"class_method_signatur... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder addHeadings(int level) {\n\t\tcheckArgument(level > 0 && level <= 6, \"Heading level must be between 1 and 6\"); //$NON-NLS-1$\n\t\theadingLevel = level;\n\t\treturn this;\n\t}",
"class_method_signature": "HtmlLanguageBuilder.addHeadings(int level)",
"constructor": false,
"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_308 | {
"fields": [
{
"declarator": "builder = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder builder = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/... | {
"body": "@Test\n\tpublic void beginBlock() {\n\t\tbuilder.beginBlock(BlockType.PREFORMATTED, new Attributes());\n\t\tassertEvents(new BeginBlockEvent(BlockType.PREFORMATTED, new Attributes()));\n\t}",
"class_method_signature": "EventDocumentBuilderTest.beginBlock()",
"constructor": false,
"full_signature": "@... | {
"fields": [
{
"declarator": "events = new ArrayList<>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilderEvent> events = new ArrayList<>();",
"type": "List<DocumentBuilderEvent>",
"var_name": "events"
}
],
"file": "wikitext/core/org.eclip... | {
"body": "@Override\n\tpublic void beginBlock(BlockType type, Attributes attributes) {\n\t\tevents.add(new BeginBlockEvent(type, attributes));\n\t}",
"class_method_signature": "EventDocumentBuilder.beginBlock(BlockType type, Attributes attributes)",
"constructor": false,
"full_signature": "@Override public voi... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_56 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void blockQuoteContainingMarkup() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.QUOTE, new Attributes());\n\t\tbuilder.beginSpan(SpanType.BOLD, new Attributes());\n\t\tbuilder.characters(\"bold\");\n\t\tbuilder.endSpan();\n\t\tbuilder.characters(\"text\");\n\t\tbuilder.b... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_133 | {
"fields": [
{
"declarator": "block = new HtmlCommentBlock()",
"modifier": "private final",
"original_string": "private final HtmlCommentBlock block = new HtmlCommentBlock();",
"type": "HtmlCommentBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wiki... | {
"body": "@Test\n\tpublic void canStart() {\n\t\tassertCanStart(true, \"<!-- a comment -->\");\n\t\tassertCanStart(true, \"<!-- <\");\n\t\tassertCanStart(true, \"<!--\");\n\t\tassertCanStart(true, \"<!-- <-\");\n\t\tassertCanStart(true, \"<!--<-\");\n\t\tassertCanStart(false, \"<!-->\");\n\t\tassertCanStart(false, \... | {
"fields": [
{
"declarator": "startPattern = Pattern.compile(\"\\\\s{0,3}(<!--)(?!>|->).*\")",
"modifier": "private final",
"original_string": "private final Pattern startPattern = Pattern.compile(\"\\\\s{0,3}(<!--)(?!>|->).*\");",
"type": "Pattern",
"var_name": "startPattern"
}... | {
"body": "@Override\n\tpublic boolean canStart(LineSequence lineSequence) {\n\t\tLine line = lineSequence.getCurrentLine();\n\t\tif (line != null) {\n\t\t\tString text = line.getText();\n\t\t\tMatcher matcher = startPattern().matcher(text);\n\t\t\tif (matcher.matches()) {\n\t\t\t\tint end = matcher.end(1);\n\t\t\t\t... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_125 | {
"fields": [
{
"declarator": "block = new SetextHeaderBlock()",
"modifier": "private final",
"original_string": "private final SetextHeaderBlock block = new SetextHeaderBlock();",
"type": "SetextHeaderBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclipse.mylyn.... | {
"body": "@Test\n\tpublic void canStart() {\n\t\tassertTrue(block.canStart(LineSequence.create(\"Heading\\n-\")));\n\t\tassertTrue(block.canStart(LineSequence.create(\"Heading\\n=\")));\n\t\tassertTrue(block.canStart(LineSequence.create(\"Heading\\n =\")));\n\t\tassertTrue(block.canStart(LineSequence.create(\"Headi... | {
"fields": [
{
"declarator": "indentPattern = Pattern.compile(\"\\\\s{0,3}\\\\S.*\")",
"modifier": "private final",
"original_string": "private final Pattern indentPattern = Pattern.compile(\"\\\\s{0,3}\\\\S.*\");",
"type": "Pattern",
"var_name": "indentPattern"
},
{
"... | {
"body": "@Override\n\tpublic boolean canStart(LineSequence lineSequence) {\n\t\tLine line = lineSequence.getCurrentLine();\n\t\tLine nextLine = lineSequence.getNextLine();\n\t\treturn line != null && nextLine != null && indentPattern.matcher(line.getText()).matches()\n\t\t\t\t&& setextUnderlinePattern.matcher(nextL... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_40 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void linkSpanNoHref() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.characters(\"prefix \");\n\n\t\tLinkAttributes attributes = new LinkAttributes();\n\t\tbuilder.beginSpan(SpanType.LINK, attributes);\n\t\tbuilder.endSpan();\n\n\t\tbuilder.characters(\" suffix\");\n\n\t\tbuilder.endDocumen... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_349 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/BeginHeadingEventTest.java",
"identifier": "BeginHeadingEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"beginHeading(2)\", new BeginHeadingEvent(2, new Attributes()).toString());\n\t}",
"class_method_signature": "BeginHeadingEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifier": "te... | {
"fields": [
{
"declarator": "level",
"modifier": "private final",
"original_string": "private final int level;",
"type": "int",
"var_name": "level"
},
{
"declarator": "attributes",
"modifier": "private final",
"original_string": "private final Attributes a... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"beginHeading(%s)\", level); //$NON-NLS-1$\n\t}",
"class_method_signature": "BeginHeadingEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_17 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void paragraphWithId() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes(\"123\", null, null, null));\n\t\tbuilder.characters(\"text\\n\\nmore text\");\n\t\tbuilder.endBlock();\n\t\tbuilder.endDocument();\n\n\t\tString markup = out.toString();\n\n\t... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_172 | {
"fields": [
{
"declarator": "strategy = new FontElementStrategy()",
"modifier": "private final",
"original_string": "private final FontElementStrategy strategy = new FontElementStrategy();",
"type": "FontElementStrategy",
"var_name": "strategy"
}
],
"file": "wikitext/core/o... | {
"body": "@Test\n\tpublic void hasSpanStrategy() {\n\t\tassertNotNull(strategy.spanStrategy());\n\t}",
"class_method_signature": "FontElementStrategyTest.hasSpanStrategy()",
"constructor": false,
"full_signature": "@Test public void hasSpanStrategy()",
"identifier": "hasSpanStrategy",
"invocations": [
... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/main/java/org/eclipse/mylyn/wikitext/html/internal/FontElementStrategy.java",
"identifier": "FontElementStrategy",
"interfaces": "",
"methods": [
{
"class_method_signature": "FontElementStrategy.FontElementStrategy()",
... | {
"body": "@Override\n\tpublic SpanStrategy spanStrategy() {\n\t\treturn new FontSpanStrategy();\n\t}",
"class_method_signature": "FontElementStrategy.spanStrategy()",
"constructor": false,
"full_signature": "@Override public SpanStrategy spanStrategy()",
"identifier": "spanStrategy",
"invocations": [],
"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_3 | {
"fields": [
{
"declarator": "strategy = new GfmIdGenerationStrategy()",
"modifier": "private final",
"original_string": "private final GfmIdGenerationStrategy strategy = new GfmIdGenerationStrategy();",
"type": "GfmIdGenerationStrategy",
"var_name": "strategy"
}
],
"file": ... | {
"body": "@Test\n\tpublic void withUnderscore() {\n\t\tassertEquals(\"with_underscore\", strategy.generateId(\"with_underscore\"));\n\t}",
"class_method_signature": "GfmIdGenerationStrategyTest.withUnderscore()",
"constructor": false,
"full_signature": "@Test public void withUnderscore()",
"identifier": "wit... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.markdown/src/main/java/org/eclipse/mylyn/wikitext/markdown/internal/GfmIdGenerationStrategy.java",
"identifier": "GfmIdGenerationStrategy",
"interfaces": "",
"methods": [
{
"class_method_signature": "GfmIdGenerationStrategy.generateId... | {
"body": "@Override\n\tpublic String generateId(String headingText) {\n\t\tString id = headingText.toLowerCase(Locale.getDefault());\n\t\tid = id.replaceAll(\"[^a-z0-9_-]\", \"-\"); //$NON-NLS-1$//$NON-NLS-2$\n\t\tCharMatcher hyphenMatcher = CharMatcher.is('-');\n\t\tid = hyphenMatcher.trimFrom(hyphenMatcher.collaps... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_105 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/CursorTest.java",
"identifier": "CursorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void getText() {\n\t\tassertGetText(\"1\\n23\", \"01\\n23\", 1, 5);\n\t\tassertGetText(\"\\n2\", \"01\\n23\", 2, 4);\n\t\tassertGetText(\"1\\n2\", \"01\\n23\", 1, 4);\n\t\tassertGetText(\"1\\n2\", \"01\\r\\n23\", 1, 5);\n\t}",
"class_method_signature": "CursorTest.getText()",
"construct... | {
"fields": [
{
"declarator": "segment",
"modifier": "private final",
"original_string": "private final TextSegment segment;",
"type": "TextSegment",
"var_name": "segment"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": "private fi... | {
"body": "public String getText(int offset, int endIndex) {\n\t\treturn text.substring(offset, endIndex);\n\t}",
"class_method_signature": "Cursor.getText(int offset, int endIndex)",
"constructor": false,
"full_signature": "public String getText(int offset, int endIndex)",
"identifier": "getText",
"invocat... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_60 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void italicBoldItalic() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginSpan(SpanType.ITALIC, new Attributes());\n\t\tbuilder.characters(\"italic\");\n\t\tbuilder.endSpan();\n\t\tbuilder.beginSpan(SpanType.BOLD, new Attributes());\n\t\tbuilder.beginSpan(SpanType.ITALIC, new Attributes());... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_294 | {
"fields": [
{
"declarator": "processor = new JavadocShortcutUriProcessor(\"../\",\n\t\t\t\"org.eclipse.mylyn.wikitext\")",
"modifier": "private final",
"original_string": "private final JavadocShortcutUriProcessor processor = new JavadocShortcutUriProcessor(\"../\",\n\t\t\t\"org.eclipse.mylyn.... | {
"body": "@Test\n\tpublic void processTypeNameWithBasePackage() {\n\t\tassertEquals(\"../index.html?org/eclipse/mylyn/wikitext/Foo.html\", processor.process(\"@.Foo\"));\n\t\tassertEquals(\"../index.html?org/eclipse/mylyn/wikitext/foo/Bar.html\", processor.process(\"@.foo.Bar\"));\n\t}",
"class_method_signature": ... | {
"fields": [
{
"declarator": "TARGET = \"_javadoc\"",
"modifier": "private static final",
"original_string": "private static final String TARGET = \"_javadoc\";",
"type": "String",
"var_name": "TARGET"
},
{
"declarator": "JAVADOC_URI_MARKER = \"@\"",
"modifier": ... | {
"body": "@Override\n\tpublic String process(String uri) {\n\t\tString newUri = preprocessUri(uri);\n\t\tif (!newUri.equals(uri)) {\n\t\t\tnewUri = prependWithBasePackage(newUri);\n\t\t\tif (SourceVersion.isName(newUri)) {\n\t\t\t\tif (isPotentialPackageName(newUri)) {\n\t\t\t\t\treturn toPackagePage(newUri);\n\t\t\... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_37 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void linkSpanWithTitle() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.characters(\"prefix \");\n\n\t\tLinkAttributes attributes = new LinkAttributes();\n\t\tattributes.setHref(\"http://example.com/target\");\n\t\tattributes.setTitle(\"Title Words\");\n\t\tbuilder.beginSpan(SpanType.LINK, ... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_152 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void nameBlacklisted2() {\n\t\tIllegalArgumentException iae = assertThrows(IllegalArgumentException.class,\n\t\t\t\t() -> builder.name(HtmlLanguage.NAME_HTML.toLowerCase()));\n\t\tassertTrue(iae.getMessage().contains(\"Name must not be equal to \" + HtmlLanguage.NAME_HTML));\n\t}",
"class... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder name(String name) {\n\t\trequireNonNull(name, \"Must provide a name\"); //$NON-NLS-1$\n\t\tcheckArgument(!Strings.isNullOrEmpty(name), \"Name must not be empty\"); //$NON-NLS-1$\n\t\tcheckArgument(!name.equalsIgnoreCase(HtmlLanguage.NAME_HTML), \"Name must not be equal to %s\", /... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_282 | {
"fields": [
{
"declarator": "delegate1 = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder delegate1 = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "delegate1"
},
{
"declarator... | {
"body": "@Test\n\tpublic void lineBreak() {\n\t\tmultiplexer.lineBreak();\n\t\tassertEvents(new LineBreakEvent());\n\t}",
"class_method_signature": "MultiplexingDocumentBuilderTest.lineBreak()",
"constructor": false,
"full_signature": "@Test public void lineBreak()",
"identifier": "lineBreak",
"invocation... | {
"fields": [
{
"declarator": "builders = new ArrayList<DocumentBuilder>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilder> builders = new ArrayList<DocumentBuilder>();",
"type": "List<DocumentBuilder>",
"var_name": "builders"
}
],
"file"... | {
"body": "@Override\n\tpublic void lineBreak() {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.lineBreak();\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.lineBreak()",
"constructor": false,
"full_signature": "@Override public void lineBreak()",
"identifier": "lineBreak... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_328 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/EndSpanEventTest.java",
"identifier": "EndSpanEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new EndSpanEvent(), new EndSpanEvent());\n\t}",
"class_method_signature": "EndSpanEventTest.equals()",
"constructor": false,
"full_signature": "@Test public void equals()",
"identifier": "equals",
"invocations": [
"assertEquality"
],
"mo... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/event/EndSpanEvent.java",
"identifier": "EndSpanEvent",
"interfaces": "",
"methods": [
{
"class_method_signature": "EndSpanEvent.invoke(DocumentBuilder builder)",
"construc... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (obj == this) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof EndSpanEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"class_method_signature": "EndSpanEvent.equals(Object obj... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_144 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/HtmlLanguageTest.java",
"identifier": "HtmlLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void newDocumentBuilderIsNotFormatting() {\n\t\tWriter out = new StringWriter();\n\t\tDocumentBuilder builder = new HtmlLanguage().createDocumentBuilder(out, false);\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes());\n\t\tbuilder.characters(\"test\... | {
"fields": [
{
"declarator": "NAME_HTML = \"HTML\"",
"modifier": "static final",
"original_string": "static final String NAME_HTML = \"HTML\";",
"type": "String",
"var_name": "NAME_HTML"
},
{
"declarator": "parseCleansHtml = true",
"modifier": "private",
"o... | {
"body": "@Override\n\tpublic DocumentBuilder createDocumentBuilder(Writer out, boolean formatting) {\n\t\treturn new HtmlDocumentBuilder(out, formatting);\n\t}",
"class_method_signature": "HtmlLanguage.createDocumentBuilder(Writer out, boolean formatting)",
"constructor": false,
"full_signature": "@Override p... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_21 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void preformattedBlockWithCurlyBraceContent() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PREFORMATTED, new Attributes());\n\t\tbuilder.characters(\"{somecontent}\");\n\t\tbuilder.endBlock();\n\t\tbuilder.endDocument();\n\n\t\tString markup = out.toString();\n\n\t\tass... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_76 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineSequenceTest.java",
"identifier": "LineSequenceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void toStringTest() {\n\t\tassertEquals(\"LineSequence{currentLine=Line{lineNumber=0, offset=0, text=a}, nextLine=null}\",\n\t\t\t\tLineSequence.create(\"a\\n\").toString());\n\t\tassertEquals(\n\t\t\t\t\"LineSequence{currentLine=Line{lineNumber=0, offset=0, text=a}, nextLine=Line{lineNumbe... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineSequence.java",
"identifier": "LineSequence",
"interfaces": "implements Iterable<Line>",
"methods": [
{
"class_method_signature": "LineSequence.create(String ... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn toStringHelper(LineSequence.class).add(\"currentLine\", getCurrentLine())\n\t\t\t\t.add(\"nextLine\", getNextLine())\n\t\t\t\t.toString();\n\t}",
"class_method_signature": "LineSequence.toString()",
"constructor": false,
"full_signature": "@Override... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_113 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/PredicateLineSequenceTest.java",
"identifier": "PredicateLineSequenceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void lookAhead() {\n\t\tLineSequence originalLineSequence = LineSequence.create(\"one\\ntwo\");\n\t\tPredicateLineSequence lineSequence = new PredicateLineSequence(originalLineSequence, notTwoPredicate());\n\t\tLineSequence lookAhead = lineSequence.lookAhead();\n\t\tassertEquals(\"one\", lo... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final LineSequence delegate;",
"type": "LineSequence",
"var_name": "delegate"
},
{
"declarator": "predicate",
"modifier": "private final",
"original_string": "... | {
"body": "@Override\n\tpublic LineSequence lookAhead() {\n\t\treturn new PredicateLineSequence(delegate.lookAhead(), predicate);\n\t}",
"class_method_signature": "PredicateLineSequence.lookAhead()",
"constructor": false,
"full_signature": "@Override public LineSequence lookAhead()",
"identifier": "lookAhead"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_99 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/CursorTest.java",
"identifier": "CursorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void getTextAtOffset() {\n\t\tCursor cursor = new Cursor(createTextSegment(\"1\\n23\"));\n\t\tassertEquals(\"1\\n23\", cursor.getTextAtOffset());\n\t\tassertEquals(\"1\\n2\", cursor.getTextAtOffset(3));\n\t\tcursor.advance(2);\n\t\tassertEquals(\"23\", cursor.getTextAtOffset());\n\t\tassert... | {
"fields": [
{
"declarator": "segment",
"modifier": "private final",
"original_string": "private final TextSegment segment;",
"type": "TextSegment",
"var_name": "segment"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": "private fi... | {
"body": "public String getTextAtOffset() {\n\t\treturn text.substring(textOffset, text.length());\n\t}",
"class_method_signature": "Cursor.getTextAtOffset()",
"constructor": false,
"full_signature": "public String getTextAtOffset()",
"identifier": "getTextAtOffset",
"invocations": [
"substring",
"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_241 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "writer = new DefaultXmlStreamWriter(out)",
... | {
"body": "@Test\n\tpublic void flush() {\n\t\twriter.writeStartDocument();\n\t\twriter.flush();\n\t\tassertXml(\"<?xml version='1.0' ?>\");\n\t}",
"class_method_signature": "DefaultXmlStreamWriterTest.flush()",
"constructor": false,
"full_signature": "@Test public void flush()",
"identifier": "flush",
"inv... | {
"fields": [
{
"declarator": "attributeEscaper = XmlEscapers.xmlAttributeEscaper()",
"modifier": "private final",
"original_string": "private final Escaper attributeEscaper = XmlEscapers.xmlAttributeEscaper();",
"type": "Escaper",
"var_name": "attributeEscaper"
},
{
"d... | {
"body": "@Override\n\tpublic void flush() {\n\t\tif (out != null) {\n\t\t\tout.flush();\n\t\t}\n\t}",
"class_method_signature": "DefaultXmlStreamWriter.flush()",
"constructor": false,
"full_signature": "@Override public void flush()",
"identifier": "flush",
"invocations": [
"flush"
],
"modifiers":... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_304 | {
"fields": [
{
"declarator": "out",
"modifier": "private",
"original_string": "private StringWriter out;",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlDocumentBuilder builder... | {
"body": "@Test\n\tpublic void addLinkUriProcessor() {\n\t\tbuilder.setEmitAsDocument(false);\n\t\tbuilder.addLinkUriProcessor(new UriProcessor() {\n\n\t\t\t@Override\n\t\t\tpublic String process(String uri) {\n\t\t\t\treturn \"a-uri\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String target(String uri) {\n\t\t\t\tr... | {
"fields": [
{
"declarator": "ABSOLUTE_URL_PATTERN = Pattern.compile(\"[a-zA-Z]{3,8}://?.*\")",
"modifier": "private static final",
"original_string": "private static final Pattern ABSOLUTE_URL_PATTERN = Pattern.compile(\"[a-zA-Z]{3,8}://?.*\");",
"type": "Pattern",
"var_name": "ABS... | {
"body": "public void addLinkUriProcessor(UriProcessor processor) {\n\t\tObjects.requireNonNull(processor, \"Must provide processor\");\n\t\tthis.linkUriProcessors = ImmutableList.<UriProcessor> builder()\n\t\t\t\t.addAll(linkUriProcessors)\n\t\t\t\t.add(processor)\n\t\t\t\t.build();\n\t}",
"class_method_signature... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_187 | {
"fields": [
{
"declarator": "writer",
"modifier": "private",
"original_string": "private StringWriter writer;",
"type": "StringWriter",
"var_name": "writer"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlSubsetDocument... | {
"body": "@Test\n\tpublic void acronym() {\n\t\tbuilder.acronym(\"ABC\", \"Always Be Cold\");\n\t\tassertContent(\"<acronym title=\\\"Always Be Cold\\\">ABC</acronym>\");\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilderTest.acronym()",
"constructor": false,
"full_signature": "@Test public void acron... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final HtmlDocumentBuilder delegate;",
"type": "HtmlDocumentBuilder",
"var_name": "delegate"
},
{
"declarator": "blockStrategies",
"modifier": "private",
"origi... | {
"body": "@Override\n\tpublic void acronym(String text, String definition) {\n\t\tassertOpenBlock();\n\t\tdelegate.acronym(text, definition);\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilder.acronym(String text, String definition)",
"constructor": false,
"full_signature": "@Override public void acro... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_168 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void documentNullSuffix() {\n\t\tNullPointerException npe = assertThrows(NullPointerException.class, () -> builder.document(\"ouch\", null));\n\t\tassertTrue(npe.getMessage().contains(\"Must provide a suffix\"));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.documentNullSuffix... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder document(String prefix, String suffix) {\n\t\trequireNonNull(prefix, \"Must provide a prefix\"); //$NON-NLS-1$\n\t\trequireNonNull(suffix, \"Must provide a suffix\"); //$NON-NLS-1$\n\t\tdocumentHandler = new LiteralHtmlDocumentHandler(prefix, suffix);\n\t\treturn this;\n\t}",
"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_216 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.maven/src/test/java/org/eclipse/mylyn/wikitext/maven/internal/SourceFileTraversalTest.java",
"identifier": "SourceFileTraversalTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void traverseRootMatch() {\n\t\tFile file = mockFile(\"one.Test\");\n\t\tSourceFileTraversal traversal = new SourceFileTraversal(mockFolder(\"test\", file));\n\t\tVisitor visitor = mock(Visitor.class);\n\t\ttraversal.traverse(visitor);\n\t\tverify(visitor).accept(eq(\"\"), same(file));\n\t\... | {
"fields": [
{
"declarator": "root",
"modifier": "private final",
"original_string": "private final File root;",
"type": "File",
"var_name": "root"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.maven/src/main/java/org/eclipse/mylyn/wikitext/maven/internal/SourceFile... | {
"body": "public void traverse(Visitor visitor) {\n\t\ttraverse(\"\", root, visitor);\n\t}",
"class_method_signature": "SourceFileTraversal.traverse(Visitor visitor)",
"constructor": false,
"full_signature": "public void traverse(Visitor visitor)",
"identifier": "traverse",
"invocations": [
"traverse"
... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_353 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/AcronymEventTest.java",
"identifier": "AcronymEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"acronym(one,two)\", new AcronymEvent(\"one\", \"two\").toString());\n\t}",
"class_method_signature": "AcronymEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifier": "testToString",... | {
"fields": [
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final String text;",
"type": "String",
"var_name": "text"
},
{
"declarator": "definition",
"modifier": "private final",
"original_string": "private final String de... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"acronym(%s,%s)\", text, definition); //$NON-NLS-1$\n\t}",
"class_method_signature": "AcronymEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations":... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_200 | {
"fields": [
{
"declarator": "writer",
"modifier": "private",
"original_string": "private StringWriter writer;",
"type": "StringWriter",
"var_name": "writer"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlSubsetDocument... | {
"body": "@Test\n\tpublic void setXhtmlStrict() {\n\t\tassertFalse(builder.getDelegate().isXhtmlStrict());\n\t\tbuilder.setXhtmlStrict(true);\n\t\tassertTrue(builder.getDelegate().isXhtmlStrict());\n\t\tbuilder.setXhtmlStrict(false);\n\t\tassertFalse(builder.getDelegate().isXhtmlStrict());\n\t}",
"class_method_sig... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final HtmlDocumentBuilder delegate;",
"type": "HtmlDocumentBuilder",
"var_name": "delegate"
},
{
"declarator": "blockStrategies",
"modifier": "private",
"origi... | {
"body": "void setXhtmlStrict(boolean xhtmlStrict) {\n\t\tdelegate.setXhtmlStrict(xhtmlStrict);\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilder.setXhtmlStrict(boolean xhtmlStrict)",
"constructor": false,
"full_signature": " void setXhtmlStrict(boolean xhtmlStrict)",
"identifier": "setXhtmlStrict"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_345 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/CharactersUnescapedEventTest.java",
"identifier": "CharactersUnescapedEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"charactersUnescaped(\\\"literal\\\")\", new CharactersUnescapedEvent(\"literal\").toString());\n\t}",
"class_method_signature": "CharactersUnescapedEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToStr... | {
"fields": [
{
"declarator": "literal",
"modifier": "private final",
"original_string": "private final String literal;",
"type": "String",
"var_name": "literal"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/eve... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"charactersUnescaped(\\\"%s\\\")\", literal); //$NON-NLS-1$\n\t}",
"class_method_signature": "CharactersUnescapedEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toStrin... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_129 | {
"fields": [
{
"declarator": "block = new ParagraphBlock()",
"modifier": "private final",
"original_string": "private final ParagraphBlock block = new ParagraphBlock();",
"type": "ParagraphBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.com... | {
"body": "@Test\n\tpublic void canStart() {\n\t\tassertFalse(block.canStart(LineSequence.create(\"\")));\n\t\tassertFalse(block.canStart(LineSequence.create(\"\\none\")));\n\t\tassertTrue(block.canStart(LineSequence.create(\"one\")));\n\t}",
"class_method_signature": "ParagraphBlockTest.canStart()",
"constructor... | {
"fields": [
{
"declarator": "INTERRUPTION_EXCLUSIONS = ImmutableSet.of(IndentedCodeBlock.class,\n\t\t\tSetextHeaderBlock.class, HtmlType7Block.class)",
"modifier": "private final",
"original_string": "private final Set<Class<? extends SourceBlock>> INTERRUPTION_EXCLUSIONS = ImmutableSet.of(Ind... | {
"body": "@Override\n\tpublic boolean canStart(LineSequence lineSequence) {\n\t\tLine line = lineSequence.getCurrentLine();\n\t\treturn line != null && !line.isEmpty();\n\t}",
"class_method_signature": "ParagraphBlock.canStart(LineSequence lineSequence)",
"constructor": false,
"full_signature": "@Override publ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_257 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/HtmlParserTest.java",
"identifier": "HtmlParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void instanceWithHtmlCleanupRules() {\n\t\tHtmlParser instance = HtmlParser.instanceWithHtmlCleanupRules();\n\t\tassertNotNull(instance);\n\t\tassertNotNull(instance.getDelegate());\n\t\tassertTrue(instance.getDelegate() instanceof org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser)... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final AbstractSaxHtmlParser delegate;",
"type": "AbstractSaxHtmlParser",
"var_name": "delegate"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/... | {
"body": "public static HtmlParser instanceWithHtmlCleanupRules() {\n\t\torg.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser parser = new org.eclipse.mylyn.wikitext.internal.parser.html.HtmlParser();\n\t\tHtmlCleaner htmlCleaner = new HtmlCleaner();\n\t\thtmlCleaner.configure(parser);\n\t\treturn new HtmlPars... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_312 | {
"fields": [
{
"declarator": "builder = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder builder = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/... | {
"body": "@Test\n\tpublic void beginHeading() {\n\t\tbuilder.beginHeading(3, new HeadingAttributes());\n\t\tassertEvents(new BeginHeadingEvent(3, new HeadingAttributes()));\n\t}",
"class_method_signature": "EventDocumentBuilderTest.beginHeading()",
"constructor": false,
"full_signature": "@Test public void beg... | {
"fields": [
{
"declarator": "events = new ArrayList<>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilderEvent> events = new ArrayList<>();",
"type": "List<DocumentBuilderEvent>",
"var_name": "events"
}
],
"file": "wikitext/core/org.eclip... | {
"body": "@Override\n\tpublic void beginHeading(int level, Attributes attributes) {\n\t\tevents.add(new BeginHeadingEvent(level, attributes));\n\t}",
"class_method_signature": "EventDocumentBuilder.beginHeading(int level, Attributes attributes)",
"constructor": false,
"full_signature": "@Override public void b... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_191 | {
"fields": [
{
"declarator": "writer",
"modifier": "private",
"original_string": "private StringWriter writer;",
"type": "StringWriter",
"var_name": "writer"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlSubsetDocument... | {
"body": "@Test(expected = NullPointerException.class)\n\tpublic void setSupportedBlockTypesNull() {\n\t\tbuilder.setSupportedBlockTypes(null);\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilderTest.setSupportedBlockTypesNull()",
"constructor": false,
"full_signature": "@Test(expected = NullPointerExc... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final HtmlDocumentBuilder delegate;",
"type": "HtmlDocumentBuilder",
"var_name": "delegate"
},
{
"declarator": "blockStrategies",
"modifier": "private",
"origi... | {
"body": "void setSupportedBlockTypes(Set<BlockType> blockTypes) {\n\t\tcheckState(blockStrategyState.isEmpty());\n\t\tblockStrategies = new BlockStrategies(blockTypes);\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilder.setSupportedBlockTypes(Set<BlockType> blockTypes)",
"constructor": false,
"full_s... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_190 | {
"fields": [
{
"declarator": "writer",
"modifier": "private",
"original_string": "private StringWriter writer;",
"type": "StringWriter",
"var_name": "writer"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlSubsetDocument... | {
"body": "@Test\n\tpublic void link() {\n\t\tbuilder.link(\"target\", \"text\");\n\t\tassertContent(\"<a href=\\\"target\\\">text</a>\");\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilderTest.link()",
"constructor": false,
"full_signature": "@Test public void link()",
"identifier": "link",
"invoc... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final HtmlDocumentBuilder delegate;",
"type": "HtmlDocumentBuilder",
"var_name": "delegate"
},
{
"declarator": "blockStrategies",
"modifier": "private",
"origi... | {
"body": "@Override\n\tpublic void link(Attributes attributes, String hrefOrHashName, String text) {\n\t\tassertOpenBlock();\n\t\tdelegate.link(attributes, hrefOrHashName, text);\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilder.link(Attributes attributes, String hrefOrHashName, String text)",
"constru... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_256 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/HtmlParserTest.java",
"identifier": "HtmlParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void instance() {\n\t\tHtmlParser instance = HtmlParser.instance();\n\t\tassertNotNull(instance);\n\t\tassertNotNull(instance.getDelegate());\n\t}",
"class_method_signature": "HtmlParserTest.instance()",
"constructor": false,
"full_signature": "@Test public void instance()",
"identi... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final AbstractSaxHtmlParser delegate;",
"type": "AbstractSaxHtmlParser",
"var_name": "delegate"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/... | {
"body": "public static HtmlParser instance() {\n\t\treturn new HtmlParser();\n\t}",
"class_method_signature": "HtmlParser.instance()",
"constructor": false,
"full_signature": "public static HtmlParser instance()",
"identifier": "instance",
"invocations": [],
"modifiers": "public static",
"parameters":... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_313 | {
"fields": [
{
"declarator": "builder = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder builder = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/... | {
"body": "@Test\n\tpublic void endHeading() {\n\t\tbuilder.endHeading();\n\t\tassertEvents(new EndHeadingEvent());\n\t}",
"class_method_signature": "EventDocumentBuilderTest.endHeading()",
"constructor": false,
"full_signature": "@Test public void endHeading()",
"identifier": "endHeading",
"invocations": [... | {
"fields": [
{
"declarator": "events = new ArrayList<>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilderEvent> events = new ArrayList<>();",
"type": "List<DocumentBuilderEvent>",
"var_name": "events"
}
],
"file": "wikitext/core/org.eclip... | {
"body": "@Override\n\tpublic void endHeading() {\n\t\tevents.add(new EndHeadingEvent());\n\t}",
"class_method_signature": "EventDocumentBuilder.endHeading()",
"constructor": false,
"full_signature": "@Override public void endHeading()",
"identifier": "endHeading",
"invocations": [
"add"
],
"modifi... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_128 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/blocks/EmptyBlockTest.java",
"identifier": "EmptyBlockTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void process() {\n\t\tLineSequence lineSequence = LineSequence.create(\"\\n2\");\n\t\tnew EmptyBlock().process(ProcessingContext.builder().build(), null, lineSequence);\n\t\tassertEquals(\"2\", lineSequence.getCurrentLine().getText());\n\t}",
"class_method_signature": "EmptyBlockTest.proc... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/blocks/EmptyBlock.java",
"identifier": "EmptyBlock",
"interfaces": "",
"methods": [
{
"class_method_signature": "EmptyBlock.process(ProcessingContext context, Doc... | {
"body": "@Override\n\tpublic void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) {\n\t\twhile (currentLineIsEmpty(lineSequence)) {\n\t\t\tlineSequence.advance();\n\t\t}\n\t}",
"class_method_signature": "EmptyBlock.process(ProcessingContext context, DocumentBuilder builder, ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_201 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/internal/SpanStrategiesTest.java",
"identifier": "SpanStrategiesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void createEmpty() {\n\t\tSpanStrategies strategies = new SpanStrategies(Sets.<SpanType> newHashSet(),\n\t\t\t\tCollections.<SpanHtmlElementStrategy> emptyList());\n\t\tassertNotNull(strategies.getStrategy(SpanType.BOLD, new Attributes()));\n\t}",
"class_method_signature": "SpanStrategies... | {
"fields": [
{
"declarator": "spanTypeToAlternatives = createSpanTypeToAlternatives()",
"modifier": "private static final",
"original_string": "private static final Map<SpanType, List<SpanType>> spanTypeToAlternatives = createSpanTypeToAlternatives();",
"type": "Map<SpanType, List<SpanTyp... | {
"body": "@Override\n\tpublic SpanStrategy getStrategy(SpanType elementType, Attributes attributes) {\n\t\tSpanStrategy strategy = super.getStrategy(elementType, attributes);\n\t\tif (elementType == SpanType.SPAN && strategy instanceof UnsupportedSpanStrategy) {\n\t\t\tSpanStrategy alternateStrategy = calculateAlter... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_344 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/BeginSpanEventTest.java",
"identifier": "BeginSpanEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new BeginSpanEvent(SpanType.CODE, new Attributes()),\n\t\t\t\tnew BeginSpanEvent(SpanType.CODE, new Attributes()));\n\t\tassertInequality(new BeginSpanEvent(SpanType.CODE, new Attributes()),\n\t\t\t\tnew BeginSpanEvent(SpanType.BOLD, new Attributes()));\n... | {
"fields": [
{
"declarator": "type",
"modifier": "private final",
"original_string": "private final SpanType type;",
"type": "SpanType",
"var_name": "type"
},
{
"declarator": "attributes",
"modifier": "private final",
"original_string": "private final Attri... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (obj == this) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof BeginSpanEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\tBeginSpanEvent other = (BeginSpanEvent) obj;\n\t\treturn type == other.type;\... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_217 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.maven/src/test/java/org/eclipse/mylyn/wikitext/maven/internal/SourceFileTraversalTest.java",
"identifier": "SourceFileTraversalTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void traverseMatchWithPath() {\n\t\tFile file = mockFile(\"one.Test\");\n\t\tSourceFileTraversal traversal = new SourceFileTraversal(\n\t\t\t\tmockFolder(\"test\", mockFolder(\"depth1\", mockFolder(\"depth2\", file))));\n\t\tVisitor visitor = mock(Visitor.class);\n\t\ttraversal.traverse(vis... | {
"fields": [
{
"declarator": "root",
"modifier": "private final",
"original_string": "private final File root;",
"type": "File",
"var_name": "root"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.maven/src/main/java/org/eclipse/mylyn/wikitext/maven/internal/SourceFile... | {
"body": "public void traverse(Visitor visitor) {\n\t\ttraverse(\"\", root, visitor);\n\t}",
"class_method_signature": "SourceFileTraversal.traverse(Visitor visitor)",
"constructor": false,
"full_signature": "public void traverse(Visitor visitor)",
"identifier": "traverse",
"invocations": [
"traverse"
... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_352 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/ImageEventTest.java",
"identifier": "ImageEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new ImageEvent(new Attributes(), \"http://example.com/img.png\"),\n\t\t\t\tnew ImageEvent(new Attributes(), \"http://example.com/img.png\"));\n\t\tassertInequality(new ImageEvent(new Attributes(), \"http://example.com/img.png\"),\n\t\t\t\tnew ImageEvent(n... | {
"fields": [
{
"declarator": "url",
"modifier": "private final",
"original_string": "private final String url;",
"type": "String",
"var_name": "url"
},
{
"declarator": "attributes",
"modifier": "private final",
"original_string": "private final Attributes a... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (obj == this) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof ImageEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn Objects.equals(url, ((ImageEvent) obj).url);\n\t}",
"class_method_signat... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_186 | {
"fields": [
{
"declarator": "writer",
"modifier": "private",
"original_string": "private StringWriter writer;",
"type": "StringWriter",
"var_name": "writer"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlSubsetDocument... | {
"body": "@Test\n\tpublic void entityReference() {\n\t\tbuilder.entityReference(\"copy\");\n\t\tassertContent(\"©\");\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilderTest.entityReference()",
"constructor": false,
"full_signature": "@Test public void entityReference()",
"identifier": "entityRe... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final HtmlDocumentBuilder delegate;",
"type": "HtmlDocumentBuilder",
"var_name": "delegate"
},
{
"declarator": "blockStrategies",
"modifier": "private",
"origi... | {
"body": "@Override\n\tpublic void entityReference(String entity) {\n\t\tassertOpenBlock();\n\t\tdelegate.entityReference(entity);\n\t}",
"class_method_signature": "HtmlSubsetDocumentBuilder.entityReference(String entity)",
"constructor": false,
"full_signature": "@Override public void entityReference(String e... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_169 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void addSpanFont() {\n\t\tStringWriter writer = new StringWriter();\n\t\tHtmlLanguage language = builder.addSpanFont().add(BlockType.PARAGRAPH).document(\"\", \"\").name(\"Test\").create();\n\t\tDocumentBuilder builder = language.createDocumentBuilder(writer);\n\t\tbuilder.beginDocument();\... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder addSpanFont() {\n\t\tspanElementStrategies.add(new FontElementStrategy());\n\t\treturn this;\n\t}",
"class_method_signature": "HtmlLanguageBuilder.addSpanFont()",
"constructor": false,
"full_signature": "public HtmlLanguageBuilder addSpanFont()",
"identifier": "addSpanFon... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_240 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "writer = new DefaultXmlStreamWriter(out)",
... | {
"body": "@Test\n\tpublic void writeCData() {\n\t\twriter.writeStartDocument();\n\t\twriter.writeStartElement(\"test\");\n\t\twriter.writeCData(\"one\\ntwo\");\n\t\twriter.writeEndElement();\n\t\tassertXml(\"<?xml version='1.0' ?><test><![CDATA[one\\ntwo]]></test>\");\n\t}",
"class_method_signature": "DefaultXmlSt... | {
"fields": [
{
"declarator": "attributeEscaper = XmlEscapers.xmlAttributeEscaper()",
"modifier": "private final",
"original_string": "private final Escaper attributeEscaper = XmlEscapers.xmlAttributeEscaper();",
"type": "Escaper",
"var_name": "attributeEscaper"
},
{
"d... | {
"body": "@Override\n\tpublic void writeCData(String data) {\n\t\tcloseElement();\n\t\tout.write(\"<![CDATA[\"); //$NON-NLS-1$\n\t\tout.write(data);\n\t\tout.write(\"]]>\"); //$NON-NLS-1$\n\t}",
"class_method_signature": "DefaultXmlStreamWriter.writeCData(String data)",
"constructor": false,
"full_signature": ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_305 | {
"fields": [
{
"declarator": "builder = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder builder = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/... | {
"body": "@Test\n\tpublic void create() {\n\t\tDocumentBuilderEvents events = builder.getDocumentBuilderEvents();\n\t\tassertNotNull(events);\n\t\tassertTrue(events.getEvents().isEmpty());\n\t}",
"class_method_signature": "EventDocumentBuilderTest.create()",
"constructor": false,
"full_signature": "@Test publi... | {
"fields": [
{
"declarator": "events = new ArrayList<>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilderEvent> events = new ArrayList<>();",
"type": "List<DocumentBuilderEvent>",
"var_name": "events"
}
],
"file": "wikitext/core/org.eclip... | {
"body": "public DocumentBuilderEvents getDocumentBuilderEvents() {\n\t\treturn new DocumentBuilderEvents(events);\n\t}",
"class_method_signature": "EventDocumentBuilder.getDocumentBuilderEvents()",
"constructor": false,
"full_signature": "public DocumentBuilderEvents getDocumentBuilderEvents()",
"identifier... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_77 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineSequenceTest.java",
"identifier": "LineSequenceTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void advance() {\n\t\tassertAdvance(LineSequence.create(\"one\"));\n\t}",
"class_method_signature": "LineSequenceTest.advance()",
"constructor": false,
"full_signature": "@Test public void advance()",
"identifier": "advance",
"invocations": [
"assertAdvance",
"create"
],... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineSequence.java",
"identifier": "LineSequence",
"interfaces": "implements Iterable<Line>",
"methods": [
{
"class_method_signature": "LineSequence.create(String ... | {
"body": "public abstract void advance();",
"class_method_signature": "LineSequence.advance()",
"constructor": false,
"full_signature": "public abstract void advance()",
"identifier": "advance",
"invocations": [],
"modifiers": "public abstract",
"parameters": "()",
"return": "void",
"signature": "v... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_112 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LinesIterableTest.java",
"identifier": "LinesIterableTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void hasNext() {\n\t\tPredicate<Line> predicate = mock(Predicate.class);\n\t\tLineSequence lineSequence = LineSequence.create(\"one\");\n\t\tIterator<Line> iterator = new LinesIterable(lineSequence, predicate).iterator();\n\t\tassertFalse(iterator.hasNext... | {
"fields": [
{
"declarator": "lineSequence",
"modifier": "private final",
"original_string": "private final LineSequence lineSequence;",
"type": "LineSequence",
"var_name": "lineSequence"
},
{
"declarator": "predicate",
"modifier": "private final",
"origina... | {
"body": "@Override\n\tpublic Iterator<Line> iterator() {\n\t\treturn new LinesIterator();\n\t}",
"class_method_signature": "LinesIterable.iterator()",
"constructor": false,
"full_signature": "@Override public Iterator<Line> iterator()",
"identifier": "iterator",
"invocations": [],
"modifiers": "@Overrid... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_98 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/CursorTest.java",
"identifier": "CursorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void rewind() {\n\t\tCursor cursor = new Cursor(createTextSegment(\"1\\n23\"));\n\t\tcursor.advance(2);\n\t\tassertEquals('2', cursor.getChar());\n\t\tcursor.rewind();\n\t\tassertEquals('\\n', cursor.getChar());\n\t\tcursor.rewind();\n\t\tassertEquals('1', cursor.getChar());\n\t\tcursor.adv... | {
"fields": [
{
"declarator": "segment",
"modifier": "private final",
"original_string": "private final TextSegment segment;",
"type": "TextSegment",
"var_name": "segment"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": "private fi... | {
"body": "public void rewind(int count) {\n\t\tcheckArgument(count >= 0);\n\t\tfor (int x = 0; x < count; ++x) {\n\t\t\trewind();\n\t\t}\n\t}",
"class_method_signature": "Cursor.rewind(int count)",
"constructor": false,
"full_signature": "public void rewind(int count)",
"identifier": "rewind",
"invocations... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_145 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/HtmlLanguageTest.java",
"identifier": "HtmlLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void builder() {\n\t\tassertNotNull(HtmlLanguage.builder());\n\t}",
"class_method_signature": "HtmlLanguageTest.builder()",
"constructor": false,
"full_signature": "@Test public void builder()",
"identifier": "builder",
"invocations": [
"assertNotNull",
"builder"
],
"m... | {
"fields": [
{
"declarator": "NAME_HTML = \"HTML\"",
"modifier": "static final",
"original_string": "static final String NAME_HTML = \"HTML\";",
"type": "String",
"var_name": "NAME_HTML"
},
{
"declarator": "parseCleansHtml = true",
"modifier": "private",
"o... | {
"body": "public static HtmlLanguageBuilder builder() {\n\t\treturn new HtmlLanguageBuilder();\n\t}",
"class_method_signature": "HtmlLanguage.builder()",
"constructor": false,
"full_signature": "public static HtmlLanguageBuilder builder()",
"identifier": "builder",
"invocations": [],
"modifiers": "public... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_20 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void blockCode() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.CODE, new Attributes());\n\t\tbuilder.characters(\"text\\n\\nmore text\");\n\t\tbuilder.endBlock();\n\t\tbuilder.endDocument();\n\n\t\tString markup = out.toString();\n\n\t\tassertEquals(\"{code}text\\n\\nmor... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_283 | {
"fields": [
{
"declarator": "delegate1 = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder delegate1 = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "delegate1"
},
{
"declarator... | {
"body": "@Test\n\tpublic void setLocator() {\n\t\tDocumentBuilder delegateOne = new NoOpDocumentBuilder();\n\t\tDocumentBuilder delegateTwo = new NoOpDocumentBuilder();\n\t\tLocator locator = new ContentState();\n\n\t\tmultiplexer = new MultiplexingDocumentBuilder(delegateOne, delegateTwo);\n\t\tmultiplexer.setLoca... | {
"fields": [
{
"declarator": "builders = new ArrayList<DocumentBuilder>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilder> builders = new ArrayList<DocumentBuilder>();",
"type": "List<DocumentBuilder>",
"var_name": "builders"
}
],
"file"... | {
"body": "@Override\n\tpublic void setLocator(Locator locator) {\n\t\tsuper.setLocator(locator);\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.setLocator(locator);\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.setLocator(Locator locator)",
"constructor": false,
"full_sig... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_329 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/EndBlockEventTest.java",
"identifier": "EndBlockEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"endBlock()\", new EndBlockEvent().toString());\n\t}",
"class_method_signature": "EndBlockEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifier": "testToString",
"invocations": [
... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/event/EndBlockEvent.java",
"identifier": "EndBlockEvent",
"interfaces": "",
"methods": [
{
"class_method_signature": "EndBlockEvent.invoke(DocumentBuilder builder)",
"const... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn \"endBlock()\"; //$NON-NLS-1$\n\t}",
"class_method_signature": "EndBlockEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [],
"modifiers": "@Override publi... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_36 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void linkSpanWithAdjacentSpans() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.beginSpan(SpanType.BOLD, new Attributes());\n\t\tbuilder.characters(\"bold\");\n\t\tbuilder.endSpan();\n\n\t\tLinkAttributes attributes = new LinkAttributes();\n\t\tattributes.setHref(\"http://example.com/target... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_153 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void nameBlacklisted3() {\n\t\tIllegalArgumentException iae = assertThrows(IllegalArgumentException.class,\n\t\t\t\t() -> builder.name(HtmlLanguage.NAME_HTML.toUpperCase()));\n\t\tassertTrue(iae.getMessage().contains(\"Name must not be equal to \" + HtmlLanguage.NAME_HTML));\n\t}",
"class... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder name(String name) {\n\t\trequireNonNull(name, \"Must provide a name\"); //$NON-NLS-1$\n\t\tcheckArgument(!Strings.isNullOrEmpty(name), \"Name must not be empty\"); //$NON-NLS-1$\n\t\tcheckArgument(!name.equalsIgnoreCase(HtmlLanguage.NAME_HTML), \"Name must not be equal to %s\", /... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_295 | {
"fields": [
{
"declarator": "processor = new JavadocShortcutUriProcessor(\"../\",\n\t\t\t\"org.eclipse.mylyn.wikitext\")",
"modifier": "private final",
"original_string": "private final JavadocShortcutUriProcessor processor = new JavadocShortcutUriProcessor(\"../\",\n\t\t\t\"org.eclipse.mylyn.... | {
"body": "@Test\n\tpublic void processMalformedName() {\n\t\tassertEquals(\"@foo-bar\", processor.process(\"@foo-bar\"));\n\t}",
"class_method_signature": "JavadocShortcutUriProcessorTest.processMalformedName()",
"constructor": false,
"full_signature": "@Test public void processMalformedName()",
"identifier"... | {
"fields": [
{
"declarator": "TARGET = \"_javadoc\"",
"modifier": "private static final",
"original_string": "private static final String TARGET = \"_javadoc\";",
"type": "String",
"var_name": "TARGET"
},
{
"declarator": "JAVADOC_URI_MARKER = \"@\"",
"modifier": ... | {
"body": "@Override\n\tpublic String process(String uri) {\n\t\tString newUri = preprocessUri(uri);\n\t\tif (!newUri.equals(uri)) {\n\t\t\tnewUri = prependWithBasePackage(newUri);\n\t\t\tif (SourceVersion.isName(newUri)) {\n\t\t\t\tif (isPotentialPackageName(newUri)) {\n\t\t\t\t\treturn toPackagePage(newUri);\n\t\t\... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_104 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/CursorTest.java",
"identifier": "CursorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = IllegalArgumentException.class)\n\tpublic void toCursorOffset() {\n\t\tCursor cursor = new Cursor(new TextSegment(ImmutableList.of(new Line(1, 10, \"abc\"))));\n\t\tassertEquals(0, cursor.toCursorOffset(10));\n\t\tassertEquals(2, cursor.toCursorOffset(12));\n\t\tcursor.toCursorOffset(9);\n... | {
"fields": [
{
"declarator": "segment",
"modifier": "private final",
"original_string": "private final TextSegment segment;",
"type": "TextSegment",
"var_name": "segment"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": "private fi... | {
"body": "public int toCursorOffset(int documentOffset) {\n\t\treturn segment.toTextOffset(documentOffset);\n\t}",
"class_method_signature": "Cursor.toCursorOffset(int documentOffset)",
"constructor": false,
"full_signature": "public int toCursorOffset(int documentOffset)",
"identifier": "toCursorOffset",
... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_61 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.confluence/src/test/java/org/eclipse/mylyn/wikitext/confluence/internal/block/ExtendedQuoteBlockTest.java",
"identifier": "ExtendedQuoteBlockTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void beginNestingWithoutANestedBlock() {\n\t\tExtendedQuoteBlock block = new ExtendedQuoteBlock();\n\t\tassertEquals(false, block.beginNesting());\n\t}",
"class_method_signature": "ExtendedQuoteBlockTest.beginNestingWithoutANestedBlock()",
"constructor": false,
"full_signature": "@Tes... | {
"fields": [
{
"declarator": "paraLine = 0",
"modifier": "private",
"original_string": "private int paraLine = 0;",
"type": "int",
"var_name": "paraLine"
},
{
"declarator": "paraOpen = false",
"modifier": "private",
"original_string": "private boolean paraO... | {
"body": "@Override\n\tpublic boolean beginNesting() {\n\t\tif (nestedBlock == null) {\n\t\t\treturn super.beginNesting();\n\t\t}\n\t\treturn nestedBlock.beginNesting();\n\t}",
"class_method_signature": "ExtendedQuoteBlock.beginNesting()",
"constructor": false,
"full_signature": "@Override public boolean begin... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_2 | {
"fields": [
{
"declarator": "strategy = new GfmIdGenerationStrategy()",
"modifier": "private final",
"original_string": "private final GfmIdGenerationStrategy strategy = new GfmIdGenerationStrategy();",
"type": "GfmIdGenerationStrategy",
"var_name": "strategy"
}
],
"file": ... | {
"body": "@Test\n\tpublic void withLeadingSpaces() {\n\t\tassertEquals(\"withleadingspaces\", strategy.generateId(\" withleadingspaces\"));\n\t}",
"class_method_signature": "GfmIdGenerationStrategyTest.withLeadingSpaces()",
"constructor": false,
"full_signature": "@Test public void withLeadingSpaces()",
"id... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.markdown/src/main/java/org/eclipse/mylyn/wikitext/markdown/internal/GfmIdGenerationStrategy.java",
"identifier": "GfmIdGenerationStrategy",
"interfaces": "",
"methods": [
{
"class_method_signature": "GfmIdGenerationStrategy.generateId... | {
"body": "@Override\n\tpublic String generateId(String headingText) {\n\t\tString id = headingText.toLowerCase(Locale.getDefault());\n\t\tid = id.replaceAll(\"[^a-z0-9_-]\", \"-\"); //$NON-NLS-1$//$NON-NLS-2$\n\t\tCharMatcher hyphenMatcher = CharMatcher.is('-');\n\t\tid = hyphenMatcher.trimFrom(hyphenMatcher.collaps... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_16 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void paragraphWithCssStyle() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes(null, null, \"x-test: foo;\", null));\n\t\tbuilder.characters(\"text\\n\\nmore text\");\n\t\tbuilder.endBlock();\n\t\tbuilder.endDocument();\n\n\t\tString markup = out.to... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_173 | {
"fields": [
{
"declarator": "strategy = new FontElementStrategy()",
"modifier": "private final",
"original_string": "private final FontElementStrategy strategy = new FontElementStrategy();",
"type": "FontElementStrategy",
"var_name": "strategy"
}
],
"file": "wikitext/core/o... | {
"body": "@Test\n\tpublic void spanStrategyBuildsNonHtml() {\n\t\tEventDocumentBuilder builder = new EventDocumentBuilder();\n\t\tSpanStrategy spanStrategy = strategy.spanStrategy();\n\t\tspanStrategy.beginSpan(builder, SpanType.SPAN, new Attributes(null, null, \"color: red\", null));\n\t\tbuilder.characters(\"test\... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/main/java/org/eclipse/mylyn/wikitext/html/internal/FontElementStrategy.java",
"identifier": "FontElementStrategy",
"interfaces": "",
"methods": [
{
"class_method_signature": "FontElementStrategy.FontElementStrategy()",
... | {
"body": "@Override\n\tpublic SpanStrategy spanStrategy() {\n\t\treturn new FontSpanStrategy();\n\t}",
"class_method_signature": "FontElementStrategy.spanStrategy()",
"constructor": false,
"full_signature": "@Override public SpanStrategy spanStrategy()",
"identifier": "spanStrategy",
"invocations": [],
"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_348 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/EndDocumentEventTest.java",
"identifier": "EndDocumentEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new EndDocumentEvent(), new EndDocumentEvent());\n\t}",
"class_method_signature": "EndDocumentEventTest.equals()",
"constructor": false,
"full_signature": "@Test public void equals()",
"identifier": "equals",
"invocations": [
"assertEquality... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/event/EndDocumentEvent.java",
"identifier": "EndDocumentEvent",
"interfaces": "",
"methods": [
{
"class_method_signature": "EndDocumentEvent.invoke(DocumentBuilder builder)",
... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (obj == this) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(obj instanceof EndDocumentEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"class_method_signature": "EndDocumentEvent.equals(Ob... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_124 | {
"fields": [
{
"declarator": "block = new HorizontalRuleBlock()",
"modifier": "private final",
"original_string": "private final HorizontalRuleBlock block = new HorizontalRuleBlock();",
"type": "HorizontalRuleBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclips... | {
"body": "@Test\n\tpublic void process() {\n\t\tassertContent(\"<p>one</p><hr/>\", \"one\\n\\n------\\n\");\n\t\tassertContent(\"<p>one</p><hr/>\", \"one\\n\\n---\\n\");\n\t\tassertContent(\"<p>one</p><hr/>\", \"one\\n\\n- - -\\n\");\n\t\tassertContent(\"<p>one</p><hr/>\", \"one\\n\\n ** *****\\n\");\n\t}",
"cl... | {
"fields": [
{
"declarator": "PATTERN = Pattern.compile(\" {0,3}((\\\\*[ \\t]*){3,}|(-[ \\t]*){3,}|(_[ \\t]*){3,})\")",
"modifier": "private static final",
"original_string": "private static final Pattern PATTERN = Pattern.compile(\" {0,3}((\\\\*[ \\t]*){3,}|(-[ \\t]*){3,}|(_[ \\t]*){3,})\");",... | {
"body": "@Override\n\tpublic void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) {\n\t\tbuilder.setLocator(lineSequence.getCurrentLine().toLocator());\n\t\tbuilder.horizontalRule();\n\t\tlineSequence.advance();\n\t}",
"class_method_signature": "HorizontalRuleBlock.process(P... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_41 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void linkSpanWithSurroundingItalics() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.beginSpan(SpanType.ITALIC, new Attributes());\n\t\tbuilder.characters(\"prefix \");\n\n\t\tLinkAttributes attributes = new LinkAttributes();\n\t\tattributes.setHref(\"http://example.com/target\");\n\t\tbuil... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_57 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder = new ConfluenceDocumentBuilder(out)",... | {
"body": "@Test\n\tpublic void citationAfterBlockQuote() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.QUOTE, new Attributes());\n\t\tbuilder.beginSpan(SpanType.CITATION, new Attributes());\n\t\tbuilder.characters(\"citation\");\n\t\tbuilder.endSpan();\n\t\tbuilder.endBlock();\n\t\tbuilder.beginS... | {
"fields": [
{
"declarator": "NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\"",
"modifier": "private static final",
"original_string": "private static final String NEWLINE_REGEX = \"(?:\\r\\n|\\r|\\n)\";",
"type": "String",
"var_name": "NEWLINE_REGEX"
},
{
"declarator": "PATTER... | {
"body": "@Override\n\tpublic void characters(String text) {\n\t\tassertOpenBlock();\n\t\ttry {\n\t\t\tfor (int x = 0; x < text.length(); ++x) {\n\t\t\t\tchar c = text.charAt(x);\n\t\t\t\tswitch (c) {\n\t\t\t\tcase '\\u00A0':// \n\t\t\t\t\tcurrentBlock.write(' ');\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\u00A9': // ... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_132 | {
"fields": [
{
"declarator": "block = new IndentedCodeBlock()",
"modifier": "private final",
"original_string": "private final IndentedCodeBlock block = new IndentedCodeBlock();",
"type": "IndentedCodeBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclipse.mylyn.... | {
"body": "@Test\n\tpublic void process() {\n\t\tassertContent(\"<pre><code>code\\n</code></pre>\", \" code\");\n\t\tassertContent(\"<pre><code>code\\n</code></pre>\", \"\\tcode\");\n\t\tassertContent(\"<pre><code> code\\n</code></pre>\", \"\\t code\");\n\t\tassertContent(\"<pre><code>code \\n</code></pre>\", \"\... | {
"fields": [
{
"declarator": "PATTERN = Pattern.compile(\"(?: {0,3}\\t| {4})(.*)\")",
"modifier": "private static final",
"original_string": "private static final Pattern PATTERN = Pattern.compile(\"(?: {0,3}\\t| {4})(.*)\");",
"type": "Pattern",
"var_name": "PATTERN"
}
],
"... | {
"body": "@Override\n\tpublic void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) {\n\t\tbuilder.setLocator(lineSequence.getCurrentLine().toLocator());\n\t\tbuilder.beginBlock(BlockType.CODE, new Attributes());\n\n\t\tboolean blockHasContent = false;\n\t\tIterator<Line> iterat... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_309 | {
"fields": [
{
"declarator": "builder = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder builder = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/... | {
"body": "@Test\n\tpublic void endBlock() {\n\t\tbuilder.endBlock();\n\t\tassertEvents(new EndBlockEvent());\n\t}",
"class_method_signature": "EventDocumentBuilderTest.endBlock()",
"constructor": false,
"full_signature": "@Test public void endBlock()",
"identifier": "endBlock",
"invocations": [
"endBlo... | {
"fields": [
{
"declarator": "events = new ArrayList<>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilderEvent> events = new ArrayList<>();",
"type": "List<DocumentBuilderEvent>",
"var_name": "events"
}
],
"file": "wikitext/core/org.eclip... | {
"body": "@Override\n\tpublic void endBlock() {\n\t\tevents.add(new EndBlockEvent());\n\t}",
"class_method_signature": "EventDocumentBuilder.endBlock()",
"constructor": false,
"full_signature": "@Override public void endBlock()",
"identifier": "endBlock",
"invocations": [
"add"
],
"modifiers": "@Ov... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_165 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void addHeadingsUpperBounds() {\n\t\tbuilder.addHeadings(6);\n\t\tIllegalArgumentException iae = assertThrows(IllegalArgumentException.class, () -> builder.addHeadings(7));\n\t\tassertTrue(iae.getMessage().contains(\"Heading level must be between 1 and 6\"));\n\t}",
"class_method_signatur... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder addHeadings(int level) {\n\t\tcheckArgument(level > 0 && level <= 6, \"Heading level must be between 1 and 6\"); //$NON-NLS-1$\n\t\theadingLevel = level;\n\t\treturn this;\n\t}",
"class_method_signature": "HtmlLanguageBuilder.addHeadings(int level)",
"constructor": false,
"... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_237 | {
"fields": [
{
"declarator": "out = new StringWriter()",
"modifier": "private final",
"original_string": "private final StringWriter out = new StringWriter();",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "delegate = new DefaultXmlStreamWriter(out)",
... | {
"body": "@Test\n\tpublic void writeDefaultNamespace() {\n\t\tadapter.writeStartDocument();\n\t\tadapter.writeStartElement(\"uri:urn:a\", \"test\");\n\t\tadapter.writeDefaultNamespace(\"uri:urn:a\");\n\t\tadapter.writeCharacters(\"test it\");\n\t\tadapter.writeEndElement();\n\t\tadapter.writeEndDocument();\n\t\tadap... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final XmlStreamWriter delegate;",
"type": "XmlStreamWriter",
"var_name": "delegate"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikite... | {
"body": "@Override\n\tpublic void writeDefaultNamespace(String namespaceURI) {\n\t\tdelegate.writeDefaultNamespace(namespaceURI);\n\t}",
"class_method_signature": "XmlStreamWriterAdapter.writeDefaultNamespace(String namespaceURI)",
"constructor": false,
"full_signature": "@Override public void writeDefaultNam... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_94 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/PotentialEmphasisSpanTest.java",
"identifier": "PotentialEmphasisSpanTest",
"interfaces": "",
"superclass": "extends AbstractSourceSpanTest"
} | {
"body": "@Test\n\tpublic void isLeftFlanking() {\n\t\tassertLeftFlanking(true, \"**a\", 0, 2);\n\t\tassertLeftFlanking(false, \"** a\", 0, 2);\n\t\tassertLeftFlanking(true, \" **a\", 1, 2);\n\t\tassertLeftFlanking(true, \".**a\", 1, 2);\n\t\tassertLeftFlanking(false, \"**\", 0, 2);\n\n\t\tassertLeftFlanking(true, \... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/PotentialEmphasisSpan.java",
"identifier": "PotentialEmphasisSpan",
"interfaces": "",
"methods": [
{
"class_method_signature": "PotentialEmphasisSpan.crea... | {
"body": "boolean isLeftFlanking(Cursor cursor, int length) {\n\t\tchar charBefore = charBefore(cursor);\n\t\tchar charAfter = charAfter(cursor, length);\n\t\treturn !isWhitespace(charAfter)\n\t\t\t\t&& !(isPunctuation(charAfter) && !isWhitespace(charBefore) && !isPunctuation(charBefore));\n\t}",
"class_method_sig... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_325 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/EntityReferenceEventTest.java",
"identifier": "EntityReferenceEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"entityReference(\\\"ent\\\")\", new EntityReferenceEvent(\"ent\").toString());\n\t}",
"class_method_signature": "EntityReferenceEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifie... | {
"fields": [
{
"declarator": "entity",
"modifier": "private final",
"original_string": "private final String entity;",
"type": "String",
"var_name": "entity"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/event/... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"entityReference(\\\"%s\\\")\", entity); //$NON-NLS-1$\n\t}",
"class_method_signature": "EntityReferenceEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"in... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_260 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/markup/MarkupLanguageProviderTest.java",
"identifier": "MarkupLanguageProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void getMarkupLanguagesNull() {\n\t\tMarkupLanguageProvider provider = new MarkupLanguageProvider() {\n\n\t\t\t@Override\n\t\t\tprotected Set<MarkupLanguage> loadMarkupLanguages() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t\tNullPointerException npe = assertThrows(NullPointerException.clas... | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/markup/MarkupLanguageProvider.java",
"identifier": "MarkupLanguageProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "MarkupLanguageProvider.getMarkupLanguages()",
... | {
"body": "public final Set<MarkupLanguage> getMarkupLanguages() {\n\t\tSet<MarkupLanguage> languages = ImmutableSet\n\t\t\t\t.copyOf(Objects.requireNonNull(loadMarkupLanguages(), \"loadMarkupLanguages() must not return null\")); //$NON-NLS-1$\n\t\tassertLanguageNames(languages);\n\t\treturn languages;\n\t}",
"clas... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_149 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlLanguageBuilder builder;",
"type": "HtmlLanguageBuilder",
"var_name": "builder"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext... | {
"body": "@Test\n\tpublic void nameEmpty() {\n\t\tIllegalArgumentException iae = assertThrows(IllegalArgumentException.class, () -> builder.name(\"\"));\n\t\tassertTrue(iae.getMessage().contains(\"Name must not be empty\"));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.nameEmpty()",
"constructor": f... | {
"fields": [
{
"declarator": "name",
"modifier": "private",
"original_string": "private String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "blockTypes = Sets.newHashSet()",
"modifier": "private final",
"original_string": "private final S... | {
"body": "public HtmlLanguageBuilder name(String name) {\n\t\trequireNonNull(name, \"Must provide a name\"); //$NON-NLS-1$\n\t\tcheckArgument(!Strings.isNullOrEmpty(name), \"Name must not be empty\"); //$NON-NLS-1$\n\t\tcheckArgument(!name.equalsIgnoreCase(HtmlLanguage.NAME_HTML), \"Name must not be equal to %s\", /... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_299 | {
"fields": [
{
"declarator": "out",
"modifier": "private",
"original_string": "private StringWriter out;",
"type": "StringWriter",
"var_name": "out"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private HtmlDocumentBuilder builder... | {
"body": "@Test\n\tpublic void horizontalRule() {\n\t\tbuilder.setEmitAsDocument(false);\n\t\tbuilder.beginDocument();\n\t\tbuilder.horizontalRule();\n\t\tbuilder.endDocument();\n\t\tassertEquals(\"<hr/>\", out.toString());\n\t}",
"class_method_signature": "HtmlDocumentBuilderTest.horizontalRule()",
"constructor... | {
"fields": [
{
"declarator": "ABSOLUTE_URL_PATTERN = Pattern.compile(\"[a-zA-Z]{3,8}://?.*\")",
"modifier": "private static final",
"original_string": "private static final Pattern ABSOLUTE_URL_PATTERN = Pattern.compile(\"[a-zA-Z]{3,8}://?.*\");",
"type": "Pattern",
"var_name": "ABS... | {
"body": "@Override\n\tpublic void horizontalRule() {\n\t\twriter.writeEmptyElement(htmlNsUri, \"hr\"); //$NON-NLS-1$\n\t}",
"class_method_signature": "HtmlDocumentBuilder.horizontalRule()",
"constructor": false,
"full_signature": "@Override public void horizontalRule()",
"identifier": "horizontalRule",
"i... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_333 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/ImageLinkEventTest.java",
"identifier": "ImageLinkEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"imageLink(http://example.com,http://example.com/img.png)\",\n\t\t\t\tnew ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), \"http://example.com\",\n\t\t\t\t\t\t\"http://example.com/img.png\").toString());\n\t}",
"class_method_signature":... | {
"fields": [
{
"declarator": "linkAttributes",
"modifier": "private final",
"original_string": "private final Attributes linkAttributes;",
"type": "Attributes",
"var_name": "linkAttributes"
},
{
"declarator": "href",
"modifier": "private final",
"original_s... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"imageLink(%s,%s)\", href, imageUrl); //$NON-NLS-1$\n\t}",
"class_method_signature": "ImageLinkEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_276 | {
"fields": [
{
"declarator": "delegate1 = new EventDocumentBuilder()",
"modifier": "private final",
"original_string": "private final EventDocumentBuilder delegate1 = new EventDocumentBuilder();",
"type": "EventDocumentBuilder",
"var_name": "delegate1"
},
{
"declarator... | {
"body": "@Test\n\tpublic void horizontalRule() {\n\t\tmultiplexer.horizontalRule();\n\t\tassertEvents(new HorizontalRuleEvent());\n\t}",
"class_method_signature": "MultiplexingDocumentBuilderTest.horizontalRule()",
"constructor": false,
"full_signature": "@Test public void horizontalRule()",
"identifier": "... | {
"fields": [
{
"declarator": "builders = new ArrayList<DocumentBuilder>()",
"modifier": "private final",
"original_string": "private final List<DocumentBuilder> builders = new ArrayList<DocumentBuilder>();",
"type": "List<DocumentBuilder>",
"var_name": "builders"
}
],
"file"... | {
"body": "@Override\n\tpublic void horizontalRule() {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.horizontalRule();\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.horizontalRule()",
"constructor": false,
"full_signature": "@Override public void horizontalRule()",
"ide... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_221 | {
"fields": [
{
"declarator": "temporaryFolder = new TemporaryFolder()",
"modifier": "@Rule\n\tpublic",
"original_string": "@Rule\n\tpublic TemporaryFolder temporaryFolder = new TemporaryFolder();",
"type": "TemporaryFolder",
"var_name": "temporaryFolder"
},
{
"declarat... | {
"body": "@Test\n\tpublic void ensureFolderExistsMissingCreate() {\n\t\tFile folder = mock(File.class);\n\t\tdoReturn(true).when(folder).mkdirs();\n\t\tmarkupToEclipseHelp.ensureFolderExists(\"test\", folder, true);\n\t\tverify(folder).exists();\n\t\tverify(folder).mkdirs();\n\t\tverifyNoMoreInteractions(folder);\n\... | {
"fields": [
{
"declarator": "outputFolder",
"modifier": "protected",
"original_string": "protected File outputFolder;",
"type": "File",
"var_name": "outputFolder"
},
{
"declarator": "sourceFolder",
"modifier": "protected",
"original_string": "protected Fil... | {
"body": "protected void ensureFolderExists(String name, File folder, boolean createIfMissing) {\n\t\tif (folder.exists()) {\n\t\t\tif (!folder.isDirectory()) {\n\t\t\t\tthrow new BuildFailureException(format(\"{0} exists but is not a folder: {1}\", name, folder));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (!createIfMi... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
1553760_108 | {
"fields": [
{
"declarator": "block1 = mockBlock(BlockType.QUOTE, \"b1\")",
"modifier": "private final",
"original_string": "private final SourceBlock block1 = mockBlock(BlockType.QUOTE, \"b1\");",
"type": "SourceBlock",
"var_name": "block1"
},
{
"declarator": "block2 ... | {
"body": "@Test\n\tpublic void process() {\n\t\tEventDocumentBuilder builder = new EventDocumentBuilder();\n\t\tsourceBlocks.process(ProcessingContext.builder().build(), builder,\n\t\t\t\tLineSequence.create(\"one\\nb2\\nmore\\n\\nb1 and\\n\\n\\nb2\"));\n\t\tImmutableList<DocumentBuilderEvent> expectedEvents = Immut... | {
"fields": [
{
"declarator": "supportedBlocks",
"modifier": "private final",
"original_string": "private final List<SourceBlock> supportedBlocks;",
"type": "List<SourceBlock>",
"var_name": "supportedBlocks"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/sr... | {
"body": "@Override\n\tpublic void process(final ProcessingContext context, final DocumentBuilder builder, LineSequence lineSequence) {\n\t\tprocess(context, builder, lineSequence, Predicates.<BlockContext> alwaysTrue());\n\t}",
"class_method_signature": "SourceBlocks.process(final ProcessingContext context, final... | {
"created": null,
"fork": null,
"fork_count": 9,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1553760,
"size": 17676,
"stargazer_count": 8,
"stars": null,
"updates": null,
"url": "https://github.com/eclipse/mylyn.docs"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.