id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
1553760_82 | {
"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 eligibleForReferenceDefinitionLinkStartOfLine() {\n\t\tPotentialBracketEndDelimiter delimiter = new PotentialBracketEndDelimiter(line, 0);\n\t\tassertTrue(delimiter.eligibleForReferenceDefinition(new PotentialBracketDelimiter(line, 0, 1, \"[\"),\n\t\t\t\tCursors.createCursor(\"[\")));\... | {
"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_66 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/TextSegmentTest.java",
"identifier": "TextSegmentTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void getText() {\n\t\tassertEquals(\"\", new TextSegment(ImmutableList.<Line> of()).getText());\n\t\tassertEquals(\"one\\ntwo\", new TextSegment(createLines(\"one\\r\\ntwo\")).getText());\n\t\tassertEquals(\"one\\ntwo\\nthree\", new TextSegment(createLines(\"one\\r\\ntwo\\nthree\")).getText... | {
"fields": [
{
"declarator": "lines",
"modifier": "private final",
"original_string": "private final List<Line> lines;",
"type": "List<Line>",
"var_name": "lines"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final Stri... | {
"body": "public String getText() {\n\t\treturn text;\n\t}",
"class_method_signature": "TextSegment.getText()",
"constructor": false,
"full_signature": "public String getText()",
"identifier": "getText",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "String",
"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_103 | {
"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 getOffset() {\n\t\tCursor cursor = new Cursor(createTextSegment(\"one\\r\\ntwo\"));\n\t\tassertEquals(0, cursor.getOffset(0));\n\t\tassertEquals(0, cursor.getOffset());\n\t\tassertEquals(1, cursor.getOffset(1));\n\t\tassertEquals(5, cursor.getOffset(4));\n\t\tcursor.advance(4);\n\t\tas... | {
"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 getOffset() {\n\t\treturn getOffset(textOffset);\n\t}",
"class_method_signature": "Cursor.getOffset()",
"constructor": false,
"full_signature": "public int getOffset()",
"identifier": "getOffset",
"invocations": [
"getOffset"
],
"modifiers": "public",
"parameters": "()",
"r... | {
"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_89 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/LineBreakSpanTest.java",
"identifier": "LineBreakSpanTest",
"interfaces": "",
"superclass": "extends AbstractSourceSpanTest"
} | {
"body": "@Test\n\tpublic void createInline() {\n\t\tassertInline(SoftLineBreak.class, 1, 1, createCursor(\"a\\nb\", 1));\n\t\tassertInline(SoftLineBreak.class, 1, 2, createCursor(\"a \\nb\", 1));\n\t\tassertInline(SoftLineBreak.class, 1, 2, createCursor(\"a \\nb\\nc\", 1));\n\t\tassertInline(HardLineBreak.class, 1,... | {
"fields": [
{
"declarator": "pattern = Pattern.compile(\"( *(\\\\\\\\)?\\n).*\", Pattern.DOTALL)",
"modifier": "private final",
"original_string": "private final Pattern pattern = Pattern.compile(\"( *(\\\\\\\\)?\\n).*\", Pattern.DOTALL);",
"type": "Pattern",
"var_name": "pattern"
... | {
"body": "@Override\n\tpublic Optional<? extends Inline> createInline(Cursor cursor) {\n\t\tchar c = cursor.getChar();\n\t\tif (c == '\\n' || c == ' ') {\n\t\t\tMatcher matcher = cursor.matcher(pattern);\n\t\t\tif (matcher.matches()) {\n\t\t\t\tint length = matcher.group(1).length();\n\t\t\t\tif (length > 2 || match... | {
"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_338 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/EndHeadingEventTest.java",
"identifier": "EndHeadingEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new EndHeadingEvent(), new EndHeadingEvent());\n\t}",
"class_method_signature": "EndHeadingEventTest.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/EndHeadingEvent.java",
"identifier": "EndHeadingEvent",
"interfaces": "",
"methods": [
{
"class_method_signature": "EndHeadingEvent.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 EndHeadingEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"class_method_signature": "EndHeadingEvent.equals(Obje... | {
"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_292 | {
"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 processTypeName() {\n\t\tassertEquals(\"../index.html?Foo.html\", processor.process(\"@Foo\"));\n\t\tassertEquals(\"../index.html?foo/Bar.html\", processor.process(\"@foo.Bar\"));\n\t}",
"class_method_signature": "JavadocShortcutUriProcessorTest.processTypeName()",
"constructor": f... | {
"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_154 | {
"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 name() {\n\t\tassertNotNull(builder.name(\"Test\"));\n\t\tassertSame(builder, builder.name(\"Test\"));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.name()",
"constructor": false,
"full_signature": "@Test public void name()",
"identifier": "name",
"invocations": [... | {
"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_31 | {
"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 boldSpanWithAdjacentPunctuation() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes());\n\n\t\tbuilder.beginSpan(SpanType.BOLD, new Attributes());\n\t\tbuilder.characters(\"text2\");\n\t\tbuilder.endSpan();\n\t\tbuilder.characters(\"!\");\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_284 | {
"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 flush() {\n\t\tfinal AtomicBoolean flushed = new AtomicBoolean();\n\t\tDocumentBuilder delegate = new NoOpDocumentBuilder() {\n\t\t\t@Override\n\t\t\tpublic void flush() {\n\t\t\t\tflushed.set(true);\n\t\t\t}\n\t\t};\n\t\tmultiplexer = new MultiplexingDocumentBuilder(delegate);\n\t\tmu... | {
"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 flush() {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.flush();\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.flush()",
"constructor": false,
"full_signature": "@Override public void flush()",
"identifier": "flush",
"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_27 | {
"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 boldSpanNoWhitespace_spanAtLineEnd() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes());\n\n\t\tbuilder.characters(\"text3\");\n\t\tbuilder.beginSpan(SpanType.BOLD, new Attributes());\n\t\tbuilder.characters(\"text2\");\n\t\tbuilder.endSpan()... | {
"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_142 | {
"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 newDocumentBuilder() {\n\t\tWriter out = new StringWriter();\n\t\tDocumentBuilder builder = new HtmlLanguage().createDocumentBuilder(out);\n\t\tassertNotNull(builder);\n\t\tassertTrue(builder instanceof HtmlDocumentBuilder);\n\t}",
"class_method_signature": "HtmlLanguageTest.newDocum... | {
"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_115 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/ProcessingContextTest.java",
"identifier": "ProcessingContextTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void generateHeadingId() {\n\t\tProcessingContext processingContext = ProcessingContext.builder().build();\n\t\tassertEquals(\"a\", processingContext.generateHeadingId(1, \"a\"));\n\t\tassertEquals(\"a2\", processingContext.generateHeadingId(1, \"a\"));\n\t\tassertEquals(\"a3\", processingC... | {
"fields": [
{
"declarator": "inlineParser",
"modifier": "private final",
"original_string": "private final InlineParser inlineParser;",
"type": "InlineParser",
"var_name": "inlineParser"
},
{
"declarator": "links",
"modifier": "private final",
"original_st... | {
"body": "public String generateHeadingId(int headingLevel, String headingText) {\n\t\treturn idGenerator.newId(\"h\" + headingLevel, headingText);\n\t}",
"class_method_signature": "ProcessingContext.generateHeadingId(int headingLevel, String headingText)",
"constructor": false,
"full_signature": "public Strin... | {
"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_70 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/TextSegmentTest.java",
"identifier": "TextSegmentTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void toStringTest() {\n\t\tassertEquals(\"TextSegment{text=one\\\\ntwo\\\\nthree four}\",\n\t\t\t\tnew TextSegment(createLines(\"one\\ntwo\\r\\nthree four\")).toString());\n\t\tassertEquals(\"TextSegment{text=01234567890123456789...}\",\n\t\t\t\tnew TextSegment(createLines(Strings.repeat(\"... | {
"fields": [
{
"declarator": "lines",
"modifier": "private final",
"original_string": "private final List<Line> lines;",
"type": "List<Line>",
"var_name": "lines"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final Stri... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn toStringHelper(TextSegment.class).add(\"text\", ToStringHelper.toStringValue(text)).toString();\n\t}",
"class_method_signature": "TextSegment.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"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_247 | {
"fields": [
{
"declarator": "locator",
"modifier": "private",
"original_string": "private ServiceLocator locator;",
"type": "ServiceLocator",
"var_name": "locator"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/util/ServiceLo... | {
"body": "@Test\n\tpublic void readServicesFileNone() {\n\t\tList<String> names = locator.readServiceClassNames(createInput(\"\"));\n\t\tassertNotNull(names);\n\t\tassertTrue(names.isEmpty());\n\t}",
"class_method_signature": "ServiceLocatorTest.readServicesFileNone()",
"constructor": false,
"full_signature": ... | {
"fields": [
{
"declarator": "classLoader",
"modifier": "protected final",
"original_string": "protected final ClassLoader classLoader;",
"type": "ClassLoader",
"var_name": "classLoader"
},
{
"declarator": "implementationClassLock = new Object()",
"modifier": "pr... | {
"body": "protected List<String> readServiceClassNames(URL url) {\n\t\ttry (InputStream stream = url.openStream()) {\n\t\t\treturn readServiceClassNames(stream);\n\t\t} catch (IOException e) {\n\t\t\tlogReadServiceClassNamesFailure(e);\n\t\t}\n\t\treturn Collections.emptyList();\n\t}",
"class_method_signature": "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_302 | {
"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 setElementNameOfSpanTypeRequiresSpanType() {\n\t\tNullPointerException e = assertThrows(NullPointerException.class,\n\t\t\t\t() -> builder.setElementNameOfSpanType(null, \"some-name\"));\n\t\tassertTrue(e.getMessage().contains(\"Must provide spanType\"));\n\t}",
"class_method_signatu... | {
"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 setElementNameOfSpanType(SpanType spanType, String elementName) {\n\t\tObjects.requireNonNull(spanType, \"Must provide spanType\"); //$NON-NLS-1$\n\t\tObjects.requireNonNull(elementName, \"Must provide elementName\"); //$NON-NLS-1$\n\n\t\tImmutableMap.Builder<SpanType, String> builder = Immutab... | {
"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_181 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/internal/HtmlSubsetLanguageTest.java",
"identifier": "HtmlSubsetLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void isXhtmlStrict() {\n\t\tassertXhtmlStrict(true);\n\t\tassertXhtmlStrict(false);\n\t}",
"class_method_signature": "HtmlSubsetLanguageTest.isXhtmlStrict()",
"constructor": false,
"full_signature": "@Test public void isXhtmlStrict()",
"identifier": "isXhtmlStrict",
"invocations":... | {
"fields": [
{
"declarator": "supportedBlockTypes",
"modifier": "private final",
"original_string": "private final Set<BlockType> supportedBlockTypes;",
"type": "Set<BlockType>",
"var_name": "supportedBlockTypes"
},
{
"declarator": "supportedSpanTypes",
"modifier... | {
"body": "public boolean isXhtmlStrict() {\n\t\treturn xhtmlStrict;\n\t}",
"class_method_signature": "HtmlSubsetLanguage.isXhtmlStrict()",
"constructor": false,
"full_signature": "public boolean isXhtmlStrict()",
"identifier": "isXhtmlStrict",
"invocations": [],
"modifiers": "public",
"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_210 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.maven/src/test/java/org/eclipse/mylyn/wikitext/maven/internal/FileToMarkupLanguageTest.java",
"identifier": "FileToMarkupLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NullPointerException.class)\n\tpublic void getNull() {\n\t\tcreate().get(null);\n\t}",
"class_method_signature": "FileToMarkupLanguageTest.getNull()",
"constructor": false,
"full_signature": "@Test(expected = NullPointerException.class) public void getNull()",
"identifier": "getNul... | {
"fields": [
{
"declarator": "extensionToMarkupLanguage",
"modifier": "private final",
"original_string": "private final Map<String, MarkupLanguage> extensionToMarkupLanguage;",
"type": "Map<String, MarkupLanguage>",
"var_name": "extensionToMarkupLanguage"
}
],
"file": "wiki... | {
"body": "public MarkupLanguage get(File file) {\n\t\trequireNonNull(file);\n\t\tString extension = computeFileExtension(file);\n\t\treturn extensionToMarkupLanguage.get(extension.toLowerCase());\n\t}",
"class_method_signature": "FileToMarkupLanguage.get(File file)",
"constructor": false,
"full_signature": "pu... | {
"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_355 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/CharactersEventTest.java",
"identifier": "CharactersEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"characters(\\\"test it\\\")\", new CharactersEvent(\"test it\").toString());\n\t}",
"class_method_signature": "CharactersEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifier": "te... | {
"fields": [
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final String text;",
"type": "String",
"var_name": "text"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/eclipse/mylyn/wikitext/parser/builder/event/Charac... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"characters(\\\"%s\\\")\", text); //$NON-NLS-1$\n\t}",
"class_method_signature": "CharactersEvent.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_139 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineTest.java",
"identifier": "LineTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void toStringTest() {\n\t\tassertEquals(\"Line{lineNumber=1, offset=15, text=1}\", new Line(1, 15, \"1\").toString());\n\t\tassertEquals(\"Line{lineNumber=2, offset=0, text=\\\\t\\\\r\\\\nabc}\", new Line(2, 0, \"\\t\\r\\nabc\").toString());\n\t\tassertEquals(\"Line{lineNumber=0, offset=0, ... | {
"fields": [
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final String text;",
"type": "String",
"var_name": "text"
},
{
"declarator": "offset",
"modifier": "private final",
"original_string": "private final int offset;",... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn toStringHelper(Line.class).add(\"lineNumber\", lineNumber)\n\t\t\t\t.add(\"offset\", offset)\n\t\t\t\t.add(\"text\", ToStringHelper.toStringValue(text))\n\t\t\t\t.toString();\n\t}",
"class_method_signature": "Line.toString()",
"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_206 | {
"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 spanWithTextDecorationUnderlineToUnderlined() {\n\t\tSpanStrategies strategies = new SpanStrategies(Sets.newHashSet(SpanType.UNDERLINED),\n\t\t\t\tCollections.<SpanHtmlElementStrategy> emptyList());\n\t\tSpanStrategy strategy = strategies.getStrategy(SpanType.SPAN,\n\t\t\t\tnew Attribu... | {
"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_343 | {
"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 testToString() {\n\t\tassertEquals(\"beginSpan(CODE)\", new BeginSpanEvent(SpanType.CODE, new Attributes()).toString());\n\t}",
"class_method_signature": "BeginSpanEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifier... | {
"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 String toString() {\n\t\treturn String.format(\"beginSpan(%s)\", type); //$NON-NLS-1$\n\t}",
"class_method_signature": "BeginSpanEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"for... | {
"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_251 | {
"fields": [
{
"declarator": "locator",
"modifier": "private",
"original_string": "private ServiceLocator locator;",
"type": "ServiceLocator",
"var_name": "locator"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/util/ServiceLo... | {
"body": "@Test\n\tpublic void getAllMarkupLanguagesFiltersDuplicates() {\n\t\tfinal MarkupLanguage language1 = new TestMarkupLanguage(\"Language 1\");\n\t\tfinal MarkupLanguage language1b = new MarkupLanguage() {\n\t\t\t{\n\t\t\t\tsetName(\"Language 1\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void processConten... | {
"fields": [
{
"declarator": "classLoader",
"modifier": "protected final",
"original_string": "protected final ClassLoader classLoader;",
"type": "ClassLoader",
"var_name": "classLoader"
},
{
"declarator": "implementationClassLock = new Object()",
"modifier": "pr... | {
"body": "public Set<MarkupLanguage> getAllMarkupLanguages() {\n\t\tfinal Set<MarkupLanguage> markupLanguages = new HashSet<MarkupLanguage>();\n\t\tloadMarkupLanguages(language -> {\n\t\t\tmarkupLanguages.add(language);\n\t\t\treturn true;\n\t\t});\n\t\treturn filterDuplicates(markupLanguages);\n\t}",
"class_metho... | {
"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_9 | {
"fields": [
{
"declarator": "REGEX_NEWLINE = \"(?:\\\\s*?^)\"",
"modifier": "private static final",
"original_string": "private static final String REGEX_NEWLINE = \"(?:\\\\s*?^)\";",
"type": "String",
"var_name": "REGEX_NEWLINE"
}
],
"file": "wikitext/core/org.eclipse.myly... | {
"body": "@Test\n\tpublic void testFootnoteRefNoFootnote() throws IOException {\n\t\tmarkupLanguage.setPreprocessFootnotes(true);\n\t\tString html = parser.parseToHtml(\"See foo[1].\\n\\nNo such footnote!\");\n\n\t\tassertTrue(html.contains(\"<body><p>See foo[1].</p><p>No such footnote!</p></body>\"));\n\t}",
"cla... | {
"fields": [
{
"declarator": "BUNDLE_NAME = \"org.eclipse.mylyn.wikitext.textile.language\"",
"modifier": "private static final",
"original_string": "private static final String BUNDLE_NAME = \"org.eclipse.mylyn.wikitext.textile.language\";",
"type": "String",
"var_name": "BUNDLE_NA... | {
"body": "public void setPreprocessFootnotes(boolean preprocessFootnotes) {\n\t\tthis.preprocessFootnotes = preprocessFootnotes;\n\t}",
"class_method_signature": "TextileLanguage.setPreprocessFootnotes(boolean preprocessFootnotes)",
"constructor": false,
"full_signature": "public void setPreprocessFootnotes(bo... | {
"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_314 | {
"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 characters() {\n\t\tbuilder.characters(\"test 123\");\n\t\tassertEvents(new CharactersEvent(\"test 123\"));\n\t}",
"class_method_signature": "EventDocumentBuilderTest.characters()",
"constructor": false,
"full_signature": "@Test public void characters()",
"identifier": "charact... | {
"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 characters(String text) {\n\t\tevents.add(new CharactersEvent(text));\n\t}",
"class_method_signature": "EventDocumentBuilder.characters(String text)",
"constructor": false,
"full_signature": "@Override public void characters(String text)",
"identifier": "characters",
"inv... | {
"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_197 | {
"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 testTableUnsupported() {\n\t\tbuilder.setSupportedBlockTypes(Sets.newHashSet(BlockType.PARAGRAPH));\n\t\tbuildTable();\n\t\tassertContent(\n\t\t\t\t\"<p>test 0/0</p><p>test 1/0</p><p>test 2/0</p><br/><br/><p>test 0/1</p><p>test 1/1</p><p>test 2/1</p>\");\n\t}",
"class_method_signatur... | {
"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_178 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/internal/HtmlSubsetLanguageTest.java",
"identifier": "HtmlSubsetLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void supportedHeadingLevel() {\n\t\tassertSupportedHeadingLevel(0);\n\t\tassertSupportedHeadingLevel(1);\n\t\tassertSupportedHeadingLevel(5);\n\t\tassertSupportedHeadingLevel(6);\n\t\tassertEquals(0, newHtmlSubsetLanguageWithHeadingLevel(0).getSupportedHeadingLevel());\n\t}",
"class_metho... | {
"fields": [
{
"declarator": "supportedBlockTypes",
"modifier": "private final",
"original_string": "private final Set<BlockType> supportedBlockTypes;",
"type": "Set<BlockType>",
"var_name": "supportedBlockTypes"
},
{
"declarator": "supportedSpanTypes",
"modifier... | {
"body": "public int getSupportedHeadingLevel() {\n\t\treturn headingLevel;\n\t}",
"class_method_signature": "HtmlSubsetLanguage.getSupportedHeadingLevel()",
"constructor": false,
"full_signature": "public int getSupportedHeadingLevel()",
"identifier": "getSupportedHeadingLevel",
"invocations": [],
"modi... | {
"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_85 | {
"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 precededByBackslashEscape() {\n\t\tPotentialBracketEndDelimiter delimiter = new PotentialBracketEndDelimiter(line, 0);\n\t\tassertFalse(delimiter.precededByBackslashEscape(Cursors.createCursor(\"[\"), 0));\n\t\tassertFalse(delimiter.precededByBackslashEscape(Cursors.createCursor(\"\\\\... | {
"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 precededByBackslashEscape(Cursor cursor, int originalOffset) {\n\t\tint count = 0;\n\t\tfor (int index = originalOffset - 1; index >= 0; --index) {\n\t\t\tchar c = cursor.getChar(index);\n\t\t\tif (c == '\\\\') {\n\t\t\t\t++count;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn count % ... | {
"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_226 | {
"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 createBuilder() {\n\t\tmarkupToEclipseHelp.copyrightNotice = UUID.randomUUID().toString();\n\t\tmarkupToEclipseHelp.title = UUID.randomUUID().toString();\n\t\tmarkupToEclipseHelp.htmlFilenameFormat = \"$1.test.html\";\n\t\tHtmlDocumentBuilder builder = markupToEclipseHelp.createRootBui... | {
"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 HtmlDocumentBuilder createRootBuilder(Writer writer, String name, String relativePath) {\n\t\tHtmlDocumentBuilder builder = new HtmlDocumentBuilder(writer, formatOutput);\n\t\tbuilder.setTitle(title == null ? name : title);\n\t\tbuilder.setEmitDtd(emitDoctype);\n\t\tif (emitDoctype && htmlDoctype... | {
"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_158 | {
"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 addSpanTypeNull() {\n\t\tNullPointerException npe = assertThrows(NullPointerException.class, () -> builder.add((SpanType) null));\n\t\tassertTrue(npe.getMessage().contains(\"Must provide a spanType\"));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.addSpanTypeNull()",
"... | {
"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 add(BlockType blockType) {\n\t\tblockTypes.add(requireNonNull(blockType, \"Must provide a blockType\")); //$NON-NLS-1$\n\t\treturn this;\n\t}",
"class_method_signature": "HtmlLanguageBuilder.add(BlockType blockType)",
"constructor": false,
"full_signature": "public HtmlLang... | {
"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_334 | {
"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 equals() {\n\t\tassertEquality(\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\"),\n\t\t\t\tnew ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), \"http://example.com\",\n\t\t\t\t\t\t\... | {
"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 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 ImageLinkEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\tImageLinkEvent other = (ImageLinkEvent) obj;\n\t\treturn Objects.equals(href,... | {
"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_271 | {
"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 endSpan() {\n\t\tmultiplexer.endSpan();\n\t\tassertEvents(new EndSpanEvent());\n\t}",
"class_method_signature": "MultiplexingDocumentBuilderTest.endSpan()",
"constructor": false,
"full_signature": "@Test public void endSpan()",
"identifier": "endSpan",
"invocations": [
"e... | {
"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 endSpan() {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.endSpan();\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.endSpan()",
"constructor": false,
"full_signature": "@Override public void endSpan()",
"identifier": "endSpan",
"invo... | {
"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_322 | {
"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 horizontalRule() {\n\t\tbuilder.horizontalRule();\n\t\tassertEvents(new HorizontalRuleEvent());\n\t}",
"class_method_signature": "EventDocumentBuilderTest.horizontalRule()",
"constructor": false,
"full_signature": "@Test public void horizontalRule()",
"identifier": "horizontalR... | {
"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 horizontalRule() {\n\t\tevents.add(new HorizontalRuleEvent());\n\t}",
"class_method_signature": "EventDocumentBuilder.horizontalRule()",
"constructor": false,
"full_signature": "@Override public void horizontalRule()",
"identifier": "horizontalRule",
"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_288 | {
"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 processAnyUri() {\n\t\tassertEquals(\"\", processor.process(\"\"));\n\t\tassertEquals(\"foo\", processor.process(\"foo\"));\n\t\tassertEquals(\"some/path/foo.html\", processor.process(\"some/path/foo.html\"));\n\t}",
"class_method_signature": "JavadocShortcutUriProcessorTest.processA... | {
"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_267 | {
"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 endDocument() {\n\t\tmultiplexer.endDocument();\n\t\tassertEvents(new EndDocumentEvent());\n\t}",
"class_method_signature": "MultiplexingDocumentBuilderTest.endDocument()",
"constructor": false,
"full_signature": "@Test public void endDocument()",
"identifier": "endDocument",
... | {
"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 endDocument() {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.endDocument();\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.endDocument()",
"constructor": false,
"full_signature": "@Override public void endDocument()",
"identifier": "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_119 | {
"fields": [
{
"declarator": "block = new HtmlBlock()",
"modifier": "private final",
"original_string": "private final HtmlBlock block = new HtmlBlock();",
"type": "HtmlBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/jav... | {
"body": "@Test\n\tpublic void canStart() {\n\t\tassertFalse(block.canStart(LineSequence.create(\"\")));\n\t\tassertTrue(block.canStart(LineSequence.create(\"<div>\")));\n\t\tassertTrue(block.canStart(LineSequence.create(\"<table>\")));\n\t\tassertTrue(block.canStart(LineSequence.create(\"<p>\")));\n\t\tassertFalse(... | {
"fields": [
{
"declarator": "BLOCK_TAG_NAMES = \"address|article|aside|base|basefont|blockquote|body|button|canvas|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|embed|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|iframe|legend|li|link|main... | {
"body": "@Override\n\tpublic boolean canStart(LineSequence lineSequence) {\n\t\tLine line = lineSequence.getCurrentLine();\n\t\tif (line != null) {\n\t\t\treturn startPattern.matcher(line.getText()).matches();\n\t\t}\n\t\treturn false;\n\t}",
"class_method_signature": "HtmlBlock.canStart(LineSequence lineSequence... | {
"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_93 | {
"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 toStringContent() {\n\t\tInlineParser parser = new InlineParser(new CodeSpan(), new AllCharactersSpan());\n\t\tString stringContent = parser.toStringContent(ProcessingContext.builder().build(),\n\t\t\t\tnew TextSegment(Collections.singletonList(new Line(1, 0, \"one `two` three\"))));\n... | {
"fields": [
{
"declarator": "spans",
"modifier": "private final",
"original_string": "private final List<SourceSpan> spans;",
"type": "List<SourceSpan>",
"var_name": "spans"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wi... | {
"body": "public String toStringContent(ProcessingContext context, TextSegment textSegment) {\n\t\tList<Inline> inlines = parse(context, textSegment);\n\t\treturn toStringContent(inlines);\n\t}",
"class_method_signature": "InlineParser.toStringContent(ProcessingContext context, TextSegment textSegment)",
"constr... | {
"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_230 | {
"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 calculateHelpPrefixWithHelpPrefix() {\n\t\tmarkupToEclipseHelp.helpPrefix = \"help\";\n\t\tassertEquals(\"help/test/one\", markupToEclipseHelp.calculateHelpPrefix(\"test/one\"));\n\t}",
"class_method_signature": "MarkupToEclipseHelpMojoTest.calculateHelpPrefixWithHelpPrefix()",
"co... | {
"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 String calculateHelpPrefix(String relativePath) {\n\t\tString prefix = helpPrefix == null ? \"\" : helpPrefix;\n\t\tif (relativePath.length() > 0) {\n\t\t\tif (prefix.length() > 0) {\n\t\t\t\tprefix += \"/\";\n\t\t\t}\n\t\t\tprefix += relativePath;\n\t\t}\n\t\treturn prefix.length() == 0 ? null :... | {
"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_162 | {
"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 addSpanSubstitution() {\n\t\tassertNotNull(builder.addSubstitution(SpanType.BOLD, \"bold\"));\n\t\tassertSame(builder, builder.addSubstitution(SpanType.BOLD, \"bold\"));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.addSpanSubstitution()",
"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 addSubstitution(SpanType spanType, String alternativeTagName) {\n\t\trequireNonNull(spanType, \"Must provide a spanType\"); //$NON-NLS-1$\n\t\trequireNonNull(alternativeTagName, \"Must provide an alternativeTagName\"); //$NON-NLS-1$\n\t\tspanTypeToElementNameSubstitution.put(span... | {
"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_135 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineTest.java",
"identifier": "LineTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void isEmpty() {\n\t\tassertEmpty(\"\");\n\t\tassertEmpty(\"\\t\");\n\t\tassertEmpty(\" \");\n\t\tassertNotEmpty(\"a\");\n\t\tassertNotEmpty(\" a\");\n\t\tassertNotEmpty(\"a \");\n\t}",
"class_method_signature": "LineTest.isEmpty()",
"constructor": false,
"full_signature": "@Test pu... | {
"fields": [
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final String text;",
"type": "String",
"var_name": "text"
},
{
"declarator": "offset",
"modifier": "private final",
"original_string": "private final int offset;",... | {
"body": "public boolean isEmpty() {\n\t\treturn !CharMatcher.whitespace().negate().matchesAnyOf(text);\n\t}",
"class_method_signature": "Line.isEmpty()",
"constructor": false,
"full_signature": "public boolean isEmpty()",
"identifier": "isEmpty",
"invocations": [
"matchesAnyOf",
"negate",
"whi... | {
"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_50 | {
"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 listItemWithMultipleMixedParagraphs() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.beginBlock(BlockType.BULLETED_LIST, new Attributes());\n\t\tbuilder.beginBlock(BlockType.LIST_ITEM, new Attributes());\n\t\tbuilder.characters(\"first\");\n\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH,... | {
"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_359 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/DocumentBuilderEventsTest.java",
"identifier": "DocumentBuilderEventsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void getEventsImmutable() {\n\t\tDocumentBuilderEvents events = new DocumentBuilderEvents(Lists.<DocumentBuilderEvent> newArrayList());\n\t\tassertThrows(UnsupportedOperationException.class, () -> events.getEvents().clear());\n\t}",
"class_method_signature": "DocumentBuilderEventsTest.get... | {
"fields": [
{
"declarator": "events",
"modifier": "private final",
"original_string": "private final List<DocumentBuilderEvent> events;",
"type": "List<DocumentBuilderEvent>",
"var_name": "events"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/ecli... | {
"body": "public List<DocumentBuilderEvent> getEvents() {\n\t\treturn events;\n\t}",
"class_method_signature": "DocumentBuilderEvents.getEvents()",
"constructor": false,
"full_signature": "public List<DocumentBuilderEvent> getEvents()",
"identifier": "getEvents",
"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_46 | {
"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 italics() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.characters(\"prefix \");\n\n\t\tbuilder.beginSpan(SpanType.ITALIC, new Attributes());\n\t\tbuilder.characters(\"italic phrase\");\n\t\tbuilder.endBlock();\n\n\t\tbuilder.characters(\" suffix\");\n\n\t\tbuilder.endBlock();\n\t\tbu... | {
"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_123 | {
"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 canStart() {\n\t\tassertFalse(block.canStart(LineSequence.create(\"\")));\n\t\tassertFalse(block.canStart(LineSequence.create(\"a\")));\n\t\tassertFalse(block.canStart(LineSequence.create(\" ***\")));\n\t\tfor (char c : \"*_-\".toCharArray()) {\n\t\t\tString hrIndicator = Strings.re... | {
"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 boolean canStart(LineSequence lineSequence) {\n\t\tLine line = lineSequence.getCurrentLine();\n\t\treturn line != null && PATTERN.matcher(line.getText()).matches();\n\t}",
"class_method_signature": "HorizontalRuleBlock.canStart(LineSequence lineSequence)",
"constructor": false,
"f... | {
"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_174 | {
"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 stateful() {\n\t\tassertNotSame(strategy.spanStrategy(), strategy.spanStrategy());\n\t}",
"class_method_signature": "FontElementStrategyTest.stateful()",
"constructor": false,
"full_signature": "@Test public void stateful()",
"identifier": "stateful",
"invocations": [
"as... | {
"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_11 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.asciidoc/src/test/java/org/eclipse/mylyn/wikitext/asciidoc/internal/AsciiDocIdGenerationStrategyTest.java",
"identifier": "AsciiDocIdGenerationStrategyTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void computeHeadingId() {\n\t\tassertEquals(\"\", AsciiDocIdGenerationStrategy.computeHeadingId(\"\", \"\", \"_\"));\n\t\tassertEquals(\"lorem ipsum\", AsciiDocIdGenerationStrategy.computeHeadingId(\"lorem ipsum\", null, null));\n\t\tassertEquals(\"some_h2\", AsciiDocIdGenerationStrategy.co... | {
"fields": [
{
"declarator": "existingIds = new HashSet<String>()",
"modifier": "private final",
"original_string": "private final Set<String> existingIds = new HashSet<String>();",
"type": "Set<String>",
"var_name": "existingIds"
},
{
"declarator": "idPrefix = AsciiDo... | {
"body": "static String computeHeadingId(String text, String idprefix, String idseparator) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (idprefix != null) {\n\t\t\tsb.append(idprefix);\n\t\t}\n\t\tString anchor = parseToHtml(text);\n\t\tanchor = anchor.trim();\n\t\tif (anchor.startsWith(\"<p>\")) { //$NON-... | {
"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_318 | {
"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 image() {\n\t\tbuilder.image(new ImageAttributes(), \"http://example.com/foo.png\");\n\t\tassertEvents(new ImageEvent(new ImageAttributes(), \"http://example.com/foo.png\"));\n\t}",
"class_method_signature": "EventDocumentBuilderTest.image()",
"constructor": false,
"full_signatur... | {
"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 image(Attributes attributes, String url) {\n\t\tevents.add(new ImageEvent(attributes, url));\n\t}",
"class_method_signature": "EventDocumentBuilder.image(Attributes attributes, String url)",
"constructor": false,
"full_signature": "@Override public void image(Attributes attri... | {
"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_5 | {
"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 alphaNumeric() {\n\t\tassertEquals(\"alpha01234numeric\", strategy.generateId(\"alpha01234numeric\"));\n\t}",
"class_method_signature": "GfmIdGenerationStrategyTest.alphaNumeric()",
"constructor": false,
"full_signature": "@Test public void alphaNumeric()",
"identifier": "alpha... | {
"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_319 | {
"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 imageLink() {\n\t\tbuilder.imageLink(new LinkAttributes(), new ImageAttributes(), \"https://example.com\",\n\t\t\t\t\"http://example.com/foo.png\");\n\t\tassertEvents(new ImageLinkEvent(new LinkAttributes(), new ImageAttributes(), \"https://example.com\",\n\t\t\t\t\"http://example.com/... | {
"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 imageLink(Attributes linkAttributes, Attributes imageAttributes, String href, String imageUrl) {\n\t\tevents.add(new ImageLinkEvent(linkAttributes, imageAttributes, href, imageUrl));\n\t}",
"class_method_signature": "EventDocumentBuilder.imageLink(Attributes linkAttributes, Attri... | {
"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_4 | {
"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 withHyphen() {\n\t\tassertEquals(\"with-hyphen\", strategy.generateId(\"with-hyphen\"));\n\t}",
"class_method_signature": "GfmIdGenerationStrategyTest.withHyphen()",
"constructor": false,
"full_signature": "@Test public void withHyphen()",
"identifier": "withHyphen",
"invocat... | {
"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_175 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/internal/HtmlSubsetLanguageTest.java",
"identifier": "HtmlSubsetLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void supportedBlockTypes() {\n\t\tassertEquals(Sets.newHashSet(BlockType.PARAGRAPH, BlockType.CODE),\n\t\t\t\tnewHtmlSubsetLanguage(BlockType.PARAGRAPH, BlockType.CODE).getSupportedBlockTypes());\n\t}",
"class_method_signature": "HtmlSubsetLanguageTest.supportedBlockTypes()",
"construct... | {
"fields": [
{
"declarator": "supportedBlockTypes",
"modifier": "private final",
"original_string": "private final Set<BlockType> supportedBlockTypes;",
"type": "Set<BlockType>",
"var_name": "supportedBlockTypes"
},
{
"declarator": "supportedSpanTypes",
"modifier... | {
"body": "public Set<BlockType> getSupportedBlockTypes() {\n\t\treturn supportedBlockTypes;\n\t}",
"class_method_signature": "HtmlSubsetLanguage.getSupportedBlockTypes()",
"constructor": false,
"full_signature": "public Set<BlockType> getSupportedBlockTypes()",
"identifier": "getSupportedBlockTypes",
"invo... | {
"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_10 | {
"fields": [
{
"declarator": "REGEX_NEWLINE = \"(?:\\\\s*?^)\"",
"modifier": "private static final",
"original_string": "private static final String REGEX_NEWLINE = \"(?:\\\\s*?^)\";",
"type": "String",
"var_name": "REGEX_NEWLINE"
}
],
"file": "wikitext/core/org.eclipse.myly... | {
"body": "@Test\n\tpublic void testDoubleQuotationsGerman() throws IOException {\n\t\tMarkupLanguageConfiguration configuration = new MarkupLanguageConfiguration();\n\t\tconfiguration.setLocale(Locale.GERMAN);\n\t\tparser.getMarkupLanguage().configure(configuration);\n\n\t\tString html = parser.parseToHtml(\"some \\... | {
"fields": [
{
"declarator": "BUNDLE_NAME = \"org.eclipse.mylyn.wikitext.textile.language\"",
"modifier": "private static final",
"original_string": "private static final String BUNDLE_NAME = \"org.eclipse.mylyn.wikitext.textile.language\";",
"type": "String",
"var_name": "BUNDLE_NA... | {
"body": "@Override\n\tpublic void configure(MarkupLanguageConfiguration configuration) throws UnsupportedOperationException {\n\t\tif (configuration.isOptimizeForRepositoryUsage()) {\n\t\t\tsetPreprocessFootnotes(true);\n\t\t}\n\t\tsuper.configure(configuration);\n\t}",
"class_method_signature": "TextileLanguage.... | {
"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_47 | {
"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 mark() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.characters(\"prefix \");\n\n\t\tbuilder.beginSpan(SpanType.MARK, new Attributes());\n\t\tbuilder.characters(\"italic phrase\");\n\t\tbuilder.endBlock();\n\n\t\tbuilder.characters(\" suffix\");\n\n\t\tbuilder.endBlock();\n\t\tbuilder... | {
"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_122 | {
"fields": [
{
"declarator": "block = new FencedCodeBlock()",
"modifier": "private final",
"original_string": "private final FencedCodeBlock block = new FencedCodeBlock();",
"type": "FencedCodeBlock",
"var_name": "block"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext... | {
"body": "@Test\n\tpublic void canStart() {\n\t\tassertCanStart(\"```\");\n\t\tassertCanStart(\" ```\");\n\t\tassertCanStart(\" ```\");\n\t\tassertCanStart(\" ```\");\n\t\tassertCanStart(\"````````````````\");\n\t\tassertCanStart(\" ```\");\n\t\tassertCanStartFalse(\" ```\");\n\t\tassertCanStart(\"~~~\");\... | {
"fields": [
{
"declarator": "openingFencePattern = Pattern.compile(\"(\\\\s{0,4})(`{3,}|~{3,})\\\\s*(?:([^\\\\s~`]+)[^~`]*)?\")",
"modifier": "private final",
"original_string": "private final Pattern openingFencePattern = Pattern.compile(\"(\\\\s{0,4})(`{3,}|~{3,})\\\\s*(?:([^\\\\s~`]+)[^~`]*... | {
"body": "@Override\n\tpublic boolean canStart(LineSequence lineSequence) {\n\t\tLine line = lineSequence.getCurrentLine();\n\t\treturn line != null && openingFencePattern.matcher(line.getText()).matches();\n\t}",
"class_method_signature": "FencedCodeBlock.canStart(LineSequence lineSequence)",
"constructor": fal... | {
"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_358 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/DocumentBuilderEventsTest.java",
"identifier": "DocumentBuilderEventsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void createsWithProvidedEvents() {\n\t\tBeginDocumentEvent event = new BeginDocumentEvent();\n\t\tList<DocumentBuilderEvent> allEvents = Lists.<DocumentBuilderEvent> newArrayList(event);\n\t\tDocumentBuilderEvents events = new DocumentBuilderEvents(allEvents);\n\t\tassertEquals(allEvents, e... | {
"fields": [
{
"declarator": "events",
"modifier": "private final",
"original_string": "private final List<DocumentBuilderEvent> events;",
"type": "List<DocumentBuilderEvent>",
"var_name": "events"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/main/java/org/ecli... | {
"body": "public List<DocumentBuilderEvent> getEvents() {\n\t\treturn events;\n\t}",
"class_method_signature": "DocumentBuilderEvents.getEvents()",
"constructor": false,
"full_signature": "public List<DocumentBuilderEvent> getEvents()",
"identifier": "getEvents",
"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_134 | {
"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 closePattern() {\n\t\tassertClosePattern(true, \"-->\");\n\t\tassertClosePattern(true, \" -->\");\n\t\tassertClosePattern(true, \" - -->\");\n\t\tassertClosePattern(false, \" --->\");\n\t}",
"class_method_signature": "HtmlCommentBlockTest.closePattern()",
"constructor": 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\tprotected Pattern closePattern() {\n\t\treturn closePattern;\n\t}",
"class_method_signature": "HtmlCommentBlock.closePattern()",
"constructor": false,
"full_signature": "@Override protected Pattern closePattern()",
"identifier": "closePattern",
"invocations": [],
"modifiers": "@Ove... | {
"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_51 | {
"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 listWithNestedSublist() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.beginBlock(BlockType.BULLETED_LIST, new Attributes());\n\n\t\tbuilder.beginBlock(BlockType.LIST_ITEM, new Attributes());\n\t\tbuilder.characters(\"first\");\n\n\t\tbuilder.beginBlock(BlockType.BULLETED_LIST, new Att... | {
"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_163 | {
"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 addHeadings() {\n\t\tassertNotNull(builder.addHeadings(1));\n\t\tassertSame(builder, builder.addHeadings(1));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.addHeadings()",
"constructor": false,
"full_signature": "@Test public void addHeadings()",
"identifier": "addH... | {
"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_231 | {
"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 calculateHelpPrefixWindowsSeparator() {\n\t\tassertEquals(\"test/one\", markupToEclipseHelp.calculateHelpPrefix(\"test\\\\one\"));\n\t}",
"class_method_signature": "MarkupToEclipseHelpMojoTest.calculateHelpPrefixWindowsSeparator()",
"constructor": false,
"full_signature": "@Test ... | {
"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 String calculateHelpPrefix(String relativePath) {\n\t\tString prefix = helpPrefix == null ? \"\" : helpPrefix;\n\t\tif (relativePath.length() > 0) {\n\t\t\tif (prefix.length() > 0) {\n\t\t\t\tprefix += \"/\";\n\t\t\t}\n\t\t\tprefix += relativePath;\n\t\t}\n\t\treturn prefix.length() == 0 ? null :... | {
"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_118 | {
"fields": [
{
"declarator": "transform = new UpperCaseTransform()",
"modifier": "private final",
"original_string": "private final Function<Line, Line> transform = new UpperCaseTransform();",
"type": "Function<Line, Line>",
"var_name": "transform"
},
{
"declarator": "... | {
"body": "@Test\n\tpublic void lookAhead() {\n\t\tlineSequence.advance();\n\t\tLineSequence lookAhead = lineSequence.lookAhead();\n\t\tassertEquals(\"SECOND\", lookAhead.getCurrentLine().getText());\n\t\tlookAhead.advance();\n\t\tassertNull(lookAhead.getCurrentLine());\n\t\tassertEquals(\"SECOND\", lineSequence.getC... | {
"fields": [
{
"declarator": "delegate",
"modifier": "private final",
"original_string": "private final LineSequence delegate;",
"type": "LineSequence",
"var_name": "delegate"
},
{
"declarator": "transform",
"modifier": "private final",
"original_string": "... | {
"body": "@Override\n\tpublic LineSequence lookAhead() {\n\t\treturn new TransformLineSequence(delegate.lookAhead(), transform);\n\t}",
"class_method_signature": "TransformLineSequence.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_92 | {
"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 parse() {\n\t\tassertParse(\"\");\n\t\tassertParse(\"one\\ntwo\", new Characters(line, 0, 3, \"one\"), new SoftLineBreak(line, 3, 1),\n\t\t\t\tnew Characters(line, 4, 3, \"two\"));\n\t\tassertParse(\"one\\ntwo three\", new Characters(line, 0, 3, \"one\"), new SoftLineBreak(line, 3, 1),... | {
"fields": [
{
"declarator": "spans",
"modifier": "private final",
"original_string": "private final List<SourceSpan> spans;",
"type": "List<SourceSpan>",
"var_name": "spans"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/main/java/org/eclipse/mylyn/wi... | {
"body": "public List<Inline> parse(ProcessingContext context, TextSegment segment) {\n\t\tCursor cursor = new Cursor(segment);\n\n\t\tList<Inline> inlines = new ArrayList<>();\n\t\twhile (cursor.hasChar()) {\n\t\t\tconsumeOne(context, inlines, cursor);\n\t\t}\n\n\t\treturn secondPass(inlines);\n\t}",
"class_metho... | {
"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_323 | {
"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 testToString() {\n\t\tassertEquals(\"beginDocument()\", new BeginDocumentEvent().toString());\n\t}",
"class_method_signature": "BeginDocumentEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identifier": "testToString",
"i... | {
"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 String toString() {\n\t\treturn \"beginDocument()\"; //$NON-NLS-1$\n\t}",
"class_method_signature": "BeginDocumentEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [],
"modifiers": "@Over... | {
"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_289 | {
"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 processPackageName() {\n\t\tassertEquals(\"../index.html?foo/package-summary.html\", processor.process(\"@foo\"));\n\t\tassertEquals(\"../index.html?foo/bar/package-summary.html\", processor.process(\"@foo.bar\"));\n\t}",
"class_method_signature": "JavadocShortcutUriProcessorTest.pro... | {
"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_266 | {
"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 beginDocument() {\n\t\tmultiplexer.beginDocument();\n\t\tassertEvents(new BeginDocumentEvent());\n\t}",
"class_method_signature": "MultiplexingDocumentBuilderTest.beginDocument()",
"constructor": false,
"full_signature": "@Test public void beginDocument()",
"identifier": "begin... | {
"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 beginDocument() {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.beginDocument();\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.beginDocument()",
"constructor": false,
"full_signature": "@Override public void beginDocument()",
"identif... | {
"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_335 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/LinkEventTest.java",
"identifier": "LinkEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"link(#name,\\\"text\\\")\", new LinkEvent(new Attributes(), \"#name\", \"text\").toString());\n\t}",
"class_method_signature": "LinkEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"ident... | {
"fields": [
{
"declarator": "hrefOrHashName",
"modifier": "private final",
"original_string": "private final String hrefOrHashName;",
"type": "String",
"var_name": "hrefOrHashName"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": ... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"link(%s,\\\"%s\\\")\", hrefOrHashName, text); //$NON-NLS-1$\n\t}",
"class_method_signature": "LinkEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"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_270 | {
"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 beginSpan() {\n\t\tmultiplexer.beginSpan(SpanType.DELETED, new Attributes());\n\t\tassertEvents(new BeginSpanEvent(SpanType.DELETED, new Attributes()));\n\t}",
"class_method_signature": "MultiplexingDocumentBuilderTest.beginSpan()",
"constructor": false,
"full_signature": "@Test ... | {
"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 beginSpan(SpanType type, Attributes attributes) {\n\t\tfor (DocumentBuilder builder : builders) {\n\t\t\tbuilder.beginSpan(type, attributes);\n\t\t}\n\t}",
"class_method_signature": "MultiplexingDocumentBuilder.beginSpan(SpanType type, Attributes attributes)",
"constructor": fa... | {
"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_159 | {
"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 addSpanType() {\n\t\tassertNotNull(builder.add(SpanType.BOLD));\n\t\tassertSame(builder, builder.add(SpanType.BOLD));\n\t}",
"class_method_signature": "HtmlLanguageBuilderTest.addSpanType()",
"constructor": false,
"full_signature": "@Test public void addSpanType()",
"identifier... | {
"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 add(BlockType blockType) {\n\t\tblockTypes.add(requireNonNull(blockType, \"Must provide a blockType\")); //$NON-NLS-1$\n\t\treturn this;\n\t}",
"class_method_signature": "HtmlLanguageBuilder.add(BlockType blockType)",
"constructor": false,
"full_signature": "public HtmlLang... | {
"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_227 | {
"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 calculateHelpPrefixRoot() {\n\t\tassertNull(markupToEclipseHelp.calculateHelpPrefix(\"\"));\n\t}",
"class_method_signature": "MarkupToEclipseHelpMojoTest.calculateHelpPrefixRoot()",
"constructor": false,
"full_signature": "@Test public void calculateHelpPrefixRoot()",
"identifi... | {
"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 String calculateHelpPrefix(String relativePath) {\n\t\tString prefix = helpPrefix == null ? \"\" : helpPrefix;\n\t\tif (relativePath.length() > 0) {\n\t\t\tif (prefix.length() > 0) {\n\t\t\t\tprefix += \"/\";\n\t\t\t}\n\t\t\tprefix += relativePath;\n\t\t}\n\t\treturn prefix.length() == 0 ? null :... | {
"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_84 | {
"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 replaceHtmlEntities() {\n\t\tPotentialBracketEndDelimiter delimiter = new PotentialBracketEndDelimiter(line, 0);\n\t\tEscaper escaper = UrlEscapers.urlFormParameterEscaper();\n\t\tassertEquals(\"asf\", delimiter.replaceHtmlEntities(\"asf\", escaper));\n\t\tassertEquals(\"&\", delimi... | {
"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": "String replaceHtmlEntities(String text, Escaper escaper) {\n\t\tString replaced = \"\";\n\t\tint lastEnd = 0;\n\t\tMatcher matcher = HTML_ENTITY_PATTERN.matcher(text);\n\t\twhile (matcher.find()) {\n\t\t\tif (lastEnd < matcher.start(1)) {\n\t\t\t\treplaced += text.substring(lastEnd, matcher.start(1));\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_196 | {
"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 testTableSupported() {\n\t\tbuilder.setSupportedBlockTypes(Sets.newHashSet(BlockType.TABLE));\n\t\tbuildTable();\n\t\tassertContent(\n\t\t\t\t\"<table><tr><td>test 0/0</td><td>test 1/0</td><td>test 2/0</td></tr><tr><td>test 0/1</td><td>test 1/1</td><td>test 2/1</td></tr></table>\");\n\... | {
"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_179 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/internal/HtmlSubsetLanguageTest.java",
"identifier": "HtmlSubsetLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void parseCleansHtmlSetOnClone() {\n\t\tHtmlLanguage htmlLanguage = newHtmlSubsetLanguage(BlockType.PARAGRAPH);\n\t\thtmlLanguage.setParseCleansHtml(true);\n\t\tassertEquals(htmlLanguage.isParseCleansHtml(), htmlLanguage.clone().isParseCleansHtml());\n\t\thtmlLanguage.setParseCleansHtml(fal... | {
"fields": [
{
"declarator": "supportedBlockTypes",
"modifier": "private final",
"original_string": "private final Set<BlockType> supportedBlockTypes;",
"type": "Set<BlockType>",
"var_name": "supportedBlockTypes"
},
{
"declarator": "supportedSpanTypes",
"modifier... | {
"body": "@Override\n\tpublic HtmlSubsetLanguage clone() {\n\t\tHtmlSubsetLanguage copy = new HtmlSubsetLanguage(getName(), documentHandler, headingLevel, supportedBlockTypes,\n\t\t\t\tsupportedSpanTypes, tagNameSubstitutions, spanElementStrategies, xhtmlStrict, supportsImages);\n\t\tcopy.setFileExtensions(getFileEx... | {
"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_250 | {
"fields": [
{
"declarator": "locator",
"modifier": "private",
"original_string": "private ServiceLocator locator;",
"type": "ServiceLocator",
"var_name": "locator"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/util/ServiceLo... | {
"body": "@Test\n\tpublic void getClasspathServiceResourceNames() {\n\t\tList<String> names = locator.getClasspathServiceResourceNames();\n\t\tassertNotNull(names);\n\t\tassertTrue(names.contains(\"META-INF/services/\" + MarkupLanguage.class.getName()));\n\t\tassertTrue(names.contains(\"services/\" + MarkupLanguage.... | {
"fields": [
{
"declarator": "classLoader",
"modifier": "protected final",
"original_string": "protected final ClassLoader classLoader;",
"type": "ClassLoader",
"var_name": "classLoader"
},
{
"declarator": "implementationClassLock = new Object()",
"modifier": "pr... | {
"body": "protected List<String> getClasspathServiceResourceNames() {\n\t\tList<String> paths = new ArrayList<>();\n\t\tfor (String suffix : new String[] { \"services/\" + MarkupLanguage.class.getName(), //$NON-NLS-1$\n\t\t\t\t\"services/\" + MarkupLanguageProvider.class.getName() }) { //$NON-NLS-1$\n\t\t\tfor (Stri... | {
"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_8 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.textile/src/test/java/org/eclipse/mylyn/wikitext/textile/internal/block/CommentBlockTest.java",
"identifier": "CommentBlockTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void mustStartAtLineStart() {\n\t\tassertTrue(new CommentBlock().canStart(\"###. comment\", 0));\n\t\tassertFalse(new CommentBlock().canStart(\" ###. comment\", 0));\n\t\tassertFalse(new CommentBlock().canStart(\" ###. comment\", 1));\n\t}",
"class_method_signature": "CommentBlockTest.mus... | {
"fields": [
{
"declarator": "startPattern = Pattern.compile(\"###\\\\.(\\\\.)?\\\\s+(.*)\")",
"modifier": "private static final",
"original_string": "private static final Pattern startPattern = Pattern.compile(\"###\\\\.(\\\\.)?\\\\s+(.*)\");",
"type": "Pattern",
"var_name": "start... | {
"body": "@Override\n\tpublic boolean canStart(String line, int lineOffset) {\n\t\tblockLineCount = 0;\n\t\tif (lineOffset == 0) {\n\t\t\tmatcher = startPattern.matcher(line);\n\t\t\treturn matcher.matches();\n\t\t} else {\n\t\t\tmatcher = null;\n\t\t\treturn false;\n\t\t}\n\t}",
"class_method_signature": "Comment... | {
"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_315 | {
"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 charactersUnescaped() {\n\t\tbuilder.charactersUnescaped(\"test 123\");\n\t\tassertEvents(new CharactersUnescapedEvent(\"test 123\"));\n\t}",
"class_method_signature": "EventDocumentBuilderTest.charactersUnescaped()",
"constructor": false,
"full_signature": "@Test public void cha... | {
"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 charactersUnescaped(String literal) {\n\t\tevents.add(new CharactersUnescapedEvent(literal));\n\t}",
"class_method_signature": "EventDocumentBuilder.charactersUnescaped(String literal)",
"constructor": false,
"full_signature": "@Override public void charactersUnescaped(String... | {
"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_207 | {
"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 spanWithTextDecorationLinethroughToDeleted() {\n\t\tSpanStrategies strategies = new SpanStrategies(Sets.newHashSet(SpanType.DELETED),\n\t\t\t\tCollections.<SpanHtmlElementStrategy> emptyList());\n\t\tSpanStrategy strategy = strategies.getStrategy(SpanType.SPAN,\n\t\t\t\tnew Attributes(... | {
"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_342 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/LineBreakEventTest.java",
"identifier": "LineBreakEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void equals() {\n\t\tassertEquality(new LineBreakEvent(), new LineBreakEvent());\n\t}",
"class_method_signature": "LineBreakEventTest.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/LineBreakEvent.java",
"identifier": "LineBreakEvent",
"interfaces": "",
"methods": [
{
"class_method_signature": "LineBreakEvent.invoke(DocumentBuilder builder)",
"co... | {
"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 LineBreakEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"class_method_signature": "LineBreakEvent.equals(Object... | {
"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_138 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/LineTest.java",
"identifier": "LineTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void getOffset() {\n\t\tassertEquals(0, new Line(1, 0, \"abc\").getOffset());\n\t\tassertEquals(1, new Line(1, 1, \"abc\").getOffset());\n\t}",
"class_method_signature": "LineTest.getOffset()",
"constructor": false,
"full_signature": "@Test public void getOffset()",
"identifier": "g... | {
"fields": [
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final String text;",
"type": "String",
"var_name": "text"
},
{
"declarator": "offset",
"modifier": "private final",
"original_string": "private final int offset;",... | {
"body": "public int getOffset() {\n\t\treturn offset;\n\t}",
"class_method_signature": "Line.getOffset()",
"constructor": false,
"full_signature": "public int getOffset()",
"identifier": "getOffset",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "int",
"signature": "int g... | {
"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_211 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.maven/src/test/java/org/eclipse/mylyn/wikitext/maven/internal/FileToMarkupLanguageTest.java",
"identifier": "FileToMarkupLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void get() {\n\t\tassertNotNull(create().get(mockFile(\"content.Test\")));\n\t}",
"class_method_signature": "FileToMarkupLanguageTest.get()",
"constructor": false,
"full_signature": "@Test public void get()",
"identifier": "get",
"invocations": [
"assertNotNull",
"get",
... | {
"fields": [
{
"declarator": "extensionToMarkupLanguage",
"modifier": "private final",
"original_string": "private final Map<String, MarkupLanguage> extensionToMarkupLanguage;",
"type": "Map<String, MarkupLanguage>",
"var_name": "extensionToMarkupLanguage"
}
],
"file": "wiki... | {
"body": "public MarkupLanguage get(File file) {\n\t\trequireNonNull(file);\n\t\tString extension = computeFileExtension(file);\n\t\treturn extensionToMarkupLanguage.get(extension.toLowerCase());\n\t}",
"class_method_signature": "FileToMarkupLanguage.get(File file)",
"constructor": false,
"full_signature": "pu... | {
"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_354 | {
"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 equals() {\n\t\tassertEquality(new AcronymEvent(\"one\", \"two\"), new AcronymEvent(\"one\", \"two\"));\n\t\tassertInequality(new AcronymEvent(\"one\", \"two\"), new AcronymEvent(\"three\", \"two\"));\n\t\tassertInequality(new AcronymEvent(\"one\", \"two\"), new AcronymEvent(\"one\", \... | {
"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 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 AcronymEvent)) {\n\t\t\treturn false;\n\t\t}\n\t\tAcronymEvent other = (AcronymEvent) obj;\n\t\treturn Objects.equals(text, other... | {
"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_180 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.html/src/test/java/org/eclipse/mylyn/wikitext/html/internal/HtmlSubsetLanguageTest.java",
"identifier": "HtmlSubsetLanguageTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void createDocumentBuilder() {\n\t\tStringWriter out = new StringWriter();\n\t\tHtmlSubsetDocumentBuilder builder = newHtmlSubsetLanguage(BlockType.PARAGRAPH).createDocumentBuilder(out,\n\t\t\t\tfalse);\n\t\tassertNotNull(builder);\n\t\tassertTrue(builder instanceof HtmlSubsetDocumentBuilde... | {
"fields": [
{
"declarator": "supportedBlockTypes",
"modifier": "private final",
"original_string": "private final Set<BlockType> supportedBlockTypes;",
"type": "Set<BlockType>",
"var_name": "supportedBlockTypes"
},
{
"declarator": "supportedSpanTypes",
"modifier... | {
"body": "@Override\n\tpublic HtmlSubsetDocumentBuilder createDocumentBuilder(Writer out, boolean formatting) {\n\t\tHtmlSubsetDocumentBuilder builder = new HtmlSubsetDocumentBuilder(out, formatting);\n\t\tbuilder.setSupportedHeadingLevel(headingLevel);\n\t\tbuilder.setSupportedSpanTypes(supportedSpanTypes, spanElem... | {
"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_246 | {
"fields": [
{
"declarator": "locator",
"modifier": "private",
"original_string": "private ServiceLocator locator;",
"type": "ServiceLocator",
"var_name": "locator"
}
],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/util/ServiceLo... | {
"body": "@Test\n\tpublic void getMarkupLanguageUnknown() {\n\t\tsetupServiceLocatorWithMockMarkupLanguage(true);\n\t\tIllegalArgumentException e = assertThrows(IllegalArgumentException.class,\n\t\t\t\t() -> locator.getMarkupLanguage(\"UnknownLanguage\"));\n\t\tassertTrue(e.getMessage()\n\t\t\t\t.contains(\n\t\t\t\t... | {
"fields": [
{
"declarator": "classLoader",
"modifier": "protected final",
"original_string": "protected final ClassLoader classLoader;",
"type": "ClassLoader",
"var_name": "classLoader"
},
{
"declarator": "implementationClassLock = new Object()",
"modifier": "pr... | {
"body": "public MarkupLanguage getMarkupLanguage(final String languageName) throws IllegalArgumentException {\n\t\tcheckArgument(!Strings.isNullOrEmpty(languageName), \"Must provide a languageName\"); //$NON-NLS-1$\n\t\tPattern classNamePattern = Pattern.compile(\"\\\\s*([^\\\\s#]+)?#?.*\"); //$NON-NLS-1$\n\t\t// f... | {
"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_303 | {
"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 setElementNameOfSpanTypeRequiresElementName() {\n\t\tNullPointerException e = assertThrows(NullPointerException.class,\n\t\t\t\t() -> builder.setElementNameOfSpanType(SpanType.BOLD, null));\n\t\tassertTrue(e.getMessage().contains(\"Must provide elementName\"));\n\t}",
"class_method_s... | {
"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 setElementNameOfSpanType(SpanType spanType, String elementName) {\n\t\tObjects.requireNonNull(spanType, \"Must provide spanType\"); //$NON-NLS-1$\n\t\tObjects.requireNonNull(elementName, \"Must provide elementName\"); //$NON-NLS-1$\n\n\t\tImmutableMap.Builder<SpanType, String> builder = Immutab... | {
"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_114 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/ToStringHelperTest.java",
"identifier": "ToStringHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void toStringValue() {\n\t\tassertEquals(null, ToStringHelper.toStringValue(null));\n\t\tassertEquals(\"\", ToStringHelper.toStringValue(\"\"));\n\t\tassertEquals(\"abc\", ToStringHelper.toStringValue(\"abc\"));\n\t\tassertEquals(\"01234567890123456789...\",\n\t\t\t\tToStringHelper.toString... | {
"fields": [
{
"declarator": "ELIPSES = \"...\"",
"modifier": "private static final",
"original_string": "private static final String ELIPSES = \"...\";",
"type": "String",
"var_name": "ELIPSES"
},
{
"declarator": "STRING_MAX_LENGTH = 20",
"modifier": "private st... | {
"body": "public static String toStringValue(String text) {\n\t\tif (text == null) {\n\t\t\treturn text;\n\t\t}\n\t\tString stringValue = text;\n\t\tif (stringValue.length() > 20) {\n\t\t\tstringValue = stringValue.substring(0, STRING_MAX_LENGTH) + ELIPSES;\n\t\t}\n\t\treturn stringValue.replace(\"\\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_71 | {
"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(expected = NullPointerException.class)\n\tpublic void createRequiresContent() {\n\t\tLineSequence.create((String) null);\n\t}",
"class_method_signature": "LineSequenceTest.createRequiresContent()",
"constructor": false,
"full_signature": "@Test(expected = NullPointerException.class) public void... | {
"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 static LineSequence create(String content) {\n\t\treturn new ContentLineSequence(content);\n\t}",
"class_method_signature": "LineSequence.create(String content)",
"constructor": false,
"full_signature": "public static LineSequence create(String content)",
"identifier": "create",
"invocatio... | {
"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_26 | {
"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 boldSpanNoWhitespace_spanAtLineStart() {\n\t\tbuilder.beginDocument();\n\t\tbuilder.beginBlock(BlockType.PARAGRAPH, new Attributes());\n\n\t\tbuilder.beginSpan(SpanType.BOLD, new Attributes());\n\t\tbuilder.characters(\"text2\");\n\t\tbuilder.endSpan();\n\t\tbuilder.characters(\"text3\... | {
"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_143 | {
"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 newDocumentBuilderIsFormatting() {\n\t\tWriter out = new StringWriter();\n\t\tDocumentBuilder builder = new HtmlLanguage().createDocumentBuilder(out, true);\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_285 | {
"fields": [
{
"declarator": "instance = HtmlEntities.instance()",
"modifier": "private final",
"original_string": "private final HtmlEntities instance = HtmlEntities.instance();",
"type": "HtmlEntities",
"var_name": "instance"
}
],
"file": "wikitext/core/org.eclipse.mylyn.w... | {
"body": "@Test\n\tpublic void instance() {\n\t\tassertNotNull(instance);\n\t\tassertSame(instance, HtmlEntities.instance());\n\t}",
"class_method_signature": "HtmlEntitiesTest.instance()",
"constructor": false,
"full_signature": "@Test public void instance()",
"identifier": "instance",
"invocations": [
... | {
"fields": [
{
"declarator": "instance = new HtmlEntities()",
"modifier": "private static",
"original_string": "private static HtmlEntities instance = new HtmlEntities();",
"type": "HtmlEntities",
"var_name": "instance"
},
{
"declarator": "nameToNumericEntityReferences... | {
"body": "public static HtmlEntities instance() {\n\t\treturn instance;\n\t}",
"class_method_signature": "HtmlEntities.instance()",
"constructor": false,
"full_signature": "public static HtmlEntities 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_155 | {
"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 create() {\n\t\tHtmlLanguage language = builder.add(BlockType.PARAGRAPH)\n\t\t\t\t.add(BlockType.CODE)\n\t\t\t\t.add(SpanType.SUPERSCRIPT)\n\t\t\t\t.add(SpanType.BOLD)\n\t\t\t\t.addSubstitution(SpanType.BOLD, \"bold\")\n\t\t\t\t.name(\"Test\")\n\t\t\t\t.create();\n\t\tassertNotNull(lan... | {
"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 HtmlLanguage create() {\n\t\tcheckState(name != null, \"Name must be provided to create an HtmlLanguage\"); //$NON-NLS-1$\n\n\t\treturn new HtmlSubsetLanguage(name, documentHandler, headingLevel, blockTypes, spanTypes,\n\t\t\t\tspanTypeToElementNameSubstitution, spanElementStrategies, xhtmlStrict, 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_30 | {
"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 spanWithAdjacentWhitespace() {\n\t\tbuilder.beginDocument();\n\n\t\tbuilder.characters(\"prefix \");\n\n\t\tbuilder.beginSpan(SpanType.BOLD, new Attributes());\n\t\tbuilder.characters(\"bolded\");\n\t\tbuilder.endBlock();\n\n\t\tbuilder.characters(\" suffix\");\n\n\t\tbuilder.endBlock(... | {
"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_339 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext/src/test/java/org/eclipse/mylyn/wikitext/parser/builder/event/BeginBlockEventTest.java",
"identifier": "BeginBlockEventTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"beginBlock(CODE)\", new BeginBlockEvent(BlockType.CODE, new Attributes()).toString());\n\t}",
"class_method_signature": "BeginBlockEventTest.testToString()",
"constructor": false,
"full_signature": "@Test public void testToString()",
"identi... | {
"fields": [
{
"declarator": "type",
"modifier": "private final",
"original_string": "private final BlockType type;",
"type": "BlockType",
"var_name": "type"
},
{
"declarator": "attributes",
"modifier": "private final",
"original_string": "private final Att... | {
"body": "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"beginBlock(%s)\", type); //$NON-NLS-1$\n\t}",
"class_method_signature": "BeginBlockEvent.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [
"f... | {
"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_293 | {
"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 processAbsoluteUriTypeName() {\n\t\tassertEquals(\"../index.html?Foo.html\", processor.process(\"javadoc://Foo\"));\n\t}",
"class_method_signature": "JavadocShortcutUriProcessorTest.processAbsoluteUriTypeName()",
"constructor": false,
"full_signature": "@Test public void processA... | {
"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_67 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/TextSegmentTest.java",
"identifier": "TextSegmentTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void offsetOf() {\n\t\tTextSegment segment = new TextSegment(createLines(\"one\\r\\ntwo\\r\\nthree four\"));\n\t\tString text = segment.getText();\n\t\tassertEquals(0, segment.offsetOf(text.indexOf(\"one\")));\n\t\tassertEquals(5, segment.offsetOf(text.indexOf(\"two\")));\n\t\tassertEquals(... | {
"fields": [
{
"declarator": "lines",
"modifier": "private final",
"original_string": "private final List<Line> lines;",
"type": "List<Line>",
"var_name": "lines"
},
{
"declarator": "text",
"modifier": "private final",
"original_string": "private final Stri... | {
"body": "public int offsetOf(int textOffset) {\n\t\tcheckArgument(textOffset >= 0);\n\t\tint textOffsetOfLine = 0;\n\t\tint remainder = textOffset;\n\t\tfor (Line line : lines) {\n\t\t\ttextOffsetOfLine = line.getOffset();\n\t\t\tint linePlusSeparatorLength = line.getText().length() + 1;\n\t\t\tif (linePlusSeparato... | {
"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_102 | {
"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 matcher() {\n\t\tCursor cursor = new Cursor(createTextSegment(\"123\"));\n\t\tMatcher matcher = cursor.matcher(Pattern.compile(\"123\"));\n\t\tassertNotNull(matcher);\n\t\tassertTrue(matcher.matches());\n\n\t\tmatcher = cursor.matcher(2, Pattern.compile(\"3\"));\n\t\tassertNotNull(matc... | {
"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 Matcher matcher(Pattern pattern) {\n\t\treturn matcher(0, pattern);\n\t}",
"class_method_signature": "Cursor.matcher(Pattern pattern)",
"constructor": false,
"full_signature": "public Matcher matcher(Pattern pattern)",
"identifier": "matcher",
"invocations": [
"matcher"
],
"modifie... | {
"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_88 | {
"fields": [],
"file": "wikitext/core/org.eclipse.mylyn.wikitext.commonmark/src/test/java/org/eclipse/mylyn/wikitext/commonmark/internal/inlines/CodeSpanTest.java",
"identifier": "CodeSpanTest",
"interfaces": "",
"superclass": "extends AbstractSourceSpanTest"
} | {
"body": "@Test\n\tpublic void createInline() {\n\t\tassertNoInline(createCursor(\"``one`\"));\n\t\tassertNoInline(createCursor(\"two\"));\n\t\tassertNoInline(createCursor(\"``\"));\n\t\tassertNoInline(createCursor(\"`one``\"));\n\t\tassertCode(14, \"this is code\", \"`this is code`\");\n\t\tassertCode(12, \"one\\nt... | {
"fields": [
{
"declarator": "pattern = Pattern.compile(\"(`+).*\", Pattern.DOTALL | Pattern.MULTILINE)",
"modifier": "",
"original_string": "Pattern pattern = Pattern.compile(\"(`+).*\", Pattern.DOTALL | Pattern.MULTILINE);",
"type": "Pattern",
"var_name": "pattern"
}
],
"f... | {
"body": "@Override\n\tpublic Optional<? extends Inline> createInline(Cursor cursor) {\n\t\tchar c = cursor.getChar();\n\t\tif (c == '`' && (!cursor.hasPrevious() || cursor.getPrevious() != '`')) {\n\t\t\tMatcher matcher = cursor.matcher(pattern);\n\t\t\tif (matcher.matches()) {\n\t\t\t\tString openingBackticks = ma... | {
"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"
} |
45334811_14 | {
"fields": [],
"file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java",
"identifier": "DomaEventEntityListenerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void handlePreUpdateWithContext() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PreUpdateHandle... | {
"fields": [
{
"declarator": "eventPublisher",
"modifier": "private",
"original_string": "private ApplicationEventPublisher eventPublisher;",
"type": "ApplicationEventPublisher",
"var_name": "eventPublisher"
}
],
"file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b... | {
"body": "@Override\n\tpublic void preUpdate(T t, PreUpdateContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreUpdateEvent<>(t, context));\n\t}",
"class_method_signature": "DomaEventEntityListener.preUpdate(T t, PreUpdateContext<T> context)",
"constructor": false,
"full_signature": "@Override pu... | {
"created": null,
"fork": null,
"fork_count": 19,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 45334811,
"size": 658,
"stargazer_count": 63,
"stars": null,
"updates": null,
"url": "https://github.com/domaframework/doma-spring-boot"
} |
45334811_9 | {
"fields": [],
"file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/PageablesTest.java",
"identifier": "PageablesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testToSelectOptions2() throws Exception {\n\t\tSelectOptions options = Pageables.toSelectOptions(pageRequest(2, 10));\n\t\tassertThat(SelectOptionsAccessor.getOffset(options), is(20L));\n\t\tassertThat(SelectOptionsAccessor.getLimit(options), is(10L));\n\t}",
"class_method_signature"... | {
"fields": [],
"file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Pageables.java",
"identifier": "Pageables",
"interfaces": "",
"methods": [
{
"class_method_signature": "Pageables.toSelectOptions(Pageable pageable)",
"constructor": false,
"full_signature": "public static ... | {
"body": "public static SelectOptions toSelectOptions(Pageable pageable) {\n\t\tfinal int offset = pageable.getPageNumber() * pageable.getPageSize();\n\t\tfinal int limit = pageable.getPageSize();\n\t\treturn SelectOptions.get().offset(offset).limit(limit);\n\t}",
"class_method_signature": "Pageables.toSelectOptio... | {
"created": null,
"fork": null,
"fork_count": 19,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 45334811,
"size": 658,
"stargazer_count": 63,
"stars": null,
"updates": null,
"url": "https://github.com/domaframework/doma-spring-boot"
} |
45334811_18 | {
"fields": [],
"file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java",
"identifier": "DomaEventEntityListenerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void handlePostInsertWithContext() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PostInsertHand... | {
"fields": [
{
"declarator": "eventPublisher",
"modifier": "private",
"original_string": "private ApplicationEventPublisher eventPublisher;",
"type": "ApplicationEventPublisher",
"var_name": "eventPublisher"
}
],
"file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b... | {
"body": "@Override\n\tpublic void postInsert(T t, PostInsertContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PostInsertEvent<>(t, context));\n\t}",
"class_method_signature": "DomaEventEntityListener.postInsert(T t, PostInsertContext<T> context)",
"constructor": false,
"full_signature": "@Overri... | {
"created": null,
"fork": null,
"fork_count": 19,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 45334811,
"size": 658,
"stargazer_count": 63,
"stars": null,
"updates": null,
"url": "https://github.com/domaframework/doma-spring-boot"
} |
45334811_5 | {
"fields": [
{
"declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())",
"modifier": "private final",
"original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL... | {
"body": "@Test\n\tpublic void testThrowEmptyResultDataAccessException() {\n\t\tDataAccessException dataAccessException = translator\n\t\t\t\t.translateExceptionIfPossible(new NoResultException(SqlLogType.FORMATTED,\n\t\t\t\t\t\tSqlKind.SELECT, \"select * from todo where todo_id = ?\",\n\t\t\t\t\t\t\"select * from t... | {
"fields": [
{
"declarator": "translator",
"modifier": "private final",
"original_string": "private final SQLExceptionTranslator translator;",
"type": "SQLExceptionTranslator",
"var_name": "translator"
}
],
"file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do... | {
"body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock... | {
"created": null,
"fork": null,
"fork_count": 19,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 45334811,
"size": 658,
"stargazer_count": 63,
"stars": null,
"updates": null,
"url": "https://github.com/domaframework/doma-spring-boot"
} |
45334811_22 | {
"fields": [],
"file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java",
"identifier": "DomaEventEntityListenerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void handlePostDeleteWithContext() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PostDeleteHand... | {
"fields": [
{
"declarator": "eventPublisher",
"modifier": "private",
"original_string": "private ApplicationEventPublisher eventPublisher;",
"type": "ApplicationEventPublisher",
"var_name": "eventPublisher"
}
],
"file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b... | {
"body": "@Override\n\tpublic void postDelete(T t, PostDeleteContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PostDeleteEvent<>(t, context));\n\t}",
"class_method_signature": "DomaEventEntityListener.postDelete(T t, PostDeleteContext<T> context)",
"constructor": false,
"full_signature": "@Overri... | {
"created": null,
"fork": null,
"fork_count": 19,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 45334811,
"size": 658,
"stargazer_count": 63,
"stars": null,
"updates": null,
"url": "https://github.com/domaframework/doma-spring-boot"
} |
45334811_23 | {
"fields": [],
"file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java",
"identifier": "DomaEventEntityListenerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void anotherEntity() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PreInsertHandler.class);\n\t... | {
"fields": [
{
"declarator": "eventPublisher",
"modifier": "private",
"original_string": "private ApplicationEventPublisher eventPublisher;",
"type": "ApplicationEventPublisher",
"var_name": "eventPublisher"
}
],
"file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b... | {
"body": "@Override\n\tpublic void preInsert(T t, PreInsertContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreInsertEvent<>(t, context));\n\t}",
"class_method_signature": "DomaEventEntityListener.preInsert(T t, PreInsertContext<T> context)",
"constructor": false,
"full_signature": "@Override pu... | {
"created": null,
"fork": null,
"fork_count": 19,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 45334811,
"size": 658,
"stargazer_count": 63,
"stars": null,
"updates": null,
"url": "https://github.com/domaframework/doma-spring-boot"
} |
45334811_4 | {
"fields": [
{
"declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())",
"modifier": "private final",
"original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL... | {
"body": "@Test\n\tpublic void testThrowIncorrectResultSizeDataAccessException() {\n\t\t{\n\t\t\tDataAccessException dataAccessException = translator\n\t\t\t\t\t.translateExceptionIfPossible(new NonUniqueResultException(\n\t\t\t\t\t\t\tSqlLogType.FORMATTED, SqlKind.SELECT,\n\t\t\t\t\t\t\t\"select * from todo where c... | {
"fields": [
{
"declarator": "translator",
"modifier": "private final",
"original_string": "private final SQLExceptionTranslator translator;",
"type": "SQLExceptionTranslator",
"var_name": "translator"
}
],
"file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do... | {
"body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock... | {
"created": null,
"fork": null,
"fork_count": 19,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 45334811,
"size": 658,
"stargazer_count": 63,
"stars": null,
"updates": null,
"url": "https://github.com/domaframework/doma-spring-boot"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.