id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
2945916_27 | {
"fields": [],
"file": "dom/src/test/java/org/apache/james/mime4j/message/MessageBuilderTest.java",
"identifier": "MessageBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSetCc() throws Exception {\n MessageBuilder builder = MessageBuilder.create();\n\n Mailbox mailbox1 = DefaultAddressParser.DEFAULT.parseMailbox(\"john.doe@example.net\");\n Mailbox mailbox2 = DefaultAddressParser.DEFAULT.parseMailbox(\"jane.doe@example.net\")... | {
"fields": [
{
"declarator": "builder",
"modifier": "private final",
"original_string": "private final Message.Builder builder;",
"type": "Message.Builder",
"var_name": "builder"
}
],
"file": "dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java",
"identif... | {
"body": "public MessageBuilder setCc(Address... cc) {\n builder.setCc(cc);\n\n return this;\n }",
"class_method_signature": "MessageBuilder.setCc(Address... cc)",
"constructor": false,
"full_signature": "public MessageBuilder setCc(Address... cc)",
"identifier": "setCc",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_104 | {
"fields": [
{
"declarator": "SWISS_GERMAN_HELLO = \"Gr\\374ezi_z\\344m\\344\"",
"modifier": "private static final",
"original_string": "private static final String SWISS_GERMAN_HELLO = \"Gr\\374ezi_z\\344m\\344\";",
"type": "String",
"var_name": "SWISS_GERMAN_HELLO"
},
{
... | {
"body": "@Test\n public void testCharsetLookup() {\n Charset c1 = CharsetUtil.lookup(\"us-ascii\");\n Charset c2 = CharsetUtil.lookup(\"ascii\");\n Assert.assertEquals(Charsets.US_ASCII, c1);\n Assert.assertEquals(Charsets.US_ASCII, c2);\n }",
"class_method_signature": "CharsetUt... | {
"fields": [
{
"declarator": "CRLF = \"\\r\\n\"",
"modifier": "public static final",
"original_string": "public static final String CRLF = \"\\r\\n\";",
"type": "String",
"var_name": "CRLF"
},
{
"declarator": "CR = '\\r'",
"modifier": "public static final",
... | {
"body": "public static Charset lookup(final String name) {\n if (name == null) {\n return null;\n }\n try {\n return Charset.forName(name);\n } catch (IllegalCharsetNameException ex) {\n return null;\n } catch (UnsupportedCharsetException ex) {\n ... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_112 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/io/EOLConvertingInputStreamTest.java",
"identifier": "EOLConvertingInputStreamTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRead() throws IOException {\n testConvertBoth(\"Line 1\\r\\nLine 2\\r\\n\", \"Line 1\\r\\nLine 2\\r\\n\");\n testConvertCR(\"Line 1\\r\\nLine 2\\r\\n\", \"Line 1\\r\\nLine 2\\r\\n\");\n testConvertLF(\"Line 1\\r\\nLine 2\\r\\n\", \"Line 1\\r\\nLine 2\\r\\n\")... | {
"fields": [
{
"declarator": "CONVERT_CR = 1",
"modifier": "public static final",
"original_string": "public static final int CONVERT_CR = 1;",
"type": "int",
"var_name": "CONVERT_CR"
},
{
"declarator": "CONVERT_LF = 2",
"modifier": "public static final",
... | {
"body": "@Override\n public int read() throws IOException {\n int b = in.read();\n\n if (b == -1) {\n return -1;\n }\n\n if ((flags & CONVERT_CR) != 0 && b == '\\r') {\n int c = in.read();\n if (c != -1) {\n in.unread(c);\n }\... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_113 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/io/LineReaderInputStreamAdaptorTest.java",
"identifier": "LineReaderInputStreamAdaptorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBasicOperations() throws Exception {\n String text = \"ah blahblah\";\n LineReaderInputStreamAdaptor instream = create(text);\n\n Assert.assertEquals((byte) 'a', instream.read());\n Assert.assertEquals((byte) 'h', instream.read());\n Assert.asse... | {
"fields": [
{
"declarator": "bis",
"modifier": "private final",
"original_string": "private final LineReaderInputStream bis;",
"type": "LineReaderInputStream",
"var_name": "bis"
},
{
"declarator": "maxLineLen",
"modifier": "private final",
"original_string... | {
"body": "@Override\n public int read() throws IOException {\n int i = in.read();\n this.eof = i == -1;\n this.used = true;\n return i;\n }",
"class_method_signature": "LineReaderInputStreamAdaptor.read()",
"constructor": false,
"full_signature": "@Override public int read()",... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_105 | {
"fields": [
{
"declarator": "SWISS_GERMAN_HELLO = \"Gr\\374ezi_z\\344m\\344\"",
"modifier": "private static final",
"original_string": "private static final String SWISS_GERMAN_HELLO = \"Gr\\374ezi_z\\344m\\344\";",
"type": "String",
"var_name": "SWISS_GERMAN_HELLO"
},
{
... | {
"body": "@Test\n public void testCharsetLookupNullInput() {\n Charset c1 = CharsetUtil.lookup(null);\n Assert.assertNull(c1);\n }",
"class_method_signature": "CharsetUtilTest.testCharsetLookupNullInput()",
"constructor": false,
"full_signature": "@Test public void testCharsetLookupNullInpu... | {
"fields": [
{
"declarator": "CRLF = \"\\r\\n\"",
"modifier": "public static final",
"original_string": "public static final String CRLF = \"\\r\\n\";",
"type": "String",
"var_name": "CRLF"
},
{
"declarator": "CR = '\\r'",
"modifier": "public static final",
... | {
"body": "public static Charset lookup(final String name) {\n if (name == null) {\n return null;\n }\n try {\n return Charset.forName(name);\n } catch (IllegalCharsetNameException ex) {\n return null;\n } catch (UnsupportedCharsetException ex) {\n ... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_26 | {
"fields": [],
"file": "dom/src/test/java/org/apache/james/mime4j/message/MessageBuilderTest.java",
"identifier": "MessageBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetCc() throws Exception {\n MessageBuilder builder = MessageBuilder.create();\n Assert.assertNull(builder.getCc());\n\n builder.setField(DefaultFieldParser.parse(\"Cc: john.doe@example.net\"));\n\n Assert.assertEquals(\"john.doe@example.net\", ((Mailb... | {
"fields": [
{
"declarator": "builder",
"modifier": "private final",
"original_string": "private final Message.Builder builder;",
"type": "Message.Builder",
"var_name": "builder"
}
],
"file": "dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java",
"identif... | {
"body": "public AddressList getCc() {\n return builder.getCc();\n }",
"class_method_signature": "MessageBuilder.getCc()",
"constructor": false,
"full_signature": "public AddressList getCc()",
"identifier": "getCc",
"invocations": [
"getCc"
],
"modifiers": "public",
"parameters": "()",
... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_3 | {
"fields": [
{
"declarator": "parser",
"modifier": "",
"original_string": "MimeTokenStream parser;",
"type": "MimeTokenStream",
"var_name": "parser"
}
],
"file": "dom/src/test/java/org/apache/james/mime4j/message/MaximalBodyDescriptorTest.java",
"identifier": "MaximalBodyD... | {
"body": "@Test\n public void testMultipartNoBoundary() throws Exception {\n BodyDescriptorBuilder builder = new DefaultBodyDescriptorBuilder();\n builder.addField(new RawField(\"Content-Type\", \"multipart/yada; \"));\n BodyDescriptor bd = builder.build();\n assertEquals(\"text/plain\... | {
"fields": [
{
"declarator": "CONTENT_TYPE = FieldName.CONTENT_TYPE.toLowerCase(Locale.US)",
"modifier": "private static final",
"original_string": "private static final String CONTENT_TYPE = FieldName.CONTENT_TYPE.toLowerCase(Locale.US);",
"type": "String",
"var_name": "CONTENT_TYP... | {
"body": "public String getMimeType() {\n return mimeType;\n }",
"class_method_signature": "MaximalBodyDescriptor.getMimeType()",
"constructor": false,
"full_signature": "public String getMimeType()",
"identifier": "getMimeType",
"invocations": [],
"modifiers": "public",
"parameters": "()",
... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_129 | {
"fields": [
{
"declarator": "parser",
"modifier": "private",
"original_string": "private RawFieldParser parser;",
"type": "RawFieldParser",
"var_name": "parser"
}
],
"file": "core/src/test/java/org/apache/james/mime4j/stream/RawFieldParserTest.java",
"identifier": "RawFie... | {
"body": "@Test\n public void testNameValueListParseEmpty() {\n ByteSequence buf = ContentUtil.encode(\" \");\n ParserCursor cursor = new ParserCursor(0, buf.length());\n List<NameValuePair> params = parser.parseParameters(buf, cursor);\n org.junit.Assert.assertEquals(0, params.size... | {
"fields": [
{
"declarator": "COLON = INIT_BITSET(':')",
"modifier": "static final",
"original_string": "static final BitSet COLON = INIT_BITSET(':');",
"type": "BitSet",
"var_name": "COLON"
},
{
"declarator": "EQUAL_OR_SEMICOLON ... | {
"body": "public List<NameValuePair> parseParameters(final ByteSequence buf, final ParserCursor cursor) {\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n skipWhiteSpace(buf, cursor);\n while (!cursor.atEnd()) {\n NameValuePair param = parseParameter(buf, cursor);\n ... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_71 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java",
"identifier": "EncoderUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEncodeEncodedWordForceCharset() throws Exception {\n Assert.assertTrue(EncoderUtil.encodeEncodedWord(\"only ascii\",\n Usage.TEXT_TOKEN, 0, Charsets.UTF_8, null).startsWith(\n \"=?UTF-8?\"));\n }",
"class_method_signature": "EncoderUtilTe... | {
"fields": [
{
"declarator": "BASE64_TABLE = Base64OutputStream.BASE64_TABLE",
"modifier": "private static final",
"original_string": "private static final byte[] BASE64_TABLE = Base64OutputStream.BASE64_TABLE;",
"type": "byte[]",
"var_name": "BASE64_TABLE"
},
{
"decla... | {
"body": "public static String encodeEncodedWord(String text, Usage usage) {\n return encodeEncodedWord(text, usage, 0, null, null);\n }",
"class_method_signature": "EncoderUtil.encodeEncodedWord(String text, Usage usage)",
"constructor": false,
"full_signature": "public static String encodeEncodedWo... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_88 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/codec/DecoderUtilTest.java",
"identifier": "DecoderUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDecodeJapaneseEncodedWordsWithFallback() {\n String enc = \"=?random?B?GyRCTCQbKEobJEI+NRsoShskQkJ6GyhKGyRCOS0bKEo=?= \"\n + \"=?garbage?B?GyRCOXAbKEobJEIiKBsoShskQiU1GyhKGyRCJSQbKEo=?= \"\n + \"=?charset?B?GyRCJUkbKEobJEIlUxsoShskQiU4GyhKGyRC... | {
"fields": [
{
"declarator": "PATTERN_ENCODED_WORD = Pattern.compile(\n \"=\\\\?(.+?)\\\\?(\\\\w)\\\\?(.*?)\\\\?=\", Pattern.DOTALL)",
"modifier": "private static final",
"original_string": "private static final Pattern PATTERN_ENCODED_WORD = Pattern.compile(\n \"=\\\\?(.+... | {
"body": "static String decodeEncodedWords(String body) {\n return decodeEncodedWords(body, DecodeMonitor.SILENT);\n }",
"class_method_signature": "DecoderUtil.decodeEncodedWords(String body)",
"constructor": false,
"full_signature": "static String decodeEncodedWords(String body)",
"identifier": "... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_67 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/codec/EncoderUtilTest.java",
"identifier": "EncoderUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEncodeAddressLocalPart() throws Exception {\n Assert.assertEquals(\"john.wayne\", EncoderUtil\n .encodeAddressLocalPart(\"john.wayne\"));\n Assert.assertEquals(\"\\\"clint eastwood\\\"\", EncoderUtil\n .encodeAddressLocalPart(\"clint ea... | {
"fields": [
{
"declarator": "BASE64_TABLE = Base64OutputStream.BASE64_TABLE",
"modifier": "private static final",
"original_string": "private static final byte[] BASE64_TABLE = Base64OutputStream.BASE64_TABLE;",
"type": "byte[]",
"var_name": "BASE64_TABLE"
},
{
"decla... | {
"body": "public static String encodeAddressLocalPart(String localPart) {\n // local-part = dot-atom / quoted-string\n // dot-atom = [CFWS] dot-atom-text [CFWS]\n // CFWS = comment or folding white space\n\n if (isDotAtomText(localPart)) {\n return localPart;\n } else {\... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_30 | {
"fields": [],
"file": "dom/src/test/java/org/apache/james/mime4j/message/MessageBuilderTest.java",
"identifier": "MessageBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetReplyTo() throws Exception {\n MessageBuilder builder = MessageBuilder.create();\n Assert.assertNull(builder.getReplyTo());\n\n builder.setField(DefaultFieldParser.parse(\"Reply-To: john.doe@example.net\"));\n\n Assert.assertEquals(\"john.doe@exampl... | {
"fields": [
{
"declarator": "builder",
"modifier": "private final",
"original_string": "private final Message.Builder builder;",
"type": "Message.Builder",
"var_name": "builder"
}
],
"file": "dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java",
"identif... | {
"body": "public AddressList getReplyTo() {\n return builder.getReplyTo();\n }",
"class_method_signature": "MessageBuilder.getReplyTo()",
"constructor": false,
"full_signature": "public AddressList getReplyTo()",
"identifier": "getReplyTo",
"invocations": [
"getReplyTo"
],
"modifiers": "p... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_47 | {
"fields": [],
"file": "dom/src/test/java/org/apache/james/mime4j/field/FieldsTest.java",
"identifier": "FieldsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testContentDispositionFilenameSizeDate() throws Exception {\n ContentDispositionField field = Fields.contentDisposition(\"attachment\",\n \"some file.dat\", 300, new Date(1000), new Date(2000), new Date(\n 3000));\n Assert.assertTrue(field.... | {
"fields": [
{
"declarator": "FIELD_NAME_PATTERN = Pattern\n .compile(\"[\\\\x21-\\\\x39\\\\x3b-\\\\x7e]+\")",
"modifier": "private static final",
"original_string": "private static final Pattern FIELD_NAME_PATTERN = Pattern\n .compile(\"[\\\\x21-\\\\x39\\\\x3b-\\\\x7e]+\"... | {
"body": "public static ContentDispositionField contentDisposition(\n String contentDisposition) {\n return parse(ContentDispositionFieldImpl.PARSER,\n FieldName.CONTENT_DISPOSITION, contentDisposition);\n }",
"class_method_signature": "Fields.contentDisposition(\n St... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_10 | {
"fields": [
{
"declarator": "parser",
"modifier": "",
"original_string": "MimeTokenStream parser;",
"type": "MimeTokenStream",
"var_name": "parser"
}
],
"file": "dom/src/test/java/org/apache/james/mime4j/message/MaximalBodyDescriptorTest.java",
"identifier": "MaximalBodyD... | {
"body": "@Test\n public void testContentLocationWithComment() throws Exception {\n MaximalBodyDescriptor descriptor = describe(ExampleMail.MULTIPART_WITH_CONTENT_LOCATION_BYTES, 3);\n Assert.assertEquals(\"http://www.example.org/absolute/comments/rhubard.txt\", descriptor.getContentLocation());\n ... | {
"fields": [
{
"declarator": "CONTENT_TYPE = FieldName.CONTENT_TYPE.toLowerCase(Locale.US)",
"modifier": "private static final",
"original_string": "private static final String CONTENT_TYPE = FieldName.CONTENT_TYPE.toLowerCase(Locale.US);",
"type": "String",
"var_name": "CONTENT_TYP... | {
"body": "public String getContentLocation() {\n ContentLocationField contentLocationField =\n (ContentLocationField) fields.get(CONTENT_LOCATION);\n return contentLocationField != null ? contentLocationField.getLocation() : null;\n }",
"class_method_signature": "MaximalBodyDescriptor.g... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_51 | {
"fields": [],
"file": "dom/src/test/java/org/apache/james/mime4j/field/FieldsTest.java",
"identifier": "FieldsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMessageId() throws Exception {\n Field messageId = Fields.generateMessageId(\"acme.org\");\n\n String raw = decode(messageId);\n Assert.assertTrue(raw.startsWith(\"Message-ID: <Mime4j.\"));\n Assert.assertTrue(raw.endsWith(\"@acme.org>\"));\n }",
... | {
"fields": [
{
"declarator": "FIELD_NAME_PATTERN = Pattern\n .compile(\"[\\\\x21-\\\\x39\\\\x3b-\\\\x7e]+\")",
"modifier": "private static final",
"original_string": "private static final Pattern FIELD_NAME_PATTERN = Pattern\n .compile(\"[\\\\x21-\\\\x39\\\\x3b-\\\\x7e]+\"... | {
"body": "public static UnstructuredField messageId(String messageId) {\n return parse(UnstructuredFieldImpl.PARSER, FieldName.MESSAGE_ID, messageId);\n }",
"class_method_signature": "Fields.messageId(String messageId)",
"constructor": false,
"full_signature": "public static UnstructuredField message... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_109 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/util/ByteArrayBufferTest.java",
"identifier": "ByteArrayBufferTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSetInvalidLength() throws Exception {\n ByteArrayBuffer buffer = new ByteArrayBuffer(4);\n try {\n buffer.setLength(-2);\n Assert.fail(\"IndexOutOfBoundsException should have been thrown\");\n } catch (IndexOutOfBoundsException ex) {\n ... | {
"fields": [
{
"declarator": "buffer",
"modifier": "private",
"original_string": "private byte[] buffer;",
"type": "byte[]",
"var_name": "buffer"
},
{
"declarator": "len",
"modifier": "private",
"original_string": "private int len;",
"type": "int",
... | {
"body": "public void setLength(int len) {\n if (len < 0 || len > this.buffer.length) {\n throw new IndexOutOfBoundsException();\n }\n this.len = len;\n }",
"class_method_signature": "ByteArrayBuffer.setLength(int len)",
"constructor": false,
"full_signature": "public void se... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_125 | {
"fields": [
{
"declarator": "parser",
"modifier": "private",
"original_string": "private RawFieldParser parser;",
"type": "RawFieldParser",
"var_name": "parser"
}
],
"file": "core/src/test/java/org/apache/james/mime4j/stream/RawFieldParserTest.java",
"identifier": "RawFie... | {
"body": "@Test\n public void testParsingInvalidSyntax1() throws Exception {\n String s = \"raw stuff;\\r\\n more stuff\";\n ByteSequence raw = ContentUtil.encode(s);\n\n try {\n parser.parseField(raw);\n org.junit.Assert.fail(\"MimeException should have been thrown\... | {
"fields": [
{
"declarator": "COLON = INIT_BITSET(':')",
"modifier": "static final",
"original_string": "static final BitSet COLON = INIT_BITSET(':');",
"type": "BitSet",
"var_name": "COLON"
},
{
"declarator": "EQUAL_OR_SEMICOLON ... | {
"body": "public RawField parseField(final ByteSequence raw) throws MimeException {\n if (raw == null) {\n return null;\n }\n ParserCursor cursor = new ParserCursor(0, raw.length());\n String name = parseToken(raw, cursor, COLON);\n if (cursor.atEnd()) {\n thr... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_92 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/codec/DecoderUtilTest.java",
"identifier": "DecoderUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEncodedTextMayStartWithAnEqualsSign() {\n Assert.assertEquals(\" foo\", DecoderUtil.decodeEncodedWords(\"=?utf-8?Q?=20foo?=\"));\n Assert.assertEquals(\"Re: How to place a view at the bottom with a 100% width\",\n DecoderUtil.decodeEncodedWords(\"=?ut... | {
"fields": [
{
"declarator": "PATTERN_ENCODED_WORD = Pattern.compile(\n \"=\\\\?(.+?)\\\\?(\\\\w)\\\\?(.*?)\\\\?=\", Pattern.DOTALL)",
"modifier": "private static final",
"original_string": "private static final Pattern PATTERN_ENCODED_WORD = Pattern.compile(\n \"=\\\\?(.+... | {
"body": "static String decodeEncodedWords(String body) {\n return decodeEncodedWords(body, DecodeMonitor.SILENT);\n }",
"class_method_signature": "DecoderUtil.decodeEncodedWords(String body)",
"constructor": false,
"full_signature": "static String decodeEncodedWords(String body)",
"identifier": "... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_84 | {
"fields": [],
"file": "core/src/test/java/org/apache/james/mime4j/codec/DecoderUtilTest.java",
"identifier": "DecoderUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDecodeQ() throws UnsupportedEncodingException {\n String s = DecoderUtil.decodeQ(\"=e1_=e2=09=E3_=E4_\", \"ISO8859-1\", DecodeMonitor.STRICT);\n Assert.assertEquals(\"\\u00e1 \\u00e2\\t\\u00e3 \\u00e4 \", s);\n }",
"class_method_signature": "DecoderUtilTest.tes... | {
"fields": [
{
"declarator": "PATTERN_ENCODED_WORD = Pattern.compile(\n \"=\\\\?(.+?)\\\\?(\\\\w)\\\\?(.*?)\\\\?=\", Pattern.DOTALL)",
"modifier": "private static final",
"original_string": "private static final Pattern PATTERN_ENCODED_WORD = Pattern.compile(\n \"=\\\\?(.+... | {
"body": "static String decodeQ(String encodedText, String charset, DecodeMonitor monitor)\n throws UnsupportedEncodingException {\n encodedText = replaceUnderscores(encodedText);\n\n byte[] decodedBytes = decodeQuotedPrintable(encodedText, monitor);\n return new String(decodedBytes, ... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
2945916_133 | {
"fields": [
{
"declarator": "parser",
"modifier": "private",
"original_string": "private RawFieldParser parser;",
"type": "RawFieldParser",
"var_name": "parser"
}
],
"file": "core/src/test/java/org/apache/james/mime4j/stream/RawFieldParserTest.java",
"identifier": "RawFie... | {
"body": "@Test\n public void testRawBodyParseEmptyParam() {\n ByteSequence buf = ContentUtil.encode(\n \"multipart/alternative;; boundary=\\\"boundary\\\"\");\n ParserCursor cursor = new ParserCursor(0, buf.length());\n RawBody body = parser.parseRawBody(buf, cursor);\n ... | {
"fields": [
{
"declarator": "COLON = INIT_BITSET(':')",
"modifier": "static final",
"original_string": "static final BitSet COLON = INIT_BITSET(':');",
"type": "BitSet",
"var_name": "COLON"
},
{
"declarator": "EQUAL_OR_SEMICOLON ... | {
"body": "public RawBody parseRawBody(final RawField field) {\n ByteSequence buf = field.getRaw();\n int pos = field.getDelimiterIdx() + 1;\n if (buf == null) {\n String body = field.getBody();\n if (body == null) {\n return new RawBody(\"\", null);\n ... | {
"created": null,
"fork": null,
"fork_count": 54,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2945916,
"size": 4932,
"stargazer_count": 29,
"stars": null,
"updates": null,
"url": "https://github.com/apache/james-mime4j"
} |
67114675_40 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test(expected = RuntimeException.class)\n public void testDropsDirectoryOnException() throws IOException {\n doThrow(new IOException(\"An expected IOException\"))\n .when(mMockUnpackers[0]).unpack(\n same(mContext),\n any(byte[].class));\n try {\n mBuilder.addUnpacker(mMockU... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "void prepare() {\n final File lockFilePath = new File(mContext.getFilesDir(), LOCK_FILE);\n Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, \"UnpackingJSBundleLoader.prepare\");\n try (FileLocker lock = FileLocker.lock(lockFilePath)) {\n prepareLocked();\n } catch (IOException ioe) {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_37 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testPrepareCallDoesNotRecreateDirIfNotNecessary() throws IOException {\n mBuilder.build().prepare();\n\n addUnpackers();\n mBuilder.build().prepare();\n for (UnpackingJSBundleLoader.Unpacker unpacker : mMockUnpackers) {\n verify(unpacker).setDestinationDirectory(mDesti... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "void prepare() {\n final File lockFilePath = new File(mContext.getFilesDir(), LOCK_FILE);\n Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, \"UnpackingJSBundleLoader.prepare\");\n try (FileLocker lock = FileLocker.lock(lockFilePath)) {\n prepareLocked();\n } catch (IOException ioe) {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_20 | {
"fields": [],
"file": "node_modules/react-native/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaOnlyArrayTest.java",
"identifier": "JavaOnlyArrayTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetType() throws Exception {\n JavaOnlyArray values = JavaOnlyArray.of(\n 1,\n 2f,\n 3.,\n \"4\",\n false,\n JavaOnlyArray.of(),\n JavaOnlyMap.of(),\n null);\n ReadableType[] expectedTypes = new ReadableType[] {\n R... | {
"fields": [
{
"declarator": "mBackingList",
"modifier": "private final",
"original_string": "private final List mBackingList;",
"type": "List",
"var_name": "mBackingList"
}
],
"file": "node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyAr... | {
"body": "@Override\n public ReadableType getType(int index) {\n Object object = mBackingList.get(index);\n\n if (object == null) {\n return ReadableType.Null;\n } else if (object instanceof Boolean) {\n return ReadableType.Boolean;\n } else if (object instanceof Double ||\n object inst... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_36 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testLoadScriptUnpacks() {\n mBuilder.build().loadScript(mCatalystInstanceImpl);\n assertTrue(new File(mDestinationPath, UnpackingJSBundleLoader.DOT_UNPACKED_FILE).exists());\n }",
"class_method_signature": "UnpackingJSBundleLoaderTest.testLoadScriptUnpacks()",
"constructor":... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "@Override\n public void loadScript(CatalystInstanceImpl instance) {\n prepare();\n instance.loadScriptFromOptimizedBundle(\n mDirectoryPath.getPath(),\n mSourceURL,\n mLoadFlags);\n }",
"class_method_signature": "UnpackingJSBundleLoader.loadScript(CatalystInstanceImpl instance)",
... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_1 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testGetWithoutHeaders() throws Exception {\n OkHttpClient httpClient = mock(OkHttpClient.class);\n when(httpClient.newCall(any(Request.class))).thenAnswer(new Answer<Object>() {\n @Override\n public Object answer(InvocationOnMock invocation) throws Throwable {\n ... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_31 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testGetSourceUrl() {\n assertEquals(URL, mBuilder.build().getSourceUrl());\n }",
"class_method_signature": "UnpackingJSBundleLoaderTest.testGetSourceUrl()",
"constructor": false,
"full_signature": "@Test public void testGetSourceUrl()",
"identifier": "testGetSourceUrl",
"... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "@Override\n public String getSourceUrl() {\n return mSourceURL;\n }",
"class_method_signature": "UnpackingJSBundleLoader.getSourceUrl()",
"constructor": false,
"full_signature": "@Override public String getSourceUrl()",
"identifier": "getSourceUrl",
"invocations": [],
"modifiers": "@Overri... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_27 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "CUSTOM_BUBBLING_EVENT_TYPES = \"cus... | {
"body": "@Test\n public void testMergeConstants() {\n ViewManager managerX = mock(ViewManager.class);\n when(managerX.getExportedCustomDirectEventTypeConstants()).thenReturn(MapBuilder.of(\n \"onTwirl\",\n MapBuilder.of(\n \"registrationName\",\n \"onTwirl\",\n ... | {
"fields": [
{
"declarator": "ACTION_DISMISSED = \"dismissed\"",
"modifier": "public static final",
"original_string": "public static final String ACTION_DISMISSED = \"dismissed\";",
"type": "String",
"var_name": "ACTION_DISMISSED"
},
{
"declarator": "ACTION_ITEM_SELEC... | {
"body": "public static Map<String, Object> getConstants() {\n HashMap<String, Object> constants = new HashMap<String, Object>();\n constants.put(\n \"UIView\",\n MapBuilder.of(\n \"ContentMode\",\n MapBuilder.of(\n \"ScaleAspectFit\",\n ImageVi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_6 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testMultipartPostRequestSimple() throws Exception {\n PowerMockito.mockStatic(RequestBodyUtil.class);\n when(RequestBodyUtil.getFileInputStream(any(ReactContext.class), any(String.class)))\n .thenReturn(mock(InputStream.class));\n when(RequestBodyUtil.create(any(MediaTy... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_7 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testMultipartPostRequestHeaders() throws Exception {\n PowerMockito.mockStatic(RequestBodyUtil.class);\n when(RequestBodyUtil.getFileInputStream(any(ReactContext.class), any(String.class)))\n .thenReturn(mock(InputStream.class));\n when(RequestBodyUtil.create(any(MediaT... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_26 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "CUSTOM_BUBBLING_EVENT_TYPES = \"cus... | {
"body": "@Test\n public void testNativeProps() {\n ViewManager mockViewManager = mock(ViewManager.class);\n List<ViewManager> viewManagers = Arrays.asList(mockViewManager);\n when(mockViewManager.getName()).thenReturn(\"SomeView\");\n when(mockViewManager.getNativeProps())\n .thenReturn(MapBuild... | {
"fields": [
{
"declarator": "ACTION_DISMISSED = \"dismissed\"",
"modifier": "public static final",
"original_string": "public static final String ACTION_DISMISSED = \"dismissed\";",
"type": "String",
"var_name": "ACTION_DISMISSED"
},
{
"declarator": "ACTION_ITEM_SELEC... | {
"body": "public static Map<String, Object> getConstants() {\n HashMap<String, Object> constants = new HashMap<String, Object>();\n constants.put(\n \"UIView\",\n MapBuilder.of(\n \"ContentMode\",\n MapBuilder.of(\n \"ScaleAspectFit\",\n ImageVi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_30 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "mReactContext",
"modifier": "... | {
"body": "@Test\n public void testRemoveSubviewsFromContainerWithID() {\n UIManagerModule uiManager = getUIManagerModule();\n ReactRootView rootView =\n new ReactRootView(RuntimeEnvironment.application.getApplicationContext());\n int rootTag = uiManager.addMeasuredRootView(rootView);\n\n final in... | {
"fields": [
{
"declarator": "ROOT_VIEW_TAG_INCREMENT = 10",
"modifier": "private static final",
"original_string": "private static final int ROOT_VIEW_TAG_INCREMENT = 10;",
"type": "int",
"var_name": "ROOT_VIEW_TAG_INCREMENT"
},
{
"declarator": "DEBUG = false",
... | {
"body": "@ReactMethod\n public void removeSubviewsFromContainerWithID(int containerTag) {\n mUIImplementation.removeSubviewsFromContainerWithID(containerTag);\n }",
"class_method_signature": "UIManagerModule.removeSubviewsFromContainerWithID(int containerTag)",
"constructor": false,
"full_signature": "@R... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_25 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "CUSTOM_BUBBLING_EVENT_TYPES = \"cus... | {
"body": "@Test\n public void testCustomViewConstants() {\n ViewManager mockViewManager = mock(ViewManager.class);\n List<ViewManager> viewManagers = Arrays.asList(mockViewManager);\n when(mockViewManager.getName()).thenReturn(\"RedPandaPhotoOfTheDayView\");\n when(mockViewManager.getExportedViewConstan... | {
"fields": [
{
"declarator": "ACTION_DISMISSED = \"dismissed\"",
"modifier": "public static final",
"original_string": "public static final String ACTION_DISMISSED = \"dismissed\";",
"type": "String",
"var_name": "ACTION_DISMISSED"
},
{
"declarator": "ACTION_ITEM_SELEC... | {
"body": "public static Map<String, Object> getConstants() {\n HashMap<String, Object> constants = new HashMap<String, Object>();\n constants.put(\n \"UIView\",\n MapBuilder.of(\n \"ContentMode\",\n MapBuilder.of(\n \"ScaleAspectFit\",\n ImageVi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_33 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testCreatesLockFile() throws IOException {\n mBuilder.build().prepare();\n assertTrue(new File(mFilesPath, UnpackingJSBundleLoader.LOCK_FILE).exists());\n }",
"class_method_signature": "UnpackingJSBundleLoaderTest.testCreatesLockFile()",
"constructor": false,
"full_signatu... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "void prepare() {\n final File lockFilePath = new File(mContext.getFilesDir(), LOCK_FILE);\n Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, \"UnpackingJSBundleLoader.prepare\");\n try (FileLocker lock = FileLocker.lock(lockFilePath)) {\n prepareLocked();\n } catch (IOException ioe) {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_8 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testMultipartPostRequestBody() throws Exception {\n InputStream inputStream = mock(InputStream.class);\n PowerMockito.mockStatic(RequestBodyUtil.class);\n when(RequestBodyUtil.getFileInputStream(any(ReactContext.class), any(String.class)))\n .thenReturn(inputStream);\n ... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_29 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "mReactContext",
"modifier": "... | {
"body": "@Test\n public void testReplaceExistingNonRootView() {\n UIManagerModule uiManager = getUIManagerModule();\n TestMoveDeleteHierarchy hierarchy = createMoveDeleteHierarchy(uiManager);\n\n int newViewTag = 1234;\n uiManager.createView(\n newViewTag,\n ReactViewManager.REACT_CLASS,\... | {
"fields": [
{
"declarator": "ROOT_VIEW_TAG_INCREMENT = 10",
"modifier": "private static final",
"original_string": "private static final int ROOT_VIEW_TAG_INCREMENT = 10;",
"type": "int",
"var_name": "ROOT_VIEW_TAG_INCREMENT"
},
{
"declarator": "DEBUG = false",
... | {
"body": "@ReactMethod\n public void replaceExistingNonRootView(int oldTag, int newTag) {\n mUIImplementation.replaceExistingNonRootView(oldTag, newTag);\n }",
"class_method_signature": "UIManagerModule.replaceExistingNonRootView(int oldTag, int newTag)",
"constructor": false,
"full_signature": "@ReactMet... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_4 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testSuccessfulPostRequest() throws Exception {\n OkHttpClient httpClient = mock(OkHttpClient.class);\n when(httpClient.newCall(any(Request.class))).thenAnswer(new Answer<Object>() {\n @Override\n public Object answer(InvocationOnMock invocation) throws Throwable... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_5 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testHeaders() throws Exception {\n OkHttpClient httpClient = mock(OkHttpClient.class);\n when(httpClient.newCall(any(Request.class))).thenAnswer(new Answer<Object>() {\n @Override\n public Object answer(InvocationOnMock invocation) throws Throwable {\n Call callM... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_28 | {
"fields": [],
"file": "node_modules/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/MatrixMathHelperTest.java",
"identifier": "MatrixMathHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDecomposing4x4MatrixToProduceAccurateZaxisAngles() {\n\n MatrixMathHelper.MatrixDecompositionContext ctx =\n new MatrixMathHelper.MatrixDecompositionContext();\n\n MatrixMathHelper.decomposeMatrix(\n new double[]{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1},\n ... | {
"fields": [
{
"declarator": "EPSILON = .00001d",
"modifier": "private static final",
"original_string": "private static final double EPSILON = .00001d;",
"type": "double",
"var_name": "EPSILON"
}
],
"file": "node_modules/react-native/ReactAndroid/src/main/java/com/facebook/... | {
"body": "public static void decomposeMatrix(double[] transformMatrix, MatrixDecompositionContext ctx) {\n Assertions.assertCondition(transformMatrix.length == 16);\n\n // output values\n final double[] perspective = ctx.perspective;\n final double[] quaternion = ctx.quaternion;\n final double[] scale... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_32 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testCreatesDotUnpackedFile() throws IOException {\n mBuilder.build().prepare();\n assertTrue(new File(mDestinationPath, UnpackingJSBundleLoader.DOT_UNPACKED_FILE).exists());\n }",
"class_method_signature": "UnpackingJSBundleLoaderTest.testCreatesDotUnpackedFile()",
"construc... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "void prepare() {\n final File lockFilePath = new File(mContext.getFilesDir(), LOCK_FILE);\n Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, \"UnpackingJSBundleLoader.prepare\");\n try (FileLocker lock = FileLocker.lock(lockFilePath)) {\n prepareLocked();\n } catch (IOException ioe) {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_24 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "CUSTOM_BUBBLING_EVENT_TYPES = \"cus... | {
"body": "@Test\n public void testCustomDirectEvents() {\n ViewManager mockViewManager = mock(ViewManager.class);\n List<ViewManager> viewManagers = Arrays.asList(mockViewManager);\n when(mockViewManager.getExportedCustomDirectEventTypeConstants())\n .thenReturn(MapBuilder.of(\"onTwirl\", TWIRL_DIRE... | {
"fields": [
{
"declarator": "ACTION_DISMISSED = \"dismissed\"",
"modifier": "public static final",
"original_string": "public static final String ACTION_DISMISSED = \"dismissed\";",
"type": "String",
"var_name": "ACTION_DISMISSED"
},
{
"declarator": "ACTION_ITEM_SELEC... | {
"body": "public static Map<String, Object> getConstants() {\n HashMap<String, Object> constants = new HashMap<String, Object>();\n constants.put(\n \"UIView\",\n MapBuilder.of(\n \"ContentMode\",\n MapBuilder.of(\n \"ScaleAspectFit\",\n ImageVi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_39 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testDirectoryReconstructionRemovesDir() throws IOException {\n mBuilder.build().prepare();\n final File aFile = new File(mDestinationPath, \"a_file\");\n aFile.createNewFile();\n\n when(mMockUnpackers[0].shouldReconstructDir(\n same(mContext),\n any(byte... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "void prepare() {\n final File lockFilePath = new File(mContext.getFilesDir(), LOCK_FILE);\n Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, \"UnpackingJSBundleLoader.prepare\");\n try (FileLocker lock = FileLocker.lock(lockFilePath)) {\n prepareLocked();\n } catch (IOException ioe) {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_2 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testFailGetWithInvalidHeadersStruct() throws Exception {\n RCTDeviceEventEmitter emitter = mock(RCTDeviceEventEmitter.class);\n ReactApplicationContext context = mock(ReactApplicationContext.class);\n when(context.getJSModule(any(ExecutorToken.class), any(Class.class))).thenRe... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_23 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "CUSTOM_BUBBLING_EVENT_TYPES = \"cus... | {
"body": "@Test\n public void testCustomBubblingEvents() {\n ViewManager mockViewManager = mock(ViewManager.class);\n List<ViewManager> viewManagers = Arrays.asList(mockViewManager);\n when(mockViewManager.getExportedCustomBubblingEventTypeConstants())\n .thenReturn(MapBuilder.of(\"onTwirl\", TWIRL_... | {
"fields": [
{
"declarator": "ACTION_DISMISSED = \"dismissed\"",
"modifier": "public static final",
"original_string": "public static final String ACTION_DISMISSED = \"dismissed\";",
"type": "String",
"var_name": "ACTION_DISMISSED"
},
{
"declarator": "ACTION_ITEM_SELEC... | {
"body": "public static Map<String, Object> getConstants() {\n HashMap<String, Object> constants = new HashMap<String, Object>();\n constants.put(\n \"UIView\",\n MapBuilder.of(\n \"ContentMode\",\n MapBuilder.of(\n \"ScaleAspectFit\",\n ImageVi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_35 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testSetLoadFlags() throws IOException {\n mBuilder.setLoadFlags(UnpackingJSBundleLoader.UNPACKED_JS_SOURCE)\n .build()\n .loadScript(mCatalystInstanceImpl);\n verify(mCatalystInstanceImpl).loadScriptFromOptimizedBundle(\n eq(mDestinationPath.getPath()),\n eq(U... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "@Override\n public void loadScript(CatalystInstanceImpl instance) {\n prepare();\n instance.loadScriptFromOptimizedBundle(\n mDirectoryPath.getPath(),\n mSourceURL,\n mLoadFlags);\n }",
"class_method_signature": "UnpackingJSBundleLoader.loadScript(CatalystInstanceImpl instance)",
... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_34 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testCallsAppropriateInstanceMethod() throws IOException {\n mBuilder.build().loadScript(mCatalystInstanceImpl);\n verify(mCatalystInstanceImpl).loadScriptFromOptimizedBundle(\n eq(mDestinationPath.getPath()),\n eq(URL),\n eq(0));\n verifyNoMoreInteractions(mCata... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "@Override\n public void loadScript(CatalystInstanceImpl instance) {\n prepare();\n instance.loadScriptFromOptimizedBundle(\n mDirectoryPath.getPath(),\n mSourceURL,\n mLoadFlags);\n }",
"class_method_signature": "UnpackingJSBundleLoader.loadScript(CatalystInstanceImpl instance)",
... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_22 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
},
{
"declarator": "CUSTOM_BUBBLING_EVENT_TYPES = \"cus... | {
"body": "@Test\n public void testNoCustomConstants() {\n List<ViewManager> viewManagers = Arrays.asList(mock(ViewManager.class));\n UIManagerModule uiManagerModule = new UIManagerModule(\n mReactContext,\n viewManagers,\n mUIImplementation);\n Map<String, Object> constants = uiManager... | {
"fields": [
{
"declarator": "ACTION_DISMISSED = \"dismissed\"",
"modifier": "public static final",
"original_string": "public static final String ACTION_DISMISSED = \"dismissed\";",
"type": "String",
"var_name": "ACTION_DISMISSED"
},
{
"declarator": "ACTION_ITEM_SELEC... | {
"body": "public static Map<String, Object> getConstants() {\n HashMap<String, Object> constants = new HashMap<String, Object>();\n constants.put(\n \"UIView\",\n MapBuilder.of(\n \"ContentMode\",\n MapBuilder.of(\n \"ScaleAspectFit\",\n ImageVi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_3 | {
"fields": [
{
"declarator": "rule = new PowerMockRule()",
"modifier": "@Rule\n public",
"original_string": "@Rule\n public PowerMockRule rule = new PowerMockRule();",
"type": "PowerMockRule",
"var_name": "rule"
}
],
"file": "node_modules/react-native/ReactAndroid/src/test... | {
"body": "@Test\n public void testFailPostWithoutContentType() throws Exception {\n RCTDeviceEventEmitter emitter = mock(RCTDeviceEventEmitter.class);\n ReactApplicationContext context = mock(ReactApplicationContext.class);\n when(context.getJSModule(any(ExecutorToken.class), any(Class.class))).thenReturn(... | {
"fields": [
{
"declarator": "CONTENT_ENCODING_HEADER_NAME = \"content-encoding\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_ENCODING_HEADER_NAME = \"content-encoding\";",
"type": "String",
"var_name": "CONTENT_ENCODING_HEADER_NAME"... | {
"body": "@ReactMethod\n /**\n * @param timeout value of 0 results in no timeout\n */\n public void sendRequest(\n final ExecutorToken executorToken,\n String method,\n String url,\n final int requestId,\n ReadableArray headers,\n ReadableMap data,\n final String responseType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
67114675_38 | {
"fields": [
{
"declarator": "URL = \"http://this.is.an.url\"",
"modifier": "private static final",
"original_string": "private static final String URL = \"http://this.is.an.url\";",
"type": "String",
"var_name": "URL"
},
{
"declarator": "MOCK_UNPACKERS_NUM = 2",
... | {
"body": "@Test\n public void testShouldReconstructDirForcesRecreation() throws IOException {\n mBuilder.build().prepare();\n\n addUnpackers();\n when(mMockUnpackers[0].shouldReconstructDir(\n same(mContext),\n any(byte[].class)))\n .thenReturn(true);\n mBuilder.build().prepare(... | {
"fields": [
{
"declarator": "UNPACKED_JS_SOURCE = (1 << 0)",
"modifier": "public static final",
"original_string": "public static final int UNPACKED_JS_SOURCE = (1 << 0);",
"type": "int",
"var_name": "UNPACKED_JS_SOURCE"
},
{
"declarator": "UNPACKED_BC_CACHE = (1 << 1... | {
"body": "void prepare() {\n final File lockFilePath = new File(mContext.getFilesDir(), LOCK_FILE);\n Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, \"UnpackingJSBundleLoader.prepare\");\n try (FileLocker lock = FileLocker.lock(lockFilePath)) {\n prepareLocked();\n } catch (IOException ioe) {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 67114675,
"size": 52114,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/xiaosefengyun/Geek-React-Native"
} |
76093141_7 | {
"fields": [
{
"declarator": "contextRunner = new ApplicationContextRunner()\n .withConfiguration(AutoConfigurations.of(GkDatasourceAutoConfiguration.class))",
"modifier": "private final",
"original_string": "private final ApplicationContextRunner contextRunner = new ApplicationConte... | {
"body": "@Test\n public void ds0() {\n this.contextRunner.withUserConfiguration(GkDatasourceAutoConfiguration.class).run(context -> {\n assertThat(context).doesNotHaveBean(\"ds0\");\n });\n }",
"class_method_signature": "GkDatasourceAutoConfigurationTest.ds0()",
"constructor": fal... | {
"fields": [],
"file": "goodskill-spring-boot-starter/src/main/java/com/goodskill/autoconfigure/datasource/GkDatasourceAutoConfiguration.java",
"identifier": "GkDatasourceAutoConfiguration",
"interfaces": "",
"methods": [
{
"class_method_signature": "GkDatasourceAutoConfiguration.ds0(GkDatasourcePr... | {
"body": "@Bean\n public HikariDataSource ds0(GkDatasourceProperties properties) {\n HikariDataSource dataSource = new HikariDataSource();\n dataSource.setUsername(properties.getDs0().getUsername());\n dataSource.setDriverClassName(properties.getDs0().getDriverClassName());\n dataSourc... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_6 | {
"fields": [
{
"declarator": "alipayRunner",
"modifier": "@Autowired\n private",
"original_string": "@Autowired\n private AlipayRunner alipayRunner;",
"type": "AlipayRunner",
"var_name": "alipayRunner"
}
],
"file": "goodsKill-spring-boot-provider/goodsKill-service/src/... | {
"body": "@Test\n void tradePrecreate() {\n assertTrue(StringUtils.isNotBlank(alipayRunner.tradePrecreate(1001L)));\n }",
"class_method_signature": "AlipayRunnerTest.tradePrecreate()",
"constructor": false,
"full_signature": "@Test void tradePrecreate()",
"identifier": "tradePrecreate",
"invoc... | {
"fields": [
{
"declarator": "goodsMapper",
"modifier": "@Autowired\n private",
"original_string": "@Autowired\n private GoodsMapper goodsMapper;",
"type": "GoodsMapper",
"var_name": "goodsMapper"
},
{
"declarator": "redisService",
"modifier": "@Autowired\n... | {
"body": "public String tradePrecreate(long seckillId) {\n Seckill seckill = redisService.getSeckill(seckillId);\n Goods goods = goodsMapper.selectById(seckill.getGoodsId());\n // 需保证商户系统端不能重复,建议通过数据库sequence生成,\n String outTradeNo = \"tradeprecreate\" + System.currentTimeMillis()\n ... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_1 | {
"fields": [
{
"declarator": "sekcillKafkaConsumer",
"modifier": "@InjectMocks\n private",
"original_string": "@InjectMocks\n private SekcillKafkaConsumer sekcillKafkaConsumer;",
"type": "SekcillKafkaConsumer",
"var_name": "sekcillKafkaConsumer"
},
{
"declarator"... | {
"body": "@Test\n public void onMessage() {\n sekcillKafkaConsumer.onMessage(new ConsumerRecord(\"1\", 1, 0L, \"key\", \"1\"));\n verify(seckillExecutor, only()).dealSeckill(anyLong(),any(),any());\n }",
"class_method_signature": "SekcillKafkaConsumerTest.onMessage()",
"constructor": false,
... | {
"fields": [
{
"declarator": "jmsTemplate",
"modifier": "@Autowired\n private",
"original_string": "@Autowired\n private JmsTemplate jmsTemplate;",
"type": "JmsTemplate",
"var_name": "jmsTemplate"
},
{
"declarator": "redisService",
"modifier": "@Autowired\n... | {
"body": "@KafkaListener(topics = \"goodsKill-kafka\")\n public void onMessage(Object data) {\n if (data instanceof ConsumerRecord) {\n ConsumerRecord record = (ConsumerRecord) data;\n String userPhone = record.key().toString();\n long seckillId = Long.parseLong((String) re... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_0 | {
"fields": [
{
"declarator": "seckillActiveConsumer",
"modifier": "@InjectMocks\n private",
"original_string": "@InjectMocks\n private SeckillActiveConsumer seckillActiveConsumer;",
"type": "SeckillActiveConsumer",
"var_name": "seckillActiveConsumer"
},
{
"declar... | {
"body": "@Test\n public void onMessage() throws JMSException {\n Message message = mock(Message.class);\n Destination destination = mock(Destination.class);\n when(message.getJMSReplyTo()).thenReturn(destination);\n seckillActiveConsumer.onMessage(message);\n verify(seckillExec... | {
"fields": [
{
"declarator": "jmsTemplate",
"modifier": "@Autowired\n @Qualifier(\"jmsTemplate\")\n private",
"original_string": "@Autowired\n @Qualifier(\"jmsTemplate\")\n private JmsTemplate jmsTemplate;",
"type": "JmsTemplate",
"var_name": "jmsTemplate"
},
{
... | {
"body": "@Override\n public void onMessage(Message message) {\n log.debug(\"收到消息{}\", message.toString());\n long seckillId = 0;\n String userPhone = null;\n String note = null;\n try {\n seckillId = message.getLongProperty(\"seckillId\");\n userPhone = me... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_3 | {
"fields": [
{
"declarator": "sekcillKafkaConsumer",
"modifier": "@InjectMocks\n private",
"original_string": "@InjectMocks\n private SekcillKafkaConsumer sekcillKafkaConsumer;",
"type": "SekcillKafkaConsumer",
"var_name": "sekcillKafkaConsumer"
},
{
"declarator"... | {
"body": "@Test\n public void processMessage1() {\n ValueOperations valueOperations = mock(ValueOperations.class);\n Seckill value = new Seckill();\n value.setNumber(1);\n when(redisService.getSeckill(anyLong())).thenReturn(value);\n when(redisTemplate.opsForValue()).thenReturn(... | {
"fields": [
{
"declarator": "jmsTemplate",
"modifier": "@Autowired\n private",
"original_string": "@Autowired\n private JmsTemplate jmsTemplate;",
"type": "JmsTemplate",
"var_name": "jmsTemplate"
},
{
"declarator": "redisService",
"modifier": "@Autowired\n... | {
"body": "@JmsListener(destination = \"GOODSKILL_SENCE8\")\n public void processMessage(Message message) {\n log.debug(\"收到消息{}\", message);\n long seckillId = 0;\n String userPhone = null;\n String note = null;\n try {\n seckillId = message.getLongProperty(\"seckillI... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_2 | {
"fields": [
{
"declarator": "sekcillKafkaConsumer",
"modifier": "@InjectMocks\n private",
"original_string": "@InjectMocks\n private SekcillKafkaConsumer sekcillKafkaConsumer;",
"type": "SekcillKafkaConsumer",
"var_name": "sekcillKafkaConsumer"
},
{
"declarator"... | {
"body": "@Test\n public void processMessage() {\n ValueOperations valueOperations = mock(ValueOperations.class);\n Seckill value = new Seckill();\n value.setNumber(1);\n when(redisService.getSeckill(anyLong())).thenReturn(value);\n when(redisTemplate.opsForValue()).thenReturn(v... | {
"fields": [
{
"declarator": "jmsTemplate",
"modifier": "@Autowired\n private",
"original_string": "@Autowired\n private JmsTemplate jmsTemplate;",
"type": "JmsTemplate",
"var_name": "jmsTemplate"
},
{
"declarator": "redisService",
"modifier": "@Autowired\n... | {
"body": "@JmsListener(destination = \"GOODSKILL_SENCE8\")\n public void processMessage(Message message) {\n log.debug(\"收到消息{}\", message);\n long seckillId = 0;\n String userPhone = null;\n String note = null;\n try {\n seckillId = message.getLongProperty(\"seckillI... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_5 | {
"fields": [
{
"declarator": "zookeeperLockUtil",
"modifier": "@Autowired\n private",
"original_string": "@Autowired\n private ZookeeperLockUtil zookeeperLockUtil;",
"type": "ZookeeperLockUtil",
"var_name": "zookeeperLockUtil"
}
],
"file": "goodsKill-spring-boot-provid... | {
"body": "@Test\n void lock() throws InterruptedException {\n ExecutorService executorService = Executors.newFixedThreadPool(10);\n int count = 200;\n CountDownLatch countDownLatch = new CountDownLatch(count);\n for (int i = 0; i < count/2; i++) {\n executorService.execute((... | {
"fields": [
{
"declarator": "client",
"modifier": "private",
"original_string": "private CuratorFramework client;",
"type": "CuratorFramework",
"var_name": "client"
},
{
"declarator": "zookeeperIp",
"modifier": "@Value(\"${zookeeper_ip}\")\n private",
"... | {
"body": "public boolean lock(long seckillId) {\n try {\n Map<Long, InterProcessMutex> map;\n String rootLockPath = \"/goodskill\";\n Map<Long, InterProcessMutex> processMutexMap = threadLock.get();\n if (processMutexMap.get(seckillId) == null) {\n pr... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_8 | {
"fields": [
{
"declarator": "contextRunner = new ApplicationContextRunner()\n .withConfiguration(AutoConfigurations.of(GkDatasourceAutoConfiguration.class))",
"modifier": "private final",
"original_string": "private final ApplicationContextRunner contextRunner = new ApplicationConte... | {
"body": "@Test\n public void ds1() {\n this.contextRunner.withUserConfiguration(GkDatasourceAutoConfiguration.class).run(context -> {\n assertThat(context).doesNotHaveBean(\"ds1\");\n });\n }",
"class_method_signature": "GkDatasourceAutoConfigurationTest.ds1()",
"constructor": fal... | {
"fields": [],
"file": "goodskill-spring-boot-starter/src/main/java/com/goodskill/autoconfigure/datasource/GkDatasourceAutoConfiguration.java",
"identifier": "GkDatasourceAutoConfiguration",
"interfaces": "",
"methods": [
{
"class_method_signature": "GkDatasourceAutoConfiguration.ds0(GkDatasourcePr... | {
"body": "@Bean\n public HikariDataSource ds1(GkDatasourceProperties properties) {\n HikariDataSource dataSource = new HikariDataSource();\n dataSource.setUsername(properties.getDs1().getUsername());\n dataSource.setDriverClassName(properties.getDs1().getDriverClassName());\n dataSourc... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
76093141_4 | {
"fields": [
{
"declarator": "activeMqMessageSender",
"modifier": "@InjectMocks\n private",
"original_string": "@InjectMocks\n private ActiveMqMessageSender activeMqMessageSender;",
"type": "ActiveMqMessageSender",
"var_name": "activeMqMessageSender"
},
{
"declar... | {
"body": "@Test\n public void sendSeckillSuccessTopic() {\n long seckillId = 1L;\n activeMqMessageSender.sendSeckillSuccessTopic(seckillId,\"test\");\n verify(jmsTopicTemplate, only()).send(any());\n verify(seckillService, only()).getSuccessKillCount(seckillId);\n }",
"class_metho... | {
"fields": [
{
"declarator": "jmsTopicTemplate",
"modifier": "@Autowired\n @Qualifier(\"jmsTopicTemplate\")\n private",
"original_string": "@Autowired\n @Qualifier(\"jmsTopicTemplate\")\n private JmsTemplate jmsTopicTemplate;",
"type": "JmsTemplate",
"var_name": "jmsTopi... | {
"body": "public void sendSeckillSuccessTopic(long seckillId, String note) {\n seckillService.getSuccessKillCount(seckillId);\n long finalSeckillId = seckillId;\n jmsTopicTemplate.send(session -> {\n Message message = session.createMessage();\n message.setLongProperty(\"sec... | {
"created": "12/10/2016 5:40:34 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 76093141,
"size": null,
"stargazer_count": null,
"stars": 542,
"updates": "2020-01-27T01:19:38+00:00",
"url": "https://github.com/techa03/goodsKi... |
22045363_172 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private SpotViewMetadata metadata;",
"type": "SpotViewMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetFileName() throws Exception {\n assertEquals(\"metadata.xml\", metadata.getFileName()); ;\n }",
"class_method_signature": "SpotViewMetadataTest.testGetFileName()",
"constructor": false,
"full_signature": "@Test public void testGetFileName()",
"identifier": "t... | {
"fields": [],
"file": "s2tbx-spot-reader/src/main/java/org/esa/s2tbx/dataio/spot/dimap/SpotViewMetadata.java",
"identifier": "SpotViewMetadata",
"interfaces": "",
"methods": [
{
"class_method_signature": "SpotViewMetadata.SpotViewMetadata(String name)",
"constructor": true,
"full_signa... | {
"body": "@Override\n public String getFileName() {\n return SpotConstants.SPOTVIEW_METADATA_FILE;\n }",
"class_method_signature": "SpotViewMetadata.getFileName()",
"constructor": false,
"full_signature": "@Override public String getFileName()",
"identifier": "getFileName",
"invocations": [],
... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_4 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private Kompsat2Metadata metadata;",
"type": "Kompsat2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_kompsat\" + File.separator",
"modifier": "private",... | {
"body": "@Test\n public void testGetProductName() throws Exception {\n assertEquals(\"KO2_OPER_MSC_MUL_1G_20110920T013201_20110920T013203_027459_1008_0892_0001\", metadata.getProductName());\n }",
"class_method_signature": "Kompsat2MetadataTest.testGetProductName()",
"constructor": false,
"full_s... | {
"fields": [
{
"declarator": "component",
"modifier": "private",
"original_string": "private Kompsat2Component component;",
"type": "Kompsat2Component",
"var_name": "component"
}
],
"file": "s2tbx-kompsat2-reader/src/main/java/org/esa/s2tbx/dataio/kompsat2/metadata/Kompsat2M... | {
"body": "@Override\n public String getProductName() {\n String value = null;\n try {\n value = getAttributeValue(Kompsat2Constants.PATH_ID, Kompsat2Constants.PRODUCT_GENERIC_NAME);\n } catch (Exception e) {\n warn(MISSING_ELEMENT_WARNING, Kompsat2Constants.PATH_ID);\n ... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_125 | {
"fields": [
{
"declarator": "readerPlugIn",
"modifier": "private final",
"original_string": "private final AbstractDriverProductReaderPlugIn readerPlugIn;",
"type": "AbstractDriverProductReaderPlugIn",
"var_name": "readerPlugIn"
},
{
"declarator": "extensions",
... | {
"body": "@Test\n public final void testFormatNames() {\n if (GDALInstallInfo.INSTANCE.isPresent()) {\n String[] formatNames = this.readerPlugIn.getFormatNames();\n assertNotNull(formatNames);\n\n assertEquals(1, formatNames.length);\n\n String formatName = getFo... | {
"fields": [
{
"declarator": "driverName",
"modifier": "private final",
"original_string": "private final String driverName;",
"type": "String",
"var_name": "driverName"
},
{
"declarator": "driverDisplayName",
"modifier": "private final",
"original_string":... | {
"body": "@Override\n public final String[] getFormatNames() {\n return new String[] { this.pluginFormatName };\n }",
"class_method_signature": "AbstractDriverProductReaderPlugIn.getFormatNames()",
"constructor": false,
"full_signature": "@Override public final String[] getFormatNames()",
"ident... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_133 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private WorldView2ESAMetadata metadata;",
"type": "WorldView2ESAMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_worldView\" + File.separator",
"modifier"... | {
"body": "@Test\n public void testGetProductStartTime() throws Exception {\n SimpleDateFormat sdf = new SimpleDateFormat(WorldView2ESAConstants.WORLDVIEW2_UTC_DATE_FORMAT);\n sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date time = sdf.parse(\"2011-05-25T09:53:46\");\n assertEqual... | {
"fields": [],
"file": "s2tbx-worldview2esa-reader/src/main/java/org/esa/s2tbx/dataio/worldview2esa/metadata/WorldView2ESAMetadata.java",
"identifier": "WorldView2ESAMetadata",
"interfaces": "",
"methods": [
{
"class_method_signature": "WorldView2ESAMetadata.WorldView2ESAMetadata(String name)",
... | {
"body": "@Override\n public ProductData.UTC getProductStartTime() {\n ProductData.UTC date = null;\n String value = null;\n try {\n value = getAttributeValue(WorldView2ESAConstants.PATH_START_TIME, null);\n } catch (Exception e) {\n warn(MISSING_ELEMENT_WARNING, ... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_164 | {
"fields": [
{
"declarator": "plugIn",
"modifier": "private",
"original_string": "private JP2ProductWriterPlugIn plugIn;",
"type": "JP2ProductWriterPlugIn",
"var_name": "plugIn"
}
],
"file": "s2tbx-jp2-writer/src/test/java/org/esa/s2tbx/dataio/jp2/JP2ProductWriterPluginTest.... | {
"body": "@Test\n public void testOutputTypes() {\n final Class[] classes = plugIn.getOutputTypes();\n\n assertNotNull(classes);\n assertEquals(2, classes.length);\n final List<Class> list = Arrays.asList(classes);\n assertEquals(true, list.contains(File.class));\n assert... | {
"fields": [],
"file": "s2tbx-jp2-writer/src/main/java/org/esa/s2tbx/dataio/jp2/JP2ProductWriterPlugIn.java",
"identifier": "JP2ProductWriterPlugIn",
"interfaces": "implements ProductWriterPlugIn",
"methods": [
{
"class_method_signature": "JP2ProductWriterPlugIn.getEncodeQualification(Product produ... | {
"body": "@Override\n public Class[] getOutputTypes() {\n return JP2Constants.OUTPUT_TYPES;\n }",
"class_method_signature": "JP2ProductWriterPlugIn.getOutputTypes()",
"constructor": false,
"full_signature": "@Override public Class[] getOutputTypes()",
"identifier": "getOutputTypes",
"invocatio... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_31 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private AlosPRIMetadata metadata;",
"type": "AlosPRIMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_alos\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetRasterFileNames() throws Exception {\n ArrayList<String> fileNames = new ArrayList<>();\n for (ImageMetadata imageMetadata : metadata.getImageMetadataList()) {\n for (String file : imageMetadata.getRasterFileNames()) {\n fileNames.add(fi... | {
"fields": [
{
"declarator": "imageDirectoryPath",
"modifier": "private",
"original_string": "private String imageDirectoryPath;",
"type": "String",
"var_name": "imageDirectoryPath"
},
{
"declarator": "upperLeftPointOrigin",
"modifier": "private",
"original... | {
"body": "@Override\n public String[] getRasterFileNames() {\n return new String[0];\n }",
"class_method_signature": "AlosPRIMetadata.getRasterFileNames()",
"constructor": false,
"full_signature": "@Override public String[] getRasterFileNames()",
"identifier": "getRasterFileNames",
"invocation... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_236 | {
"fields": [
{
"declarator": "plugIn",
"modifier": "private",
"original_string": "private SpotTake5ProductReaderPlugin plugIn;",
"type": "SpotTake5ProductReaderPlugin",
"var_name": "plugIn"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifi... | {
"body": "@Test\n public void testFileExtensions() {\n final String[] fileExtensions = plugIn.getDefaultFileExtensions();\n assertNotNull(fileExtensions);\n final List<String> extensionList = Arrays.asList(fileExtensions);\n assertEquals(4, extensionList.size());\n assertEquals(... | {
"fields": [
{
"declarator": "COLOR_PALETTE_FILE_NAME = \"Spot_color_palette.cpd\"",
"modifier": "private static final",
"original_string": "private static final String COLOR_PALETTE_FILE_NAME = \"Spot_color_palette.cpd\";",
"type": "String",
"var_name": "COLOR_PALETTE_FILE_NAME"
... | {
"body": "@Override\n public String[] getDefaultFileExtensions() {\n return SpotConstants.SPOT4_TAKE5_DEFAULT_EXTENSION;\n }",
"class_method_signature": "SpotTake5ProductReaderPlugin.getDefaultFileExtensions()",
"constructor": false,
"full_signature": "@Override public String[] getDefaultFileExten... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_261 | {
"fields": [
{
"declarator": "plugin",
"modifier": "private",
"original_string": "private AlosAV2ProductReaderPlugin plugin;",
"type": "AlosAV2ProductReaderPlugin",
"var_name": "plugin"
},
{
"declarator": "productFolder = \"_alos\"+ File.separator",
"modifier": "... | {
"body": "@Test\n public void testInputTypes() {\n final Class[] classes = plugin.getInputTypes();\n assertNotNull(classes);\n assertEquals(2, classes.length);\n final List<Class> list = Arrays.asList(classes);\n assertEquals(true, list.contains(File.class));\n assertEqua... | {
"fields": [
{
"declarator": "COLOR_PALETTE_FILE_NAME = \"AlosAV2_color_palette.cpd\"",
"modifier": "private static final",
"original_string": "private static final String COLOR_PALETTE_FILE_NAME = \"AlosAV2_color_palette.cpd\";",
"type": "String",
"var_name": "COLOR_PALETTE_FILE_NA... | {
"body": "@Override\n public Class[] getInputTypes() {\n return AlosAV2Constants.READER_INPUT_TYPES;\n }",
"class_method_signature": "AlosAV2ProductReaderPlugin.getInputTypes()",
"constructor": false,
"full_signature": "@Override public Class[] getInputTypes()",
"identifier": "getInputTypes",
... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_66 | {
"fields": [
{
"declarator": "plugIn",
"modifier": "private",
"original_string": "private DeimosProductReaderPlugin plugIn;",
"type": "DeimosProductReaderPlugin",
"var_name": "plugIn"
},
{
"declarator": "productsFolder = \"_deimos\" + File.separator",
"modifier":... | {
"body": "@Test\n public void testFormatNames() {\n final String[] formatNames = plugIn.getFormatNames();\n assertNotNull(formatNames);\n assertEquals(1, formatNames.length);\n assertEquals(\"DEIMOSDimap\", formatNames[0]);\n }",
"class_method_signature": "DeimosProductReaderPlugi... | {
"fields": [
{
"declarator": "COLOR_PALETTE_FILE_NAME = \"Deimos_color_palette.cpd\"",
"modifier": "private static final",
"original_string": "private static final String COLOR_PALETTE_FILE_NAME = \"Deimos_color_palette.cpd\";",
"type": "String",
"var_name": "COLOR_PALETTE_FILE_NAME... | {
"body": "@Override\n public String[] getFormatNames() {\n return DeimosConstants.DIMAP_FORMAT_NAMES;\n }",
"class_method_signature": "DeimosProductReaderPlugin.getFormatNames()",
"constructor": false,
"full_signature": "@Override public String[] getFormatNames()",
"identifier": "getFormatNames"... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_89 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private RapidEyeMetadata metadata;",
"type": "RapidEyeMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_rapideye\" + File.separator",
"modifier": "private"... | {
"body": "@Test\n public void testSetFileName() throws Exception {\n metadata.setFileName(\"testname\");\n assertEquals(\"testname\", metadata.getFileName());\n }",
"class_method_signature": "RapidEyeMetadataTest.testSetFileName()",
"constructor": false,
"full_signature": "@Test public void... | {
"fields": [
{
"declarator": "scaleFactors",
"modifier": "private",
"original_string": "private float[] scaleFactors;",
"type": "float[]",
"var_name": "scaleFactors"
}
],
"file": "s2tbx-rapideye-reader/src/main/java/org/esa/s2tbx/dataio/rapideye/metadata/RapidEyeMetadata.jav... | {
"body": "@Override\n public String getFileName() { return name; }",
"class_method_signature": "RapidEyeMetadata.getFileName()",
"constructor": false,
"full_signature": "@Override public String getFileName()",
"identifier": "getFileName",
"invocations": [],
"modifiers": "@Override public",
"paramete... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_148 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private WorldView2Metadata metadata;",
"type": "WorldView2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_worldView\" + File.separator",
"modifier": "pri... | {
"body": "@Test\n public void testGetProductStartTime() throws Exception {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'\");\n LocalDateTime newDate = LocalDateTime.parse(\"2017-05-02T09:13:54.600000Z\", dateTimeFormatter);\n assertEqual... | {
"fields": [
{
"declarator": "EXCLUSION_STRING = \"README\"",
"modifier": "public static final",
"original_string": "public static final String EXCLUSION_STRING = \"README\";",
"type": "String",
"var_name": "EXCLUSION_STRING"
},
{
"declarator": "subProducts",
"mo... | {
"body": "@Override\n public ProductData.UTC getProductStartTime() {\n ProductData.UTC date = null;\n String value = null;\n try{\n value = getAttributeValue(WorldView2Constants.PATH_START_TIME, null);\n } catch (Exception e) {\n warn(MISSING_ELEMENT_WARNING, Worl... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_70 | {
"fields": [
{
"declarator": "specPixelsContainer",
"modifier": "private",
"original_string": "private SpectrumClassReferencePixelsContainer specPixelsContainer;",
"type": "SpectrumClassReferencePixelsContainer",
"var_name": "specPixelsContainer"
},
{
"declarator": "sp... | {
"body": "@Test\n public void testSpectrumComputing() throws Exception {\n\n ProductReaderPlugIn productReaderPlugIn = buildDimapProductReaderPlugIn();\n\n File currentProductFile = this.SpectralAngleMapperTestsFolderPath.resolve(\"S2A_R093_T35UMP_20170628T092026.dim\").toFile();\n Product so... | {
"fields": [
{
"declarator": "spectrumClassReferencePixels",
"modifier": "private final",
"original_string": "private final SpectrumClassReferencePixels spectrumClassReferencePixels;",
"type": "SpectrumClassReferencePixels",
"var_name": "spectrumClassReferencePixels"
},
{
... | {
"body": "public SpectrumComputing(SpectrumClassReferencePixels spectrumPixels, Product sourceProduct, String[] sourceBands, SpectrumContainer spectrumContainer){\n this.spectrumClassReferencePixels = spectrumPixels;\n this.spectrumContainer = spectrumContainer;\n this.sourceProduct = sourceProd... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_220 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private SpotDimapMetadata metadata;",
"type": "SpotDimapMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetCRSCode() throws Exception {\n assertEquals(\"epsg:4326\", metadata.getCRSCode());\n }",
"class_method_signature": "SpotDimapMetadataTest.testGetCRSCode()",
"constructor": false,
"full_signature": "@Test public void testGetCRSCode()",
"identifier": "testGetCR... | {
"fields": [
{
"declarator": "wavelengths",
"modifier": "private",
"original_string": "private float[] wavelengths;",
"type": "float[]",
"var_name": "wavelengths"
},
{
"declarator": "bandwidths",
"modifier": "private",
"original_string": "private float[] ba... | {
"body": "public String getCRSCode() {\n if (rootElement == null) {\n return null;\n }\n String name = null;\n MetadataElement currentElement;\n if (((currentElement = rootElement.getElement(SpotConstants.TAG_COORDINATE_REFERENCE_SYSTEM)) != null) &&\n ((c... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_27 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private AlosPRIMetadata metadata;",
"type": "AlosPRIMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_alos\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testMaxInsertPointY() throws Exception {\n assertEquals(9051595, metadata.getMaxInsertPointY(), 0.0);\n }",
"class_method_signature": "AlosPRIMetadataTest.testMaxInsertPointY()",
"constructor": false,
"full_signature": "@Test public void testMaxInsertPointY()",
"ide... | {
"fields": [
{
"declarator": "imageDirectoryPath",
"modifier": "private",
"original_string": "private String imageDirectoryPath;",
"type": "String",
"var_name": "imageDirectoryPath"
},
{
"declarator": "upperLeftPointOrigin",
"modifier": "private",
"original... | {
"body": "public float getMaxInsertPointY() {\n return componentMetadata.stream()\n .filter(metadata -> metadata instanceof ImageMetadata)\n .map(metadata -> (ImageMetadata) metadata)\n .map(ImageMetadata::getInsertPointY)\n .collect(Collectors.maxBy... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_109 | {
"fields": [],
"file": "s2tbx-forest-cover-change/src/test/java/org/esa/s2tbx/fcc/trimming/UnionMasksTilesComputingTest.java",
"identifier": "UnionMasksTilesComputingTest",
"interfaces": "",
"superclass": "extends AbstractOpTest"
} | {
"body": "@Test\n public void testTrimmingRegionTilesComputing() throws Exception {\n Dimension tileSize = JAI.getDefaultTileSize();\n int threadCount = Runtime.getRuntime().availableProcessors() - 1;\n ExecutorService threadPool = Executors.newCachedThreadPool();\n\n ProductReaderPlug... | {
"fields": [
{
"declarator": "logger = Logger.getLogger(UnionMasksTilesComputing.class.getName())",
"modifier": "private static final",
"original_string": "private static final Logger logger = Logger.getLogger(UnionMasksTilesComputing.class.getName());",
"type": "Logger",
"var_name"... | {
"body": "public ProductData runTilesInParallel(int threadCount, Executor threadPool) throws Exception {\n super.executeInParallel(threadCount, threadPool);\n\n return this.productData;\n }",
"class_method_signature": "UnionMasksTilesComputing.runTilesInParallel(int threadCount, Executor threadPoo... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_191 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private SpotViewMetadata metadata;",
"type": "SpotViewMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetGeolayerHeight() throws Exception {\n assertEquals(3000, metadata.getGeolayerHeight());\n }",
"class_method_signature": "SpotViewMetadataTest.testGetGeolayerHeight()",
"constructor": false,
"full_signature": "@Test public void testGetGeolayerHeight()",
"ident... | {
"fields": [],
"file": "s2tbx-spot-reader/src/main/java/org/esa/s2tbx/dataio/spot/dimap/SpotViewMetadata.java",
"identifier": "SpotViewMetadata",
"interfaces": "",
"methods": [
{
"class_method_signature": "SpotViewMetadata.SpotViewMetadata(String name)",
"constructor": true,
"full_signa... | {
"body": "public int getGeolayerHeight() {\n int height = 0;\n MetadataElement currentElement;\n if ((currentElement = rootElement.getElement(SpotConstants.TAG_GEOLAYER)) != null) {\n height = Integer.parseInt(currentElement.getAttributeString(SpotConstants.TAG_ROWS));\n }\n ... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_8 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private Kompsat2Metadata metadata;",
"type": "Kompsat2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_kompsat\" + File.separator",
"modifier": "private",... | {
"body": "@Test\n public void testGetRasterHeight() throws Exception {\n assertEquals(0, metadata.getRasterHeight());\n }",
"class_method_signature": "Kompsat2MetadataTest.testGetRasterHeight()",
"constructor": false,
"full_signature": "@Test public void testGetRasterHeight()",
"identifier": "te... | {
"fields": [
{
"declarator": "component",
"modifier": "private",
"original_string": "private Kompsat2Component component;",
"type": "Kompsat2Component",
"var_name": "component"
}
],
"file": "s2tbx-kompsat2-reader/src/main/java/org/esa/s2tbx/dataio/kompsat2/metadata/Kompsat2M... | {
"body": "@Override\n public int getRasterHeight() {\n return 0;\n }",
"class_method_signature": "Kompsat2Metadata.getRasterHeight()",
"constructor": false,
"full_signature": "@Override public int getRasterHeight()",
"identifier": "getRasterHeight",
"invocations": [],
"modifiers": "@Override... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_50 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private DeimosMetadata metadata;",
"type": "DeimosMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_deimos\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetProductDescription() throws Exception {\n assertEquals(\"DE004502p_023150_046799_042858_045602\", metadata.getProductDescription());\n }",
"class_method_signature": "DeimosMetadataTest.testGetProductDescription()",
"constructor": false,
"full_signature": "@Test... | {
"fields": [
{
"declarator": "bandGains",
"modifier": "private",
"original_string": "private float[] bandGains;",
"type": "float[]",
"var_name": "bandGains"
},
{
"declarator": "bandBiases",
"modifier": "private",
"original_string": "private float[] bandBias... | {
"body": "public String getProductDescription() {\n String descr = getAttributeValue(DeimosConstants.PATH_SOURCE_DESCRIPTION, DeimosConstants.VALUE_NOT_AVAILABLE);\n if (DeimosConstants.VALUE_NOT_AVAILABLE.equals(descr)) {\n descr = getAttributeValue(DeimosConstants.PATH_SOURCE_ID, DeimosCon... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_257 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private AlosAV2Metadata metadata;",
"type": "AlosAV2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_alos\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetPixelFormat() throws Exception {\n assertEquals(20, metadata.getPixelDataType());\n }",
"class_method_signature": "AlosAV2MetadataTest.testGetPixelFormat()",
"constructor": false,
"full_signature": "@Test public void testGetPixelFormat()",
"identifier": "test... | {
"fields": [
{
"declarator": "bandGains",
"modifier": "private",
"original_string": "private HashMap<String, Float> bandGains;",
"type": "HashMap<String, Float>",
"var_name": "bandGains"
},
{
"declarator": "bandBiases",
"modifier": "private",
"original_stri... | {
"body": "public int getPixelDataType() {\n int retVal;\n int value = 8;\n try {\n value = Integer.parseInt(getAttributeValue(AlosAV2Constants.PATH_IMG_NBITS, \"8\"));\n } catch (NumberFormatException e) {\n warn(MISSING_ELEMENT_WARNING, AlosAV2Constants.PATH_IMG_NBI... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_129 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private WorldView2ESAMetadata metadata;",
"type": "WorldView2ESAMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_worldView\" + File.separator",
"modifier"... | {
"body": "@Test\n public void testGetNumBands() throws Exception {\n assertEquals(0, metadata.getNumBands());\n }",
"class_method_signature": "WorldView2ESAMetadataTest.testGetNumBands()",
"constructor": false,
"full_signature": "@Test public void testGetNumBands()",
"identifier": "testGetNumBan... | {
"fields": [],
"file": "s2tbx-worldview2esa-reader/src/main/java/org/esa/s2tbx/dataio/worldview2esa/metadata/WorldView2ESAMetadata.java",
"identifier": "WorldView2ESAMetadata",
"interfaces": "",
"methods": [
{
"class_method_signature": "WorldView2ESAMetadata.WorldView2ESAMetadata(String name)",
... | {
"body": "@Override\n public int getNumBands() {\n return 0;\n }",
"class_method_signature": "WorldView2ESAMetadata.getNumBands()",
"constructor": false,
"full_signature": "@Override public int getNumBands()",
"identifier": "getNumBands",
"invocations": [],
"modifiers": "@Override public",
... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_200 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private SpotDimapMetadata metadata;",
"type": "SpotDimapMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetFormatName() throws Exception {\n assertEquals(\"DIMAP\", metadata.getFormatName());\n }",
"class_method_signature": "SpotDimapMetadataTest.testGetFormatName()",
"constructor": false,
"full_signature": "@Test public void testGetFormatName()",
"identifier": "t... | {
"fields": [
{
"declarator": "wavelengths",
"modifier": "private",
"original_string": "private float[] wavelengths;",
"type": "float[]",
"var_name": "wavelengths"
},
{
"declarator": "bandwidths",
"modifier": "private",
"original_string": "private float[] ba... | {
"body": "@Override\n public String getFormatName() {\n String format = \"NOT DIMAP\";\n MetadataElement currentElement;\n if ((currentElement = rootElement.getElement(SpotConstants.TAG_METADATA_ID)) != null) {\n format = currentElement.getAttributeString(SpotConstants.TAG_METADATA... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_11 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private Kompsat2Metadata metadata;",
"type": "Kompsat2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_kompsat\" + File.separator",
"modifier": "private",... | {
"body": "@Test\n public void testGetProductStartTime() throws Exception {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date time = sdf.parse(\"2011-09-20T01:32:01.394Z\");\n assertEquals(time.getTi... | {
"fields": [
{
"declarator": "component",
"modifier": "private",
"original_string": "private Kompsat2Component component;",
"type": "Kompsat2Component",
"var_name": "component"
}
],
"file": "s2tbx-kompsat2-reader/src/main/java/org/esa/s2tbx/dataio/kompsat2/metadata/Kompsat2M... | {
"body": "@Override\n public ProductData.UTC getProductStartTime() {\n ProductData.UTC date = null;\n String value = null;\n try {\n value = getAttributeValue(Kompsat2Constants.PATH_START_TIME, null);\n } catch (Exception e) {\n warn(MISSING_ELEMENT_WARNING, Komps... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_216 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private SpotDimapMetadata metadata;",
"type": "SpotDimapMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetInsertPoint() throws Exception {\n SpotDimapMetadata.InsertionPoint point = metadata.getInsertPoint();\n assertEquals(null, point);\n }",
"class_method_signature": "SpotDimapMetadataTest.testGetInsertPoint()",
"constructor": false,
"full_signature": "@Te... | {
"fields": [
{
"declarator": "wavelengths",
"modifier": "private",
"original_string": "private float[] wavelengths;",
"type": "float[]",
"var_name": "wavelengths"
},
{
"declarator": "bandwidths",
"modifier": "private",
"original_string": "private float[] ba... | {
"body": "public InsertionPoint getInsertPoint() {\n InsertionPoint point = null;\n MetadataElement currentElement;\n if (((currentElement = rootElement.getElement(SpotConstants.TAG_GEOPOSITION)) != null) &&\n ((currentElement = currentElement.getElement(SpotConstants.TAG_GEOPOSIT... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_168 | {
"fields": [
{
"declarator": "PRODUCTS_FOLDER = \"_spot\" + File.separator",
"modifier": "private static final",
"original_string": "private static final String PRODUCTS_FOLDER = \"_spot\" + File.separator;",
"type": "String",
"var_name": "PRODUCTS_FOLDER"
}
],
"file": "s2tb... | {
"body": "@Test\n public void testGetProductComponentsOnArchiveInputBySimpleProductReader() throws IOException {\n assumeTrue(TestUtil.testdataAvailable());\n\n File file = TestUtil.getTestFile(PRODUCTS_FOLDER + \"30382639609301123571X0_1A_NETWORK.ZIP\");\n\n SpotDimapProductReader reader = b... | {
"fields": [
{
"declarator": "logger = Logger.getLogger(SpotDimapProductReader.class.getName())",
"modifier": "private static final",
"original_string": "private static final Logger logger = Logger.getLogger(SpotDimapProductReader.class.getName());",
"type": "Logger",
"var_name": "l... | {
"body": "@Override\n public TreeNode<File> getProductComponents() {\n if (productDirectory.isCompressed()) {\n return super.getProductComponents();\n } else {\n TreeNode<File> result = super.getProductComponents();\n //if the volume metadata file is present, but it ... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_187 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private SpotViewMetadata metadata;",
"type": "SpotViewMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetRasterGeoRefSizeY() throws Exception {\n assertEquals(25.0, metadata.getRasterGeoRefSizeY(), 0.001);\n }",
"class_method_signature": "SpotViewMetadataTest.testGetRasterGeoRefSizeY()",
"constructor": false,
"full_signature": "@Test public void testGetRasterGeoRe... | {
"fields": [],
"file": "s2tbx-spot-reader/src/main/java/org/esa/s2tbx/dataio/spot/dimap/SpotViewMetadata.java",
"identifier": "SpotViewMetadata",
"interfaces": "",
"methods": [
{
"class_method_signature": "SpotViewMetadata.SpotViewMetadata(String name)",
"constructor": true,
"full_signa... | {
"body": "public float getRasterGeoRefSizeY() {\n float value = 0.0f;\n MetadataElement currentElement;\n if ((currentElement = rootElement.getElement(SpotConstants.TAG_GEO_INFORMATION)) != null) {\n try {\n value = Float.parseFloat(currentElement.getAttributeString(Spo... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_241 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private AlosAV2Metadata metadata;",
"type": "AlosAV2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_alos\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetProductName() throws Exception {\n assertEquals(\"ALAV2A131821810\", metadata.getProductName());\n }",
"class_method_signature": "AlosAV2MetadataTest.testGetProductName()",
"constructor": false,
"full_signature": "@Test public void testGetProductName()",
"ide... | {
"fields": [
{
"declarator": "bandGains",
"modifier": "private",
"original_string": "private HashMap<String, Float> bandGains;",
"type": "HashMap<String, Float>",
"var_name": "bandGains"
},
{
"declarator": "bandBiases",
"modifier": "private",
"original_stri... | {
"body": "@Override\n public String getProductName() {\n String name = getAttributeValue(AlosAV2Constants.PATH_SOURCE_ID, AlosAV2Constants.VALUE_NOT_AVAILABLE);\n rootElement.setDescription(name);\n return name;\n }",
"class_method_signature": "AlosAV2Metadata.getProductName()",
"const... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_46 | {
"fields": [
{
"declarator": "PRODUCTS_FOLDER = \"_deimos\" + File.separator",
"modifier": "private static final",
"original_string": "private static final String PRODUCTS_FOLDER = \"_deimos\" + File.separator;",
"type": "String",
"var_name": "PRODUCTS_FOLDER"
}
],
"file": "... | {
"body": "@Test\n public void testReadProductPixelSubset() throws IOException {\n assumeTrue(TestUtil.testdataAvailable());\n\n File productFile = TestUtil.getTestFile(PRODUCTS_FOLDER + \"DE01_SL6_22P_1T_20120905T170604_20120905T170613_DMI_0_4502/DE01_SL6_22P_1T_20120905T170604_20120905T170613_DMI_0... | {
"fields": [],
"file": "s2tbx-deimos-reader/src/main/java/org/esa/s2tbx/dataio/deimos/DeimosProductReader.java",
"identifier": "DeimosProductReader",
"interfaces": "",
"methods": [
{
"class_method_signature": "DeimosProductReader.DeimosProductReader(ProductReaderPlugIn readerPlugIn, Path colorPalet... | {
"body": "@Override\n protected String getProductType() {\n return DeimosConstants.DIMAP_FORMAT_NAMES[0];\n }",
"class_method_signature": "DeimosProductReader.getProductType()",
"constructor": false,
"full_signature": "@Override protected String getProductType()",
"identifier": "getProductType",... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_113 | {
"fields": [
{
"declarator": "plugIn",
"modifier": "private",
"original_string": "private IkonosProductReaderPlugin plugIn;",
"type": "IkonosProductReaderPlugin",
"var_name": "plugIn"
},
{
"declarator": "productsFolder = \"_ikonos\" + File.separator",
"modifier":... | {
"body": "@Test\n public void testInputTypes() {\n final Class[] classes = plugIn.getInputTypes();\n assertNotNull(classes);\n assertEquals(2, classes.length);\n final List<Class> listOfCLasses = Arrays.asList(classes);\n assertEquals(true, listOfCLasses.contains(File.class));\n... | {
"fields": [
{
"declarator": "COLOR_PALETTE_FILE_NAME = \"Ikonos_color_palette.cpd\"",
"modifier": "private static final",
"original_string": "private static final String COLOR_PALETTE_FILE_NAME = \"Ikonos_color_palette.cpd\";",
"type": "String",
"var_name": "COLOR_PALETTE_FILE_NAME... | {
"body": "@Override\n public Class[] getInputTypes() {\n return IkonosConstants.READER_INPUT_TYPES;\n }",
"class_method_signature": "IkonosProductReaderPlugin.getInputTypes()",
"constructor": false,
"full_signature": "@Override public Class[] getInputTypes()",
"identifier": "getInputTypes",
"i... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_144 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private WorldView2Metadata metadata;",
"type": "WorldView2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_worldView\" + File.separator",
"modifier": "pri... | {
"body": "@Test\n public void testGetNumBands() throws Exception {\n assertEquals(0, metadata.getNumBands());\n }",
"class_method_signature": "WorldView2MetadataTest.testGetNumBands()",
"constructor": false,
"full_signature": "@Test public void testGetNumBands()",
"identifier": "testGetNumBands"... | {
"fields": [
{
"declarator": "EXCLUSION_STRING = \"README\"",
"modifier": "public static final",
"original_string": "public static final String EXCLUSION_STRING = \"README\";",
"type": "String",
"var_name": "EXCLUSION_STRING"
},
{
"declarator": "subProducts",
"mo... | {
"body": "@Override\n public int getNumBands() {\n return 0;\n }",
"class_method_signature": "WorldView2Metadata.getNumBands()",
"constructor": false,
"full_signature": "@Override public int getNumBands()",
"identifier": "getNumBands",
"invocations": [],
"modifiers": "@Override public",
"p... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_85 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private RapidEyeMetadata metadata;",
"type": "RapidEyeMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_rapideye\" + File.separator",
"modifier": "private"... | {
"body": "@Test\n public void testGetCornersLatitudes() throws Exception {\n assertEquals(53.088257, metadata.getCornersLatitudes()[0], 0.001);\n assertEquals(52.924603, metadata.getCornersLatitudes()[1], 0.001);\n assertEquals(52.670235, metadata.getCornersLatitudes()[2], 0.001);\n as... | {
"fields": [
{
"declarator": "scaleFactors",
"modifier": "private",
"original_string": "private float[] scaleFactors;",
"type": "float[]",
"var_name": "scaleFactors"
}
],
"file": "s2tbx-rapideye-reader/src/main/java/org/esa/s2tbx/dataio/rapideye/metadata/RapidEyeMetadata.jav... | {
"body": "public float[] getCornersLatitudes() {\n float[] lats = null;\n MetadataElement currentElement;\n if (((currentElement = rootElement.getElement(RapidEyeConstants.TAG_TARGET)) != null) &&\n ((currentElement = currentElement.getElement(RapidEyeConstants.TAG_FOOTPRINT)) != ... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_152 | {
"fields": [
{
"declarator": "PRODUCTS_FOLDER = \"S2\"+ File.separator+ \"MUSCATE\" + File.separator",
"modifier": "private static final",
"original_string": "private static final String PRODUCTS_FOLDER = \"S2\"+ File.separator+ \"MUSCATE\" + File.separator;",
"type": "String",
"var... | {
"body": "@Test\n public void testMuscateMetadataInspector() throws IOException {\n assumeTrue(TestUtil.testdataAvailable());\n\n File file = TestUtil.getTestFile(PRODUCTS_FOLDER + \"SENTINEL2A_20160205-103556-319_L2A_T31TFK_D_V1-0.zip\");\n assertNotNull(file);\n\n MuscateMetadataInsp... | {
"fields": [],
"file": "s2tbx-muscate-reader/src/main/java/org/esa/s2tbx/dataio/muscate/MuscateMetadataInspector.java",
"identifier": "MuscateMetadataInspector",
"interfaces": "implements MetadataInspector",
"methods": [
{
"class_method_signature": "MuscateMetadataInspector.MuscateMetadataInspector... | {
"body": "public MuscateMetadataInspector() {\n }",
"class_method_signature": "MuscateMetadataInspector.MuscateMetadataInspector()",
"constructor": true,
"full_signature": "public MuscateMetadataInspector()",
"identifier": "MuscateMetadataInspector",
"invocations": [],
"modifiers": "public",
"param... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_93 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private RapidEyeMetadata metadata;",
"type": "RapidEyeMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_rapideye\" + File.separator",
"modifier": "private"... | {
"body": "@Test\n public void testGetMetadataProfile() throws Exception {\n assertEquals(\"L1B\", metadata.getMetadataProfile());\n }",
"class_method_signature": "RapidEyeMetadataTest.testGetMetadataProfile()",
"constructor": false,
"full_signature": "@Test public void testGetMetadataProfile()",
... | {
"fields": [
{
"declarator": "scaleFactors",
"modifier": "private",
"original_string": "private float[] scaleFactors;",
"type": "float[]",
"var_name": "scaleFactors"
}
],
"file": "s2tbx-rapideye-reader/src/main/java/org/esa/s2tbx/dataio/rapideye/metadata/RapidEyeMetadata.jav... | {
"body": "@Override\n public String getMetadataProfile() {\n String profile = null;\n MetadataElement currentElement;\n if (((currentElement = rootElement.getElement(RapidEyeConstants.TAG_META_DATA_PROPERTY)) != null) &&\n ((currentElement = currentElement.getElement(RapidEyeCo... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_105 | {
"fields": [
{
"declarator": "testsFolderPath",
"modifier": "private static",
"original_string": "private static Path testsFolderPath;",
"type": "Path",
"var_name": "testsFolderPath"
}
],
"file": "s2tbx-forest-cover-change/src/test/java/org/esa/s2tbx/fcc/trimming/MovingWindo... | {
"body": "@Test\n public void testMovingWindowTileParallelComputing() throws Exception {\n Dimension tileSize = JAI.getDefaultTileSize();\n int threadCount = Runtime.getRuntime().availableProcessors() - 1;\n ExecutorService threadPool = Executors.newCachedThreadPool();\n\n ProductReade... | {
"fields": [
{
"declarator": "logger = Logger.getLogger(MovingWindowTileParallelComputing.class.getName())",
"modifier": "private static final",
"original_string": "private static final Logger logger = Logger.getLogger(MovingWindowTileParallelComputing.class.getName());",
"type": "Logger"... | {
"body": "public MovingWindowTileParallelComputing(IntMatrix colorFillerMatrix, Dimension movingWindowSize, Dimension movingStepSize, Dimension tileSize,\n Path temporarySourceSegmentationTilesFolder, int[] sourceBandIndices, double degreesOfFreedom) {\n\n this.colo... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_104 | {
"fields": [],
"file": "s2tbx-forest-cover-change/src/test/java/org/esa/s2tbx/fcc/common/BandsDifferenceOpTest.java",
"identifier": "BandsDifferenceOpTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBandsDifferenceOp() {\n int sceneRasterWidth = 100;\n int sceneRasterHeight = 100;\n\n Product firstProduct = buildFirstProduct(\"FirstProduct\", \"BandsDifference\", sceneRasterWidth, sceneRasterHeight);\n Product secondProduct = buildSecondProduct(\"... | {
"fields": [
{
"declarator": "sourceProducts",
"modifier": "@SourceProducts(alias = \"Source\", description = \"The first source product.\")\n private",
"original_string": "@SourceProducts(alias = \"Source\", description = \"The first source product.\")\n private Product[] sourceProducts;... | {
"body": "public BandsDifferenceOp() {\n }",
"class_method_signature": "BandsDifferenceOp.BandsDifferenceOp()",
"constructor": true,
"full_signature": "public BandsDifferenceOp()",
"identifier": "BandsDifferenceOp",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "",
"si... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_92 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private RapidEyeMetadata metadata;",
"type": "RapidEyeMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_rapideye\" + File.separator",
"modifier": "private"... | {
"body": "@Test\n public void testGetFormatName() throws Exception {\n assertEquals(\"NITF\", metadata.getFormatName());\n }",
"class_method_signature": "RapidEyeMetadataTest.testGetFormatName()",
"constructor": false,
"full_signature": "@Test public void testGetFormatName()",
"identifier": "tes... | {
"fields": [
{
"declarator": "scaleFactors",
"modifier": "private",
"original_string": "private float[] scaleFactors;",
"type": "float[]",
"var_name": "scaleFactors"
}
],
"file": "s2tbx-rapideye-reader/src/main/java/org/esa/s2tbx/dataio/rapideye/metadata/RapidEyeMetadata.jav... | {
"body": "@Override\n public String getFormatName() {\n String formatName = null;\n MetadataElement currentElement;\n if (((currentElement = rootElement.getElement(RapidEyeConstants.TAG_RESULT_OF)) != null) &&\n ((currentElement = currentElement.getElement(RapidEyeConstants.TAG... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_153 | {
"fields": [],
"file": "s2tbx-grm/src/test/java/org/esa/s2tbx/grm/GenericRegionMergingOpTest.java",
"identifier": "GenericRegionMergingOpTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFullLambdaScheduleTileSmallSegmenter() throws IOException, IllegalAccessException, URISyntaxException {\n Product sourceProduct = readSourceProduct(\"picture-334x400.png\");\n try {\n String mergingCostCriterion = GenericRegionMergingOp.FULL_LANDA_SCHEDUL... | {
"fields": [
{
"declarator": "logger = Logger.getLogger(GenericRegionMergingOp.class.getName())",
"modifier": "private static final",
"original_string": "private static final Logger logger = Logger.getLogger(GenericRegionMergingOp.class.getName());",
"type": "Logger",
"var_name": "l... | {
"body": "public AbstractSegmenter getSegmenter() {\n return this.segmenter;\n }",
"class_method_signature": "GenericRegionMergingOp.getSegmenter()",
"constructor": false,
"full_signature": "public AbstractSegmenter getSegmenter()",
"identifier": "getSegmenter",
"invocations": [],
"modifiers": ... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_84 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private RapidEyeMetadata metadata;",
"type": "RapidEyeMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_rapideye\" + File.separator",
"modifier": "private"... | {
"body": "@Test\n public void testGetPixelFormat() throws Exception {\n assertEquals(21, metadata.getPixelFormat());\n }",
"class_method_signature": "RapidEyeMetadataTest.testGetPixelFormat()",
"constructor": false,
"full_signature": "@Test public void testGetPixelFormat()",
"identifier": "testG... | {
"fields": [
{
"declarator": "scaleFactors",
"modifier": "private",
"original_string": "private float[] scaleFactors;",
"type": "float[]",
"var_name": "scaleFactors"
}
],
"file": "s2tbx-rapideye-reader/src/main/java/org/esa/s2tbx/dataio/rapideye/metadata/RapidEyeMetadata.jav... | {
"body": "public int getPixelFormat() {\n RapidEyeConstants.PixelFormat dataType = RapidEyeConstants.PixelFormat.UNSIGNED_INTEGER;\n MetadataElement currentElement;\n if ((currentElement = rootElement.getElement(RapidEyeConstants.TAG_EARTH_OBSERVATION_META_DATA)) != null) {\n String p... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_145 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private WorldView2Metadata metadata;",
"type": "WorldView2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_worldView\" + File.separator",
"modifier": "pri... | {
"body": "@Test\n public void testGetFormatName() throws Exception {\n assertEquals(WorldView2Constants.PRODUCT_GENERIC_NAME, metadata.getFormatName());\n }",
"class_method_signature": "WorldView2MetadataTest.testGetFormatName()",
"constructor": false,
"full_signature": "@Test public void testGetF... | {
"fields": [
{
"declarator": "EXCLUSION_STRING = \"README\"",
"modifier": "public static final",
"original_string": "public static final String EXCLUSION_STRING = \"README\";",
"type": "String",
"var_name": "EXCLUSION_STRING"
},
{
"declarator": "subProducts",
"mo... | {
"body": "@Override\n public String getFormatName() {\n return WorldView2Constants.PRODUCT_GENERIC_NAME;\n }",
"class_method_signature": "WorldView2Metadata.getFormatName()",
"constructor": false,
"full_signature": "@Override public String getFormatName()",
"identifier": "getFormatName",
"inv... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_112 | {
"fields": [
{
"declarator": "plugIn",
"modifier": "private",
"original_string": "private IkonosProductReaderPlugin plugIn;",
"type": "IkonosProductReaderPlugin",
"var_name": "plugIn"
},
{
"declarator": "productsFolder = \"_ikonos\" + File.separator",
"modifier":... | {
"body": "@Test\n public void testFormatNames() {\n final String[] formatNames = plugIn.getFormatNames();\n assertNotNull(formatNames);\n assertEquals(1, formatNames.length);\n assertEquals(\"IkonosGeoTIFF\", formatNames[0]);\n }",
"class_method_signature": "IkonosProductReaderPlu... | {
"fields": [
{
"declarator": "COLOR_PALETTE_FILE_NAME = \"Ikonos_color_palette.cpd\"",
"modifier": "private static final",
"original_string": "private static final String COLOR_PALETTE_FILE_NAME = \"Ikonos_color_palette.cpd\";",
"type": "String",
"var_name": "COLOR_PALETTE_FILE_NAME... | {
"body": "@Override\n public String[] getFormatNames() {\n return IkonosConstants.FORMAT_NAMES;\n }",
"class_method_signature": "IkonosProductReaderPlugin.getFormatNames()",
"constructor": false,
"full_signature": "@Override public String[] getFormatNames()",
"identifier": "getFormatNames",
"i... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_240 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private AlosAV2Metadata metadata;",
"type": "AlosAV2Metadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_alos\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetFileName() throws Exception {\n assertEquals(\"ALOS\", metadata.getFileName());\n }",
"class_method_signature": "AlosAV2MetadataTest.testGetFileName()",
"constructor": false,
"full_signature": "@Test public void testGetFileName()",
"identifier": "testGetFileN... | {
"fields": [
{
"declarator": "bandGains",
"modifier": "private",
"original_string": "private HashMap<String, Float> bandGains;",
"type": "HashMap<String, Float>",
"var_name": "bandGains"
},
{
"declarator": "bandBiases",
"modifier": "private",
"original_stri... | {
"body": "@Override\n public String getFileName() {\n return name;\n }",
"class_method_signature": "AlosAV2Metadata.getFileName()",
"constructor": false,
"full_signature": "@Override public String getFileName()",
"identifier": "getFileName",
"invocations": [],
"modifiers": "@Override public"... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_47 | {
"fields": [
{
"declarator": "PRODUCTS_FOLDER = \"_deimos\" + File.separator",
"modifier": "private static final",
"original_string": "private static final String PRODUCTS_FOLDER = \"_deimos\" + File.separator;",
"type": "String",
"var_name": "PRODUCTS_FOLDER"
}
],
"file": "... | {
"body": "@Test\n public void testReadProductGeometrySubset() throws IOException {\n assumeTrue(TestUtil.testdataAvailable());\n\n File productFile = TestUtil.getTestFile(PRODUCTS_FOLDER + \"DE01_SL6_22P_1T_20120905T170604_20120905T170613_DMI_0_4502\"+ File.separator+ \"DE01_SL6_22P_1T_20120905T1706... | {
"fields": [],
"file": "s2tbx-deimos-reader/src/main/java/org/esa/s2tbx/dataio/deimos/DeimosProductReader.java",
"identifier": "DeimosProductReader",
"interfaces": "",
"methods": [
{
"class_method_signature": "DeimosProductReader.DeimosProductReader(ProductReaderPlugIn readerPlugIn, Path colorPalet... | {
"body": "@Override\n protected String getProductType() {\n return DeimosConstants.DIMAP_FORMAT_NAMES[0];\n }",
"class_method_signature": "DeimosProductReader.getProductType()",
"constructor": false,
"full_signature": "@Override protected String getProductType()",
"identifier": "getProductType",... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_169 | {
"fields": [
{
"declarator": "PRODUCTS_FOLDER = \"_spot\" + File.separator",
"modifier": "private static final",
"original_string": "private static final String PRODUCTS_FOLDER = \"_spot\" + File.separator;",
"type": "String",
"var_name": "PRODUCTS_FOLDER"
}
],
"file": "s2tb... | {
"body": "@Test\n public void testGetProductComponentsOnVolumeFileInputByVolumeProductReader() throws IOException {\n assumeTrue(TestUtil.testdataAvailable());\n\n File file = TestUtil.getTestFile(PRODUCTS_FOLDER + \"SPOT-5_2.5mc_3\" + File.separator + \"VOL_LIST.DIM\");\n\n SpotDimapProductR... | {
"fields": [
{
"declarator": "logger = Logger.getLogger(SpotDimapProductReader.class.getName())",
"modifier": "private static final",
"original_string": "private static final Logger logger = Logger.getLogger(SpotDimapProductReader.class.getName());",
"type": "Logger",
"var_name": "l... | {
"body": "@Override\n public TreeNode<File> getProductComponents() {\n if (productDirectory.isCompressed()) {\n return super.getProductComponents();\n } else {\n TreeNode<File> result = super.getProductComponents();\n //if the volume metadata file is present, but it ... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
22045363_186 | {
"fields": [
{
"declarator": "metadata",
"modifier": "private",
"original_string": "private SpotViewMetadata metadata;",
"type": "SpotViewMetadata",
"var_name": "metadata"
},
{
"declarator": "productsFolder = \"_spot\" + File.separator",
"modifier": "private",
... | {
"body": "@Test\n public void testGetRasterGeoRefSizeX() throws Exception {\n assertEquals(25.0, metadata.getRasterGeoRefSizeX(), 0.001);\n }",
"class_method_signature": "SpotViewMetadataTest.testGetRasterGeoRefSizeX()",
"constructor": false,
"full_signature": "@Test public void testGetRasterGeoRe... | {
"fields": [],
"file": "s2tbx-spot-reader/src/main/java/org/esa/s2tbx/dataio/spot/dimap/SpotViewMetadata.java",
"identifier": "SpotViewMetadata",
"interfaces": "",
"methods": [
{
"class_method_signature": "SpotViewMetadata.SpotViewMetadata(String name)",
"constructor": true,
"full_signa... | {
"body": "public float getRasterGeoRefSizeX() {\n float value = 0.0f;\n MetadataElement currentElement;\n if ((currentElement = rootElement.getElement(SpotConstants.TAG_GEO_INFORMATION)) != null) {\n try {\n value = Float.parseFloat(currentElement.getAttributeString(Spo... | {
"created": "7/20/2014 10:51:51 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 22045363,
"size": null,
"stargazer_count": null,
"stars": 65,
"updates": "2020-01-21T12:26:31+00:00",
"url": "https://github.com/senbox-org/s2tbx... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.