id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
35185022_7
{ "fields": [ { "declarator": "thrown= ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException thrown= ExpectedException.none();", "type": "ExpectedException", "var_name": "thrown" } ], "file": "core/src/test/java/co...
{ "body": "@Test\n public void MaxLegalNearCacheSize() {\n VCDiffAddressCacheImpl i = new VCDiffAddressCacheImpl((short) (VCDiffAddressCache.VCD_MAX_MODES - 2), (short) 0);\n i.Init();\n }", "class_method_signature": "VCDiffAddressCacheTest.MaxLegalNearCacheSize()", "constructor": false, "fu...
{ "fields": [ { "declarator": "VCD_SELF_MODE = (short)0", "modifier": "public static final", "original_string": "public static final short VCD_SELF_MODE = (short)0;", "type": "short", "var_name": "VCD_SELF_MODE" }, { "declarator": "VCD_HERE_MODE = (short)1", "modi...
{ "body": "public abstract void Init();", "class_method_signature": "VCDiffAddressCache.Init()", "constructor": false, "full_signature": "public abstract void Init()", "identifier": "Init", "invocations": [], "modifiers": "public abstract", "parameters": "()", "return": "void", "signature": "void In...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 35185022, "size": 887, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/ehrmann/vcdiff-java" }
35185022_102
{ "fields": [ { "declarator": "dictionaryFile", "modifier": "private static", "original_string": "private static File dictionaryFile;", "type": "File", "var_name": "dictionaryFile" }, { "declarator": "targetFile", "modifier": "private static", "original_stri...
{ "body": "@Test\n public void testUnrecognizedCommand() throws Exception {\n exit.expectSystemExit();\n\n VCDiffFileBasedCoder.main(new String[] {\n \"dencode\",\n \"-target_matches\",\n \"-stats\",\n \"-dictionary\", dictionaryFile.getCano...
{ "fields": [ { "declarator": "DEFAULT_MAX_TARGET_SIZE = 1 << 26", "modifier": "public static final", "original_string": "public static final int DEFAULT_MAX_TARGET_SIZE = 1 << 26;", "type": "int", "var_name": "DEFAULT_MAX_TARGET_SIZE" } ], "file": "cli/src/main/java/com/davi...
{ "body": "public static void main(String[] argv) throws Exception {\n\n // TODO: JCommander has an issue with boolean arity. Rewrite allow_vcd_target.\n List<String> newArgv = new LinkedList<String>(Arrays.asList(argv));\n\n ListIterator<String> i = newArgv.listIterator();\n while (i.hasN...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 35185022, "size": 887, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/ehrmann/vcdiff-java" }
35185022_44
{ "fields": [], "file": "core/src/test/java/com/davidehrmann/vcdiff/engine/VCDiffInstructionMapTest.java", "identifier": "VCDiffInstructionMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void DefaultMapLookupFirstRun() {\n Assert.assertEquals(0, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_RUN, (byte) 0, (byte) 0));\n assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_RUN, (byte) 1, (byte) 0));\n ...
{ "fields": [ { "declarator": "DEFAULT_INSTRUCTION_MAP = new VCDiffInstructionMap(\n VCDiffCodeTableData.kDefaultCodeTableData, VCDiffAddressCache.DefaultLastMode())", "modifier": "public static final", "original_string": "public static final VCDiffInstructionMap DEFAULT_INSTRUCTION_M...
{ "body": "public short LookupFirstOpcode(byte inst, byte size, byte mode) {\n return first_instruction_map_.Lookup(inst, size, mode);\n }", "class_method_signature": "VCDiffInstructionMap.LookupFirstOpcode(byte inst, byte size, byte mode)", "constructor": false, "full_signature": "public short Lookup...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 35185022, "size": 887, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/ehrmann/vcdiff-java" }
35185022_13
{ "fields": [ { "declarator": "kLastExerciseMode = 4", "modifier": "protected static final", "original_string": "protected static final short kLastExerciseMode = 4;", "type": "short", "var_name": "kLastExerciseMode" }, { "declarator": "out = new ByteArrayOutputStream(40...
{ "body": "@Test\n public void WriterOutputWithoutInit() throws IOException {\n standard_writer.output(out);\n assertEquals(0, out.size());\n }", "class_method_signature": "VCDiffCodeTableWriterImplTest.WriterOutputWithoutInit()", "constructor": false, "full_signature": "@Test public void Wr...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(VCDiffCodeTableWriterImpl.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(VCDiffCodeTableWriterImpl.class);", "type": "Logger", "var_name": "L...
{ "body": "public void output(OutputStream out) throws IOException {\n if (instructionsAndSizes.position() == 0) {\n LOGGER.warn(\"Empty input; no delta window produced\");\n } else {\n CountingOutputStream countedOut = new CountingOutputStream(out);\n\n // add first ele...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 35185022, "size": 887, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/ehrmann/vcdiff-java" }
35185022_52
{ "fields": [], "file": "core/src/test/java/com/davidehrmann/vcdiff/engine/VCDiffInstructionMapTest.java", "identifier": "VCDiffInstructionMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void DefaultMapLookupFirstCopyMode7() {\n Assert.assertEquals(131, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 7));\n Assert.assertEquals(132, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (by...
{ "fields": [ { "declarator": "DEFAULT_INSTRUCTION_MAP = new VCDiffInstructionMap(\n VCDiffCodeTableData.kDefaultCodeTableData, VCDiffAddressCache.DefaultLastMode())", "modifier": "public static final", "original_string": "public static final VCDiffInstructionMap DEFAULT_INSTRUCTION_M...
{ "body": "public short LookupFirstOpcode(byte inst, byte size, byte mode) {\n return first_instruction_map_.Lookup(inst, size, mode);\n }", "class_method_signature": "VCDiffInstructionMap.LookupFirstOpcode(byte inst, byte size, byte mode)", "constructor": false, "full_signature": "public short Lookup...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 35185022, "size": 887, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/ehrmann/vcdiff-java" }
115604783_44
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/StringsTest.java", "identifier": "StringsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void multipleSpaces() {\n assertTrue(Strings.isNullOrEmpty(\" \"));\n }", "class_method_signature": "StringsTest.multipleSpaces()", "constructor": false, "full_signature": "@Test void multipleSpaces()", "identifier": "multipleSpaces", "invocations": [ "assertTrue", ...
{ "fields": [], "file": "generator/src/main/java/net/codecrete/qrbill/generator/Strings.java", "identifier": "Strings", "interfaces": "", "methods": [ { "class_method_signature": "Strings.Strings()", "constructor": true, "full_signature": "private Strings()", "identifier": "String...
{ "body": "public static boolean isNullOrEmpty(String value) {\n return value == null || value.trim().length() == 0;\n }", "class_method_signature": "Strings.isNullOrEmpty(String value)", "constructor": false, "full_signature": "public static boolean isNullOrEmpty(String value)", "identifier": "isNu...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_13
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setLanguage() {\n Bill bill = new Bill();\n bill.getFormat().setLanguage(Language.FR);\n assertEquals(Language.FR, bill.getFormat().getLanguage());\n }", "class_method_signature": "BillTest.setLanguage()", "constructor": false, "full_signature": "@Test void set...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public BillFormat getFormat() {\n return format;\n }", "class_method_signature": "Bill.getFormat()", "constructor": false, "full_signature": "public BillFormat getFormat()", "identifier": "getFormat", "invocations": [], "modifiers": "public", "parameters": "()", "return": "BillFor...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_52
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVatNumber() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setVatNumber(\"109030864\");\n assertEquals(\"109030864\", billInformation.getVatNumber());\n }", "class_method_signature": "SwicoBillInformationTest.setVatNumbe...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setVatNumber(String vatNumber) {\n this.vatNumber = vatNumber;\n }", "class_method_signature": "SwicoBillInformation.setVatNumber(String vatNumber)", "constructor": false, "full_signature": "public void setVatNumber(String vatNumber)", "identifier": "setVatNumber", "invocati...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_29
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setName() {\n Address address = new Address();\n address.setName(\"ABC\");\n assertEquals(\"ABC\", address.getName());\n }", "class_method_signature": "AddressTest.setName()", "constructor": false, "full_signature": "@Test void setName()", "identifier": "setN...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setName(String name) {\n this.name = name;\n }", "class_method_signature": "Address.setName(String name)", "constructor": false, "full_signature": "public void setName(String name)", "identifier": "setName", "invocations": [], "modifiers": "public", "parameters": "(Strin...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_5
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AlternativeSchemeTest.java", "identifier": "AlternativeSchemeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testEquals() {\n AlternativeScheme scheme1 = new AlternativeScheme(\"Paymit\", \"PM,12341234,1241234\");\n AlternativeScheme scheme2 = new AlternativeScheme(\"Paymit\", \"PM,12341234,1241234\");\n assertEquals(scheme1, scheme2);\n assertEquals(scheme1, scheme2);\...
{ "fields": [ { "declarator": "serialVersionUID = -8304082204378228870L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8304082204378228870L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "nam...
{ "body": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n AlternativeScheme that = (AlternativeScheme) o;\n return Objects.equals(name, that.name) &&\n Objects.equals(instruction, ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_48
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillFormatTest.java", "identifier": "BillFormatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testEquals() {\n BillFormat format1 = new BillFormat();\n BillFormat format2 = new BillFormat();\n assertEquals(format1, format2);\n assertEquals(format1, format2);\n\n format2.setOutputSize(OutputSize.A4_PORTRAIT_SHEET);\n assertNotEquals(format1, ...
{ "fields": [ { "declarator": "serialVersionUID = -2874086922578292745L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2874086922578292745L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "out...
{ "body": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n BillFormat that = (BillFormat) o;\n return outputSize == that.outputSize &&\n language == that.language &&\n ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_25
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testEquals() {\n Bill bill1 = createBill();\n Bill bill2 = createBill();\n assertEquals(bill1, bill2);\n assertEquals(bill2, bill1);\n\n bill2.setUnstructuredMessage(\"ABC\");\n assertNotEquals(bill1, bill2);\n }", "class_method_signature": "Bi...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Bill bill = (Bill) o;\n return version == bill.version &&\n Objects.equals(amount, bill.amount) &&\n Object...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_9
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/QRBillTest.java", "identifier": "QRBillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void createQRBill3() {\n Bill bill = SampleData.getExample3();\n bill.getFormat().setOutputSize(OutputSize.QR_BILL_ONLY);\n bill.getFormat().setGraphicsFormat(GraphicsFormat.SVG);\n byte[] svg = QRBill.generate(bill);\n FileComparison.assertFileContentsEqual(sv...
{ "fields": [ { "declarator": "A4_PORTRAIT_WIDTH = 210", "modifier": "public static final", "original_string": "public static final double A4_PORTRAIT_WIDTH = 210;", "type": "double", "var_name": "A4_PORTRAIT_WIDTH" }, { "declarator": "A4_PORTRAIT_HEIGHT = 297", "...
{ "body": "public static byte[] generate(Bill bill) {\n try (Canvas canvas = createCanvas(bill.getFormat())) {\n validateAndGenerate(bill, canvas);\n return ((ByteArrayResult)canvas).toByteArray();\n } catch (IOException e) {\n throw new QRBillGenerationException(e);\n ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_33
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setHouseNo() {\n Address address = new Address();\n address.setHouseNo(\"fiekdd\");\n assertEquals(\"fiekdd\", address.getHouseNo());\n assertEquals(Address.Type.STRUCTURED, address.getType());\n }", "class_method_signature": "AddressTest.setHouseNo()", "c...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setHouseNo(String houseNo) {\n this.houseNo = houseNo;\n changeType(Type.STRUCTURED);\n }", "class_method_signature": "Address.setHouseNo(String houseNo)", "constructor": false, "full_signature": "public void setHouseNo(String houseNo)", "identifier": "setHouseNo", "i...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_32
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setStreet() {\n Address address = new Address();\n address.setStreet(\"DEFGH\");\n assertEquals(\"DEFGH\", address.getStreet());\n assertEquals(Address.Type.STRUCTURED, address.getType());\n }", "class_method_signature": "AddressTest.setStreet()", "constru...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setStreet(String street) {\n this.street = street;\n changeType(Type.STRUCTURED);\n }", "class_method_signature": "Address.setStreet(String street)", "constructor": false, "full_signature": "public void setStreet(String street)", "identifier": "setStreet", "invocation...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_8
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/QRBillTest.java", "identifier": "QRBillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void createQRBill2() {\n Bill bill = SampleData.getExample2();\n bill.getFormat().setOutputSize(OutputSize.QR_BILL_ONLY);\n bill.getFormat().setGraphicsFormat(GraphicsFormat.SVG);\n byte[] svg = QRBill.generate(bill);\n FileComparison.assertFileContentsEqual(sv...
{ "fields": [ { "declarator": "A4_PORTRAIT_WIDTH = 210", "modifier": "public static final", "original_string": "public static final double A4_PORTRAIT_WIDTH = 210;", "type": "double", "var_name": "A4_PORTRAIT_WIDTH" }, { "declarator": "A4_PORTRAIT_HEIGHT = 297", "...
{ "body": "public static byte[] generate(Bill bill) {\n try (Canvas canvas = createCanvas(bill.getFormat())) {\n validateAndGenerate(bill, canvas);\n return ((ByteArrayResult)canvas).toByteArray();\n } catch (IOException e) {\n throw new QRBillGenerationException(e);\n ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_24
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setBillInformation() {\n Bill bill = new Bill();\n bill.setBillInformation(\"S1/01/20170309/11/10201409/20/14000000/22/369 58/30/CH106017086/40/1020/41/3010\");\n assertEquals(\"S1/01/20170309/11/10201409/20/14000000/22/369 58/30/CH106017086/40/1020/41/3010\",\n ...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setBillInformation(String billInformation) {\n this.billInformation = billInformation;\n }", "class_method_signature": "Bill.setBillInformation(String billInformation)", "constructor": false, "full_signature": "public void setBillInformation(String billInformation)", "identifi...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_49
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setInvoiceNumber() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setInvoiceNumber(\"ABC\");\n assertEquals(\"ABC\", billInformation.getInvoiceNumber());\n }", "class_method_signature": "SwicoBillInformationTest.setInvoiceN...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setInvoiceNumber(String invoiceNumber) {\n this.invoiceNumber = invoiceNumber;\n }", "class_method_signature": "SwicoBillInformation.setInvoiceNumber(String invoiceNumber)", "constructor": false, "full_signature": "public void setInvoiceNumber(String invoiceNumber)", "identifi...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_4
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AlternativeSchemeTest.java", "identifier": "AlternativeSchemeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void toStringTest() {\n AlternativeScheme scheme = new AlternativeScheme(\"Paymit\", \"PM,12341234,1241234\");\n String text = scheme.toString();\n assertEquals(\"AlternativeScheme{name='Paymit', instruction='PM,12341234,1241234'}\", text);\n }", "class_method_signature...
{ "fields": [ { "declarator": "serialVersionUID = -8304082204378228870L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8304082204378228870L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "nam...
{ "body": "@Override\n public String toString() {\n return \"AlternativeScheme{\" +\n \"name='\" + name + '\\'' +\n \", instruction='\" + instruction + '\\'' +\n '}';\n }", "class_method_signature": "AlternativeScheme.toString()", "constructor": false, "...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_28
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testUndetermined() {\n Address address = new Address();\n assertEquals(Address.Type.UNDETERMINED, address.getType());\n }", "class_method_signature": "AddressTest.testUndetermined()", "constructor": false, "full_signature": "@Test void testUndetermined()", "identifi...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public Type getType() {\n return type;\n }", "class_method_signature": "Address.getType()", "constructor": false, "full_signature": "public Type getType()", "identifier": "getType", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Type", "signature": "Typ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_53
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVatDate() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setVatDate(LocalDate.of(2020, 3, 1));\n assertEquals(LocalDate.of(2020, 3, 1), billInformation.getVatDate());\n }", "class_method_signature": "SwicoBillInformation...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setVatDate(LocalDate vatDate) {\n this.vatDate = vatDate;\n }", "class_method_signature": "SwicoBillInformation.setVatDate(LocalDate vatDate)", "constructor": false, "full_signature": "public void setVatDate(LocalDate vatDate)", "identifier": "setVatDate", "invocations": [],...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_12
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/QRBillTest.java", "identifier": "QRBillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void createQRBillFrench() {\n Bill bill = SampleData.getExample1();\n bill.getFormat().setGraphicsFormat(GraphicsFormat.SVG);\n bill.getFormat().setLanguage(Language.FR);\n byte[] svg = QRBill.generate(bill);\n FileComparison.assertFileContentsEqual(svg, \"qrbi...
{ "fields": [ { "declarator": "A4_PORTRAIT_WIDTH = 210", "modifier": "public static final", "original_string": "public static final double A4_PORTRAIT_WIDTH = 210;", "type": "double", "var_name": "A4_PORTRAIT_WIDTH" }, { "declarator": "A4_PORTRAIT_HEIGHT = 297", "...
{ "body": "public static byte[] generate(Bill bill) {\n try (Canvas canvas = createCanvas(bill.getFormat())) {\n validateAndGenerate(bill, canvas);\n return ((ByteArrayResult)canvas).toByteArray();\n } catch (IOException e) {\n throw new QRBillGenerationException(e);\n ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_45
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/StringsTest.java", "identifier": "StringsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void nonEmpty() {\n assertFalse(Strings.isNullOrEmpty(\"a\"));\n }", "class_method_signature": "StringsTest.nonEmpty()", "constructor": false, "full_signature": "@Test void nonEmpty()", "identifier": "nonEmpty", "invocations": [ "assertFalse", "isNullOrEmpty" ], "...
{ "fields": [], "file": "generator/src/main/java/net/codecrete/qrbill/generator/Strings.java", "identifier": "Strings", "interfaces": "", "methods": [ { "class_method_signature": "Strings.Strings()", "constructor": true, "full_signature": "private Strings()", "identifier": "String...
{ "body": "public static boolean isNullOrEmpty(String value) {\n return value == null || value.trim().length() == 0;\n }", "class_method_signature": "Strings.isNullOrEmpty(String value)", "constructor": false, "full_signature": "public static boolean isNullOrEmpty(String value)", "identifier": "isNu...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_19
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setCreditor() {\n Bill bill = new Bill();\n Address address = createAddress();\n bill.setCreditor(address);\n assertSame(address, bill.getCreditor());\n assertEquals(createAddress(), bill.getCreditor());\n }", "class_method_signature": "BillTest.setCr...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setCreditor(Address creditor) {\n this.creditor = creditor;\n }", "class_method_signature": "Bill.setCreditor(Address creditor)", "constructor": false, "full_signature": "public void setCreditor(Address creditor)", "identifier": "setCreditor", "invocations": [], "modifiers...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_58
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVatImportTaxes() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setVatImportTaxes(Arrays.asList(\n new RateDetail(BigDecimal.valueOf(77, 1), BigDecimal.valueOf(4812, 2)),\n new RateDetail(BigDecimal.val...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setVatImportTaxes(List<RateDetail> vatImportTaxes) {\n this.vatImportTaxes = vatImportTaxes;\n }", "class_method_signature": "SwicoBillInformation.setVatImportTaxes(List<RateDetail> vatImportTaxes)", "constructor": false, "full_signature": "public void setVatImportTaxes(List<Rat...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_23
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setDebtor() {\n Bill bill = new Bill();\n Address address = createAddress();\n bill.setDebtor(address);\n assertSame(address, bill.getDebtor());\n assertEquals(createAddress(), bill.getDebtor());\n }", "class_method_signature": "BillTest.setDebtor()",...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setDebtor(Address debtor) {\n this.debtor = debtor;\n }", "class_method_signature": "Bill.setDebtor(Address debtor)", "constructor": false, "full_signature": "public void setDebtor(Address debtor)", "identifier": "setDebtor", "invocations": [], "modifiers": "public", "pa...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_62
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testToString() {\n SwicoBillInformation info = SwicoExamples.createExample3();\n assertEquals(\n \"SwicoBillInformation{invoiceNumber='4031202511', invoiceDate=2018-01-07, customerReference='61257233.4', vatNumber='105493567', vatDate=null, vatStartDate=null, va...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "@Override\n public String toString() {\n return \"SwicoBillInformation{\" +\n \"invoiceNumber='\" + invoiceNumber + '\\'' +\n \", invoiceDate=\" + invoiceDate +\n \", customerReference='\" + customerReference + '\\'' +\n \", vatNumber='\...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_35
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setTown() {\n Address address = new Address();\n address.setTown(\"IOPU-KU\");\n assertEquals(\"IOPU-KU\", address.getTown());\n assertEquals(Address.Type.STRUCTURED, address.getType());\n }", "class_method_signature": "AddressTest.setTown()", "constructor...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setTown(String town) {\n this.town = town;\n changeType(Type.STRUCTURED);\n }", "class_method_signature": "Address.setTown(String town)", "constructor": false, "full_signature": "public void setTown(String town)", "identifier": "setTown", "invocations": [ "changeT...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_42
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/StringsTest.java", "identifier": "StringsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void empty() {\n assertTrue(Strings.isNullOrEmpty(\"\"));\n }", "class_method_signature": "StringsTest.empty()", "constructor": false, "full_signature": "@Test void empty()", "identifier": "empty", "invocations": [ "assertTrue", "isNullOrEmpty" ], "modifiers": "@T...
{ "fields": [], "file": "generator/src/main/java/net/codecrete/qrbill/generator/Strings.java", "identifier": "Strings", "interfaces": "", "methods": [ { "class_method_signature": "Strings.Strings()", "constructor": true, "full_signature": "private Strings()", "identifier": "String...
{ "body": "public static boolean isNullOrEmpty(String value) {\n return value == null || value.trim().length() == 0;\n }", "class_method_signature": "Strings.isNullOrEmpty(String value)", "constructor": false, "full_signature": "public static boolean isNullOrEmpty(String value)", "identifier": "isNu...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_15
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setAmount() {\n Bill bill = new Bill();\n bill.setAmount(BigDecimal.valueOf(37.45));\n assertEquals(37.45, bill.getAmountAsDouble().doubleValue());\n }", "class_method_signature": "BillTest.setAmount()", "constructor": false, "full_signature": "@Test void setAm...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "class_method_signature": "Bill.setAmount(BigDecimal amount)", "constructor": false, "full_signature": "public void setAmount(BigDecimal amount)", "identifier": "setAmount", "invocations": [], "modifiers": "publi...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_54
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVatStartDate() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setVatStartDate(LocalDate.of(2019, 3, 1));\n assertEquals(LocalDate.of(2019, 3, 1), billInformation.getVatStartDate());\n }", "class_method_signature": "Swico...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setVatStartDate(LocalDate vatStartDate) {\n this.vatStartDate = vatStartDate;\n }", "class_method_signature": "SwicoBillInformation.setVatStartDate(LocalDate vatStartDate)", "constructor": false, "full_signature": "public void setVatStartDate(LocalDate vatStartDate)", "identif...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_3
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/ValidationMessageTest.java", "identifier": "ValidationMessageTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setMessageParameters() {\n ValidationMessage msg = new ValidationMessage();\n msg.setMessageParameters(new String[] { \"abc\", \"def\", \"ghi\" });\n assertTrue(Arrays.equals(new String[] { \"abc\", \"def\", \"ghi\" }, msg.getMessageParameters()));\n }", "class_met...
{ "fields": [ { "declarator": "serialVersionUID = -243381506848710081L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -243381506848710081L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "type"...
{ "body": "public void setMessageParameters(String[] messageParameters) {\n this.messageParameters = messageParameters;\n }", "class_method_signature": "ValidationMessage.setMessageParameters(String[] messageParameters)", "constructor": false, "full_signature": "public void setMessageParameters(String...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_39
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void toStringTest() {\n Address address = createStructuredAddress();\n String addressText = address.toString();\n assertEquals(\"Address{type=STRUCTURED, name='Cornelia Singer', addressLine1='null', addressLine2='null', street='Alte Landstrasse', houseNo='73', postalCode='34...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "@Override\n public String toString() {\n return \"Address{\" +\n \"type=\" + type +\n \", name='\" + name + '\\'' +\n \", addressLine1='\" + addressLine1 + '\\'' +\n \", addressLine2='\" + addressLine2 + '\\'' +\n \", stre...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_38
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void hashObjectCombined() {\n Address address1 = createCombinedElementAddress();\n Address address2 = createCombinedElementAddress();\n assertEquals(address1.hashCode(), address2.hashCode());\n }", "class_method_signature": "AddressTest.hashObjectCombined()", "constru...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "@Override\n public int hashCode() {\n return Objects.hash(name, type, street, houseNo, addressLine1, addressLine2, postalCode, town, countryCode);\n }", "class_method_signature": "Address.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifie...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_2
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/ValidationMessageTest.java", "identifier": "ValidationMessageTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setMessageKey() {\n ValidationMessage msg = new ValidationMessage();\n msg.setMessageKey(\"msg.err.invalid\");\n assertEquals(\"msg.err.invalid\", msg.getMessageKey());\n }", "class_method_signature": "ValidationMessageTest.setMessageKey()", "constructor": false,...
{ "fields": [ { "declarator": "serialVersionUID = -243381506848710081L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -243381506848710081L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "type"...
{ "body": "public void setMessageKey(String messageKey) {\n this.messageKey = messageKey;\n }", "class_method_signature": "ValidationMessage.setMessageKey(String messageKey)", "constructor": false, "full_signature": "public void setMessageKey(String messageKey)", "identifier": "setMessageKey", "in...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_55
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVatEndDate() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setVatEndDate(LocalDate.of(2020, 2, 29));\n assertEquals(LocalDate.of(2020, 2, 29), billInformation.getVatEndDate());\n }", "class_method_signature": "SwicoBill...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setVatEndDate(LocalDate vatEndDate) {\n this.vatEndDate = vatEndDate;\n }", "class_method_signature": "SwicoBillInformation.setVatEndDate(LocalDate vatEndDate)", "constructor": false, "full_signature": "public void setVatEndDate(LocalDate vatEndDate)", "identifier": "setVatEnd...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_14
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVersion() {\n Bill bill = new Bill();\n bill.setVersion(null);\n assertNull(bill.getVersion());\n bill.setVersion(Version.V2_0);\n assertEquals(Version.V2_0, bill.getVersion());\n }", "class_method_signature": "BillTest.setVersion()", "constructo...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setVersion(Version version) {\n this.version = version;\n }", "class_method_signature": "Bill.setVersion(Version version)", "constructor": false, "full_signature": "public void setVersion(Version version)", "identifier": "setVersion", "invocations": [], "modifiers": "publi...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_43
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/StringsTest.java", "identifier": "StringsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void space() {\n assertTrue(Strings.isNullOrEmpty(\" \"));\n }", "class_method_signature": "StringsTest.space()", "constructor": false, "full_signature": "@Test void space()", "identifier": "space", "invocations": [ "assertTrue", "isNullOrEmpty" ], "modifiers": "@...
{ "fields": [], "file": "generator/src/main/java/net/codecrete/qrbill/generator/Strings.java", "identifier": "Strings", "interfaces": "", "methods": [ { "class_method_signature": "Strings.Strings()", "constructor": true, "full_signature": "private Strings()", "identifier": "String...
{ "body": "public static boolean isNullOrEmpty(String value) {\n return value == null || value.trim().length() == 0;\n }", "class_method_signature": "Strings.isNullOrEmpty(String value)", "constructor": false, "full_signature": "public static boolean isNullOrEmpty(String value)", "identifier": "isNu...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_34
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setPostalCode() {\n Address address = new Address();\n address.setPostalCode(\"BG19283\");\n assertEquals(\"BG19283\", address.getPostalCode());\n assertEquals(Address.Type.STRUCTURED, address.getType());\n }", "class_method_signature": "AddressTest.setPosta...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setPostalCode(String postalCode) {\n this.postalCode = postalCode;\n changeType(Type.STRUCTURED);\n }", "class_method_signature": "Address.setPostalCode(String postalCode)", "constructor": false, "full_signature": "public void setPostalCode(String postalCode)", "identif...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_63
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/ValidationResultTest.java", "identifier": "ValidationResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setCleanedBill() {\n ValidationResult result = new ValidationResult();\n result.setCleanedBill(SampleData.getExample2());\n\n assertEquals(SampleData.getExample2(), result.getCleanedBill());\n }", "class_method_signature": "ValidationResultTest.setCleanedBill()", ...
{ "fields": [ { "declarator": "serialVersionUID = -791181851684443602L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -791181851684443602L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "EMPTY...
{ "body": "public void setCleanedBill(Bill cleanedBill) {\n this.cleanedBill = cleanedBill;\n }", "class_method_signature": "ValidationResult.setCleanedBill(Bill cleanedBill)", "constructor": false, "full_signature": "public void setCleanedBill(Bill cleanedBill)", "identifier": "setCleanedBill", "...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_22
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setUnstructuredMessage() {\n Bill bill = new Bill();\n bill.setUnstructuredMessage(\"Rechnung 3849-2001\");\n assertEquals(\"Rechnung 3849-2001\", bill.getUnstructuredMessage());\n }", "class_method_signature": "BillTest.setUnstructuredMessage()", "constructor": ...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setUnstructuredMessage(String unstructuredMessage) {\n this.unstructuredMessage = unstructuredMessage;\n }", "class_method_signature": "Bill.setUnstructuredMessage(String unstructuredMessage)", "constructor": false, "full_signature": "public void setUnstructuredMessage(String un...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_59
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setPaymentConditions() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setPaymentConditions(Arrays.asList(\n new PaymentCondition(BigDecimal.valueOf(2.0), 10),\n new PaymentCondition(BigDecimal.ZERO, 30)\n ...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setPaymentConditions(List<PaymentCondition> paymentConditions) {\n this.paymentConditions = paymentConditions;\n }", "class_method_signature": "SwicoBillInformation.setPaymentConditions(List<PaymentCondition> paymentConditions)", "constructor": false, "full_signature": "public v...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_18
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setAccount() {\n Bill bill = new Bill();\n bill.setAccount(\"BD93020293480234\");\n assertEquals(\"BD93020293480234\", bill.getAccount());\n }", "class_method_signature": "BillTest.setAccount()", "constructor": false, "full_signature": "@Test void setAccount()"...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setAccount(String account) {\n this.account = account;\n }", "class_method_signature": "Bill.setAccount(String account)", "constructor": false, "full_signature": "public void setAccount(String account)", "identifier": "setAccount", "invocations": [], "modifiers": "public",...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_37
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void hashObjectStructured() {\n Address address1 = createStructuredAddress();\n Address address2 = createStructuredAddress();\n assertEquals(address1.hashCode(), address2.hashCode());\n }", "class_method_signature": "AddressTest.hashObjectStructured()", "constructor":...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "@Override\n public int hashCode() {\n return Objects.hash(name, type, street, houseNo, addressLine1, addressLine2, postalCode, town, countryCode);\n }", "class_method_signature": "Address.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifie...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_60
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testEquals() {\n SwicoBillInformation info1 = createBillInformation();\n SwicoBillInformation info2 = createBillInformation();\n assertEquals(info1, info2);\n assertEquals(info2, info1);\n\n info2.setCustomerReference(\"ABC\");\n assertNotEquals(inf...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n SwicoBillInformation that = (SwicoBillInformation) o;\n return Objects.equals(invoiceNumber, that.invoiceNumber) &&\n Obje...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_21
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setReferenceType() {\n Bill bill = new Bill();\n bill.setReferenceType(Bill.REFERENCE_TYPE_QR_REF);\n assertEquals(Bill.REFERENCE_TYPE_QR_REF, bill.getReferenceType());\n }", "class_method_signature": "BillTest.setReferenceType()", "constructor": false, "full_s...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setReferenceType(String referenceType) {\n this.referenceType = referenceType;\n }", "class_method_signature": "Bill.setReferenceType(String referenceType)", "constructor": false, "full_signature": "public void setReferenceType(String referenceType)", "identifier": "setReferen...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_1
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/ValidationMessageTest.java", "identifier": "ValidationMessageTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setField() {\n ValidationMessage msg = new ValidationMessage();\n msg.setField(\"tt3\");\n assertEquals(\"tt3\", msg.getField());\n }", "class_method_signature": "ValidationMessageTest.setField()", "constructor": false, "full_signature": "@Test void setField()"...
{ "fields": [ { "declarator": "serialVersionUID = -243381506848710081L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -243381506848710081L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "type"...
{ "body": "public void setField(String field) {\n this.field = field;\n }", "class_method_signature": "ValidationMessage.setField(String field)", "constructor": false, "full_signature": "public void setField(String field)", "identifier": "setField", "invocations": [], "modifiers": "public", "p...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_56
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVatRate() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setVatRate(BigDecimal.valueOf(7.7));\n assertEquals(7.7, billInformation.getVatRate().doubleValue());\n }", "class_method_signature": "SwicoBillInformationTest.set...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setVatRate(BigDecimal vatRate) {\n this.vatRate = vatRate;\n }", "class_method_signature": "SwicoBillInformation.setVatRate(BigDecimal vatRate)", "constructor": false, "full_signature": "public void setVatRate(BigDecimal vatRate)", "identifier": "setVatRate", "invocations": ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_17
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setCurrency() {\n Bill bill = new Bill();\n bill.setCurrency(\"EUR\");\n assertEquals(\"EUR\", bill.getCurrency());\n }", "class_method_signature": "BillTest.setCurrency()", "constructor": false, "full_signature": "@Test void setCurrency()", "identifier": "se...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setCurrency(String currency) {\n this.currency = currency;\n }", "class_method_signature": "Bill.setCurrency(String currency)", "constructor": false, "full_signature": "public void setCurrency(String currency)", "identifier": "setCurrency", "invocations": [], "modifiers": ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_40
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testEquals() {\n Address address1 = createCombinedElementAddress();\n Address address2 = createCombinedElementAddress();\n assertEquals(address1, address2);\n assertEquals(address2, address1);\n\n address2.setCountryCode(\"FR\");\n assertNotEquals(a...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Address address = (Address) o;\n return Objects.equals(name, address.name) &&\n type == address.type &&\n O...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_41
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/StringsTest.java", "identifier": "StringsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void nullValue() {\n assertTrue(Strings.isNullOrEmpty(null));\n }", "class_method_signature": "StringsTest.nullValue()", "constructor": false, "full_signature": "@Test void nullValue()", "identifier": "nullValue", "invocations": [ "assertTrue", "isNullOrEmpty" ], ...
{ "fields": [], "file": "generator/src/main/java/net/codecrete/qrbill/generator/Strings.java", "identifier": "Strings", "interfaces": "", "methods": [ { "class_method_signature": "Strings.Strings()", "constructor": true, "full_signature": "private Strings()", "identifier": "String...
{ "body": "public static boolean isNullOrEmpty(String value) {\n return value == null || value.trim().length() == 0;\n }", "class_method_signature": "Strings.isNullOrEmpty(String value)", "constructor": false, "full_signature": "public static boolean isNullOrEmpty(String value)", "identifier": "isNu...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_16
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setAmountFromDouble() {\n Bill bill = new Bill();\n bill.setAmountFromDouble(37.45);\n assertEquals(37.45, bill.getAmountAsDouble().doubleValue());\n assertEquals(BigDecimal.valueOf(3745, 2), bill.getAmount());\n }", "class_method_signature": "BillTest.setAm...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setAmountFromDouble(Double amount) {\n if (amount != null)\n this.amount = BigDecimal.valueOf((long) (amount * 100 + 0.5), 2);\n else\n this.amount = null;\n }", "class_method_signature": "Bill.setAmountFromDouble(Double amount)", "constructor": false,...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_57
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setVatRateDetails() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setVatRateDetails(Arrays.asList(\n new RateDetail(BigDecimal.valueOf(8, 0), BigDecimal.valueOf(1000, 0)),\n new RateDetail(BigDecimal.valu...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setVatRateDetails(List<RateDetail> vatRateDetails) {\n this.vatRateDetails = vatRateDetails;\n }", "class_method_signature": "SwicoBillInformation.setVatRateDetails(List<RateDetail> vatRateDetails)", "constructor": false, "full_signature": "public void setVatRateDetails(List<Rat...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_0
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/ValidationMessageTest.java", "identifier": "ValidationMessageTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setType() {\n ValidationMessage msg = new ValidationMessage();\n msg.setType(Type.ERROR);\n assertEquals(Type.ERROR, msg.getType());\n }", "class_method_signature": "ValidationMessageTest.setType()", "constructor": false, "full_signature": "@Test void setType()...
{ "fields": [ { "declarator": "serialVersionUID = -243381506848710081L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -243381506848710081L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "type"...
{ "body": "public void setType(Type type) {\n this.type = type;\n }", "class_method_signature": "ValidationMessage.setType(Type type)", "constructor": false, "full_signature": "public void setType(Type type)", "identifier": "setType", "invocations": [], "modifiers": "public", "parameters": "(T...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_20
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setReference() {\n Bill bill = new Bill();\n bill.setReference(\"RF839DF38202934\");\n assertEquals(\"RF839DF38202934\", bill.getReference());\n assertEquals(Bill.REFERENCE_TYPE_CRED_REF, bill.getReferenceType());\n }", "class_method_signature": "BillTest.se...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "public void setReference(String reference) {\n this.reference = reference;\n updateReferenceType();\n }", "class_method_signature": "Bill.setReference(String reference)", "constructor": false, "full_signature": "public void setReference(String reference)", "identifier": "setReferen...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_61
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testHashCode() {\n SwicoBillInformation info1 = createBillInformation();\n SwicoBillInformation info2 = createBillInformation();\n assertEquals(info1.hashCode(), info2.hashCode());\n }", "class_method_signature": "SwicoBillInformationTest.testHashCode()", "constr...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "@Override\n public int hashCode() {\n return Objects.hash(invoiceNumber, invoiceDate, customerReference, vatNumber, vatDate, vatStartDate, vatEndDate, vatRate, vatRateDetails, vatImportTaxes, paymentConditions);\n }", "class_method_signature": "SwicoBillInformation.hashCode()", "constructo...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_36
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setCountryCode() {\n Address address = new Address();\n address.setCountryCode(\"XY\");\n assertEquals(\"XY\", address.getCountryCode());\n }", "class_method_signature": "AddressTest.setCountryCode()", "constructor": false, "full_signature": "@Test void setCoun...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setCountryCode(String countryCode) {\n this.countryCode = countryCode;\n }", "class_method_signature": "Address.setCountryCode(String countryCode)", "constructor": false, "full_signature": "public void setCountryCode(String countryCode)", "identifier": "setCountryCode", "inv...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_7
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/QRBillTest.java", "identifier": "QRBillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void createQRBill1() {\n Bill bill = SampleData.getExample1();\n bill.getFormat().setOutputSize(OutputSize.QR_BILL_ONLY);\n bill.getFormat().setGraphicsFormat(GraphicsFormat.SVG);\n byte[] svg = QRBill.generate(bill);\n FileComparison.assertFileContentsEqual(sv...
{ "fields": [ { "declarator": "A4_PORTRAIT_WIDTH = 210", "modifier": "public static final", "original_string": "public static final double A4_PORTRAIT_WIDTH = 210;", "type": "double", "var_name": "A4_PORTRAIT_WIDTH" }, { "declarator": "A4_PORTRAIT_HEIGHT = 297", "...
{ "body": "public static byte[] generate(Bill bill) {\n try (Canvas canvas = createCanvas(bill.getFormat())) {\n validateAndGenerate(bill, canvas);\n return ((ByteArrayResult)canvas).toByteArray();\n } catch (IOException e) {\n throw new QRBillGenerationException(e);\n ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_50
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setInvoiceDate() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setInvoiceDate(LocalDate.of(2020, 6, 30));\n assertEquals(LocalDate.of(2020, 6, 30), billInformation.getInvoiceDate());\n }", "class_method_signature": "SwicoB...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setInvoiceDate(LocalDate invoiceDate) {\n this.invoiceDate = invoiceDate;\n }", "class_method_signature": "SwicoBillInformation.setInvoiceDate(LocalDate invoiceDate)", "constructor": false, "full_signature": "public void setInvoiceDate(LocalDate invoiceDate)", "identifier": "s...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_11
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/QRBillTest.java", "identifier": "QRBillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void createQRBill5() {\n Bill bill = SampleData.getExample3();\n bill.getFormat().setOutputSize(OutputSize.QR_BILL_WITH_HORIZONTAL_LINE);\n bill.getFormat().setGraphicsFormat(GraphicsFormat.SVG);\n byte[] svg = QRBill.generate(bill);\n FileComparison.assertFile...
{ "fields": [ { "declarator": "A4_PORTRAIT_WIDTH = 210", "modifier": "public static final", "original_string": "public static final double A4_PORTRAIT_WIDTH = 210;", "type": "double", "var_name": "A4_PORTRAIT_WIDTH" }, { "declarator": "A4_PORTRAIT_HEIGHT = 297", "...
{ "body": "public static byte[] generate(Bill bill) {\n try (Canvas canvas = createCanvas(bill.getFormat())) {\n validateAndGenerate(bill, canvas);\n return ((ByteArrayResult)canvas).toByteArray();\n } catch (IOException e) {\n throw new QRBillGenerationException(e);\n ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_46
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillFormatTest.java", "identifier": "BillFormatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void hashCodeTest() {\n BillFormat format1 = new BillFormat();\n BillFormat format2 = new BillFormat();\n assertEquals(format1.hashCode(), format2.hashCode());\n }", "class_method_signature": "BillFormatTest.hashCodeTest()", "constructor": false, "full_signature": "...
{ "fields": [ { "declarator": "serialVersionUID = -2874086922578292745L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2874086922578292745L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "out...
{ "body": "@Override\n public int hashCode() {\n\n return Objects.hash(outputSize, language, separatorType, fontFamily, graphicsFormat);\n }", "class_method_signature": "BillFormat.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_31
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setAddressLine2() {\n Address address = new Address();\n address.setAddressLine2(\"vbnm\");\n assertEquals(\"vbnm\", address.getAddressLine2());\n assertEquals(Address.Type.COMBINED_ELEMENTS, address.getType());\n }", "class_method_signature": "AddressTest.s...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setAddressLine2(String addressLine2) {\n this.addressLine2 = addressLine2;\n changeType(Type.COMBINED_ELEMENTS);\n }", "class_method_signature": "Address.setAddressLine2(String addressLine2)", "constructor": false, "full_signature": "public void setAddressLine2(String add...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_27
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testToString() {\n Bill bill = createBill();\n String text = bill.toString();\n assertEquals(\"Bill{version=V2_0, amount=100.30, currency='CHF', account='CH12343345345', creditor=Address{type=STRUCTURED, name='Vision Consult GmbH', addressLine1='null', addressLine2='nul...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "@Override\n public String toString() {\n return \"Bill{\" +\n \"version=\" + version +\n \", amount=\" + amount +\n \", currency='\" + currency + '\\'' +\n \", account='\" + account + '\\'' +\n \", creditor=\" + creditor +...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_26
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillTest.java", "identifier": "BillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testHashCode() {\n Bill bill1 = createBill();\n Bill bill2 = createBill();\n assertEquals(bill1.hashCode(), bill2.hashCode());\n }", "class_method_signature": "BillTest.testHashCode()", "constructor": false, "full_signature": "@Test void testHashCode()", "ide...
{ "fields": [ { "declarator": "serialVersionUID = -8104086304378262190L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8104086304378262190L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "REF...
{ "body": "@Override\n public int hashCode() {\n\n int result = Objects.hash(version, amount, currency, account, creditor, referenceType, reference,\n debtor, unstructuredMessage, billInformation, format);\n result = 31 * result + Arrays.hashCode(alternativeSchemes);\n return re...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_30
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AddressTest.java", "identifier": "AddressTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setAddressLine1() {\n Address address = new Address();\n address.setAddressLine1(\"TYUI\");\n assertEquals(\"TYUI\", address.getAddressLine1());\n assertEquals(Address.Type.COMBINED_ELEMENTS, address.getType());\n }", "class_method_signature": "AddressTest.s...
{ "fields": [ { "declarator": "serialVersionUID = -8833174154173397772L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8833174154173397772L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "typ...
{ "body": "public void setAddressLine1(String addressLine1) {\n this.addressLine1 = addressLine1;\n changeType(Type.COMBINED_ELEMENTS);\n }", "class_method_signature": "Address.setAddressLine1(String addressLine1)", "constructor": false, "full_signature": "public void setAddressLine1(String add...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_47
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/BillFormatTest.java", "identifier": "BillFormatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void toStringTest() {\n BillFormat format = new BillFormat();\n String text = format.toString();\n assertEquals(\"BillFormat{outputSize=QR_BILL_ONLY, language=EN, separatorType=DASHED_LINE_WITH_SCISSORS, fontFamily='Helvetica,Arial,\\\"Liberation Sans\\\"', graphicsFormat=SV...
{ "fields": [ { "declarator": "serialVersionUID = -2874086922578292745L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2874086922578292745L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "out...
{ "body": "@Override\n public String toString() {\n return \"BillFormat{\" +\n \"outputSize=\" + outputSize +\n \", language=\" + language +\n \", separatorType=\" + separatorType +\n \", fontFamily='\" + fontFamily + '\\'' +\n \", g...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_10
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/QRBillTest.java", "identifier": "QRBillTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void createQRBill4() {\n Bill bill = SampleData.getExample4();\n bill.getFormat().setOutputSize(OutputSize.QR_BILL_ONLY);\n bill.getFormat().setGraphicsFormat(GraphicsFormat.SVG);\n byte[] svg = QRBill.generate(bill);\n FileComparison.assertFileContentsEqual(sv...
{ "fields": [ { "declarator": "A4_PORTRAIT_WIDTH = 210", "modifier": "public static final", "original_string": "public static final double A4_PORTRAIT_WIDTH = 210;", "type": "double", "var_name": "A4_PORTRAIT_WIDTH" }, { "declarator": "A4_PORTRAIT_HEIGHT = 297", "...
{ "body": "public static byte[] generate(Bill bill) {\n try (Canvas canvas = createCanvas(bill.getFormat())) {\n validateAndGenerate(bill, canvas);\n return ((ByteArrayResult)canvas).toByteArray();\n } catch (IOException e) {\n throw new QRBillGenerationException(e);\n ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_51
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/SwicoBillInformationTest.java", "identifier": "SwicoBillInformationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setCustomerReference() {\n SwicoBillInformation billInformation = new SwicoBillInformation();\n billInformation.setCustomerReference(\"1234-ABC\");\n assertEquals(\"1234-ABC\", billInformation.getCustomerReference());\n }", "class_method_signature": "SwicoBillInfor...
{ "fields": [ { "declarator": "invoiceNumber", "modifier": "private", "original_string": "private String invoiceNumber;", "type": "String", "var_name": "invoiceNumber" }, { "declarator": "invoiceDate", "modifier": "private", "original_string": "private Local...
{ "body": "public void setCustomerReference(String customerReference) {\n this.customerReference = customerReference;\n }", "class_method_signature": "SwicoBillInformation.setCustomerReference(String customerReference)", "constructor": false, "full_signature": "public void setCustomerReference(String ...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
115604783_6
{ "fields": [], "file": "generator/src/test/java/net/codecrete/qrbill/generatortest/AlternativeSchemeTest.java", "identifier": "AlternativeSchemeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testHashCode() {\n AlternativeScheme scheme = new AlternativeScheme(\"Paymit\", \"PM,12341234,1241234\");\n assertEquals(1266162573, scheme.hashCode());\n }", "class_method_signature": "AlternativeSchemeTest.testHashCode()", "constructor": false, "full_signature": "@T...
{ "fields": [ { "declarator": "serialVersionUID = -8304082204378228870L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8304082204378228870L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "nam...
{ "body": "@Override\n public int hashCode() {\n\n return Objects.hash(name, instruction);\n }", "class_method_signature": "AlternativeScheme.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "invocations": [ "hash" ], "mod...
{ "created": "12/28/2017 8:58:28 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 115604783, "size": null, "stargazer_count": null, "stars": 18, "updates": "2020-01-18T21:44:07+00:00", "url": "https://github.com/manuelbl/SwissQ...
124518729_12
{ "fields": [ { "declarator": "mCodeBlockRule = null", "modifier": "private", "original_string": "private CodeBlockRule mCodeBlockRule = null;", "type": "CodeBlockRule", "var_name": "mCodeBlockRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/CodeBlockRu...
{ "body": "@Test\n\tpublic void shouldConformToCodeBlock() {\n\t\tList<String> strings = new ArrayList<>();\n\t\tstrings.add(\"```\");\n\t\tstrings.add(\"code\");\n\t\tstrings.add(\"```\");\n\t\tassertTrue(mCodeBlockRule.conforms(strings));\n\t}", "class_method_signature": "CodeBlockRuleTest.shouldConformToCodeBloc...
{ "fields": [ { "declarator": "CODE_PATTERN_START = Pattern.compile(\"^`{3}\")", "modifier": "private static final", "original_string": "private static final Pattern CODE_PATTERN_START = Pattern.compile(\"^`{3}\");", "type": "Pattern", "var_name": "CODE_PATTERN_START" }, { ...
{ "body": "@Override\n\tpublic boolean conforms(final List<String> pMarkdownLines) {\n\t\tif (!CODE_PATTERN_START.matcher(pMarkdownLines.get(0)).matches()) {\n\t\t\treturn false;\n\t\t}\n\t\tmLinesConsumed = 0;\n\t\tfor (String line : pMarkdownLines) {\n\t\t\tmLinesConsumed += 1;\n\t\t\tif (mLinesConsumed == 1) {\n\t...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_1
{ "fields": [ { "declarator": "mListRule = null", "modifier": "private", "original_string": "private ListRule mListRule = null;", "type": "ListRule", "var_name": "mListRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/ListRuleTest.java", "identifier": ...
{ "body": "@Test\n\tpublic void shouldNotConformToList() {\n\t\tList<String> strings = new ArrayList<>();\n\t\tstrings.add(\"#. Number 1\");\n\t\tassertFalse(mListRule.conforms(strings));\n\t}", "class_method_signature": "ListRuleTest.shouldNotConformToList()", "constructor": false, "full_signature": "@Test pub...
{ "fields": [ { "declarator": "INDENT_SIZE = 2", "modifier": "private static final", "original_string": "private static final int INDENT_SIZE = 2;", "type": "int", "var_name": "INDENT_SIZE" }, { "declarator": "mLinesConsumed = 0", "modifier": "private", "ori...
{ "body": "@Override\n\tpublic boolean conforms(final List<String> pMarkdownLines) {\n\t\tif (!ORDERED_LIST_PATTERN.matcher(pMarkdownLines.get(0)).matches()\n\t\t\t\t&& !UNORDERED_LIST_PATTERN.matcher(pMarkdownLines.get(0)).matches()) {\n\t\t\treturn false;\n\t\t}\n\t\tmLinesConsumed = 0;\n\t\tfor (String line : pMar...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_0
{ "fields": [ { "declarator": "mListRule = null", "modifier": "private", "original_string": "private ListRule mListRule = null;", "type": "ListRule", "var_name": "mListRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/ListRuleTest.java", "identifier": ...
{ "body": "@Test\n\tpublic void shouldConformToList() {\n\t\tList<String> strings = new ArrayList<>();\n\t\tstrings.add(\"1. Number 1\");\n\t\tassertTrue(mListRule.conforms(strings));\n\n\t\tstrings.clear();\n\t\tstrings.add(\"- Number 1\");\n\t\tassertTrue(mListRule.conforms(strings));\n\t}", "class_method_signatu...
{ "fields": [ { "declarator": "INDENT_SIZE = 2", "modifier": "private static final", "original_string": "private static final int INDENT_SIZE = 2;", "type": "int", "var_name": "INDENT_SIZE" }, { "declarator": "mLinesConsumed = 0", "modifier": "private", "ori...
{ "body": "@Override\n\tpublic boolean conforms(final List<String> pMarkdownLines) {\n\t\tif (!ORDERED_LIST_PATTERN.matcher(pMarkdownLines.get(0)).matches()\n\t\t\t\t&& !UNORDERED_LIST_PATTERN.matcher(pMarkdownLines.get(0)).matches()) {\n\t\t\treturn false;\n\t\t}\n\t\tmLinesConsumed = 0;\n\t\tfor (String line : pMar...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_13
{ "fields": [ { "declarator": "mCodeBlockRule = null", "modifier": "private", "original_string": "private CodeBlockRule mCodeBlockRule = null;", "type": "CodeBlockRule", "var_name": "mCodeBlockRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/CodeBlockRu...
{ "body": "@Test\n\tpublic void shouldNotConformToCodeBlock() {\n\t\tList<String> strings = new ArrayList<>();\n\t\tstrings.add(\"***\");\n\t\tstrings.add(\"code\");\n\t\tstrings.add(\"***\");\n\t\tassertFalse(mCodeBlockRule.conforms(strings));\n\t}", "class_method_signature": "CodeBlockRuleTest.shouldNotConformToC...
{ "fields": [ { "declarator": "CODE_PATTERN_START = Pattern.compile(\"^`{3}\")", "modifier": "private static final", "original_string": "private static final Pattern CODE_PATTERN_START = Pattern.compile(\"^`{3}\");", "type": "Pattern", "var_name": "CODE_PATTERN_START" }, { ...
{ "body": "@Override\n\tpublic boolean conforms(final List<String> pMarkdownLines) {\n\t\tif (!CODE_PATTERN_START.matcher(pMarkdownLines.get(0)).matches()) {\n\t\t\treturn false;\n\t\t}\n\t\tmLinesConsumed = 0;\n\t\tfor (String line : pMarkdownLines) {\n\t\t\tmLinesConsumed += 1;\n\t\t\tif (mLinesConsumed == 1) {\n\t...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_7
{ "fields": [ { "declarator": "mItalicRule = null", "modifier": "private", "original_string": "private ItalicRule mItalicRule = null;", "type": "ItalicRule", "var_name": "mItalicRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline/ItalicRuleTest.java...
{ "body": "@Test\n\tpublic void shouldNotCreateItalicString() {\n\t\tassertNotEquals(\"text\", mItalicRule.toMarkdownString(\"$$text$$\").getContent());\n\t}", "class_method_signature": "ItalicRuleTest.shouldNotCreateItalicString()", "constructor": false, "full_signature": "@Test public void shouldNotCreateItal...
{ "fields": [], "file": "markdown/src/main/java/com/m2mobi/basemarkdown/rule/inline/ItalicRule.java", "identifier": "ItalicRule", "interfaces": "implements InlineRule", "methods": [ { "class_method_signature": "ItalicRule.getRegex()", "constructor": false, "full_signature": "@Override pu...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(String pContent) {\n\t\tMatcher matcher = getRegex().matcher(pContent);\n\t\tString content = \"\";\n\t\tif (matcher.find()) {\n\t\t\tcontent = matcher.group(2);\n\t\t}\n\t\treturn new ItalicString(content, true);\n\t}", "class_method_signature": "Itali...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_18
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private Converter<Object> sut;", "type": "Converter<Object>", "var_name": "sut" } ], "file": "core/src/test/java/com/m2mobi/markymark/ConverterTest.java", "identifier": "ConverterTest", "inter...
{ "body": "@Test\n public void addMapping() {\n MockDisplayItem displayItem = new MockDisplayItem();\n sut.addMapping(displayItem);\n }", "class_method_signature": "ConverterTest.addMapping()", "constructor": false, "full_signature": "@Test public void addMapping()", "identifier": "addMapp...
{ "fields": [ { "declarator": "mMapping = new HashMap<>()", "modifier": "private final", "original_string": "private final Map<Class<? extends MarkdownItem>, DisplayItem<T, MarkdownItem, ?>> mMapping = new HashMap<>();", "type": "Map<Class<? extends MarkdownItem>, DisplayItem<T, MarkdownIt...
{ "body": "@SuppressWarnings(\"unchecked\")\n\tpublic final void addMapping(final DisplayItem pDisplayItem) {\n\t\t// amazing\n\t\tfinal Type type = pDisplayItem.getClass().getGenericInterfaces()[0];\n\t\tfinal Class<T> tClass = (Class<T>) ((ParameterizedType) type).getActualTypeArguments()[1];\n\t\tmMapping.put((Cla...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_14
{ "fields": [ { "declarator": "sot", "modifier": "", "original_string": "MarkdownLines sot;", "type": "MarkdownLines", "var_name": "sot" } ], "file": "core/src/test/java/com/m2mobi/markymark/MarkdownLinesTest.java", "identifier": "MarkdownLinesTest", "interfaces": "", "...
{ "body": "@Test\n public void removeLinesForRule() {\n Rule rule = INSTANCE.mock(Rule.class);\n every(mockKMatcherScope -> rule.getLinesConsumed())\n .returns(20);\n assertEquals(453, sot.getLines().size());\n sot.removeLinesForRule(rule);\n assertEquals(433, sot....
{ "fields": [ { "declarator": "mLines", "modifier": "private", "original_string": "private List<String> mLines;", "type": "List<String>", "var_name": "mLines" } ], "file": "core/src/main/java/com/m2mobi/markymark/MarkdownLines.java", "identifier": "MarkdownLines", "interf...
{ "body": "void removeLinesForRule(final Rule pRule) {\n\t\tfor (int i = 0; i < pRule.getLinesConsumed(); i++) {\n\t\t\tmLines.remove(0);\n\t\t}\n\t}", "class_method_signature": "MarkdownLines.removeLinesForRule(final Rule pRule)", "constructor": false, "full_signature": " void removeLinesForRule(final Rule pRu...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_15
{ "fields": [ { "declarator": "sot", "modifier": "", "original_string": "MarkdownLines sot;", "type": "MarkdownLines", "var_name": "sot" } ], "file": "core/src/test/java/com/m2mobi/markymark/MarkdownLinesTest.java", "identifier": "MarkdownLinesTest", "interfaces": "", "...
{ "body": "@Test\n public void isEmpty() {\n assertFalse(sot.isEmpty());\n }", "class_method_signature": "MarkdownLinesTest.isEmpty()", "constructor": false, "full_signature": "@Test public void isEmpty()", "identifier": "isEmpty", "invocations": [ "assertFalse", "isEmpty" ], "modif...
{ "fields": [ { "declarator": "mLines", "modifier": "private", "original_string": "private List<String> mLines;", "type": "List<String>", "var_name": "mLines" } ], "file": "core/src/main/java/com/m2mobi/markymark/MarkdownLines.java", "identifier": "MarkdownLines", "interf...
{ "body": "boolean isEmpty() {\n\t\treturn mLines.isEmpty();\n\t}", "class_method_signature": "MarkdownLines.isEmpty()", "constructor": false, "full_signature": " boolean isEmpty()", "identifier": "isEmpty", "invocations": [ "isEmpty" ], "modifiers": "", "parameters": "()", "return": "boolean", ...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_6
{ "fields": [ { "declarator": "mItalicRule = null", "modifier": "private", "original_string": "private ItalicRule mItalicRule = null;", "type": "ItalicRule", "var_name": "mItalicRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline/ItalicRuleTest.java...
{ "body": "@Test\n\tpublic void shouldCreateItalicString() {\n\t\tassertEquals(\"text\", mItalicRule.toMarkdownString(\"*text*\").getContent());\n\t}", "class_method_signature": "ItalicRuleTest.shouldCreateItalicString()", "constructor": false, "full_signature": "@Test public void shouldCreateItalicString()", ...
{ "fields": [], "file": "markdown/src/main/java/com/m2mobi/basemarkdown/rule/inline/ItalicRule.java", "identifier": "ItalicRule", "interfaces": "implements InlineRule", "methods": [ { "class_method_signature": "ItalicRule.getRegex()", "constructor": false, "full_signature": "@Override pu...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(String pContent) {\n\t\tMatcher matcher = getRegex().matcher(pContent);\n\t\tString content = \"\";\n\t\tif (matcher.find()) {\n\t\t\tcontent = matcher.group(2);\n\t\t}\n\t\treturn new ItalicString(content, true);\n\t}", "class_method_signature": "Itali...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_5
{ "fields": [ { "declarator": "mBoldRule = null", "modifier": "private", "original_string": "private BoldRule mBoldRule = null;", "type": "BoldRule", "var_name": "mBoldRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline/BoldRuleTest.java", "identi...
{ "body": "@Test\n\tpublic void shouldNotCreateBoldString() {\n\t\tassertNotEquals(\"text\", mBoldRule.toMarkdownString(\"$$text$$\").getContent());\n\t}", "class_method_signature": "BoldRuleTest.shouldNotCreateBoldString()", "constructor": false, "full_signature": "@Test public void shouldNotCreateBoldString()...
{ "fields": [ { "declarator": "PATTERN_ASTERISK = \"*\"", "modifier": "public final static", "original_string": "public final static String PATTERN_ASTERISK = \"*\";", "type": "String", "var_name": "PATTERN_ASTERISK" }, { "declarator": "PATTERN_UNDERSCORE = \"_\"", ...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(String pContent) {\n\t\tMatcher matcher = getRegex().matcher(pContent);\n\t\tString content = \"\";\n\t\tif (matcher.find()) {\n\t\t\tcontent = matcher.group(2);\n\t\t}\n\t\treturn new BoldString(content, true);\n\t}", "class_method_signature": "BoldRul...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_16
{ "fields": [ { "declarator": "sot", "modifier": "", "original_string": "MarkdownLines sot;", "type": "MarkdownLines", "var_name": "sot" } ], "file": "core/src/test/java/com/m2mobi/markymark/MarkdownLinesTest.java", "identifier": "MarkdownLinesTest", "interfaces": "", "...
{ "body": "@Test\n public void getLines() {\n assertEquals(453, sot.getLines().size());\n }", "class_method_signature": "MarkdownLinesTest.getLines()", "constructor": false, "full_signature": "@Test public void getLines()", "identifier": "getLines", "invocations": [ "assertEquals", "siz...
{ "fields": [ { "declarator": "mLines", "modifier": "private", "original_string": "private List<String> mLines;", "type": "List<String>", "var_name": "mLines" } ], "file": "core/src/main/java/com/m2mobi/markymark/MarkdownLines.java", "identifier": "MarkdownLines", "interf...
{ "body": "List<String> getLines() {\n\t\treturn mLines;\n\t}", "class_method_signature": "MarkdownLines.getLines()", "constructor": false, "full_signature": " List<String> getLines()", "identifier": "getLines", "invocations": [], "modifiers": "", "parameters": "()", "return": "List<String>", "signa...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_9
{ "fields": [ { "declarator": "mInlineCodeRule = null", "modifier": "private", "original_string": "private InlineCodeRule mInlineCodeRule = null;", "type": "InlineCodeRule", "var_name": "mInlineCodeRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline...
{ "body": "@Test\n\tpublic void shouldNotCreateInlineCodeString() {\n\t\tassertNotEquals(\"text\", mInlineCodeRule.toMarkdownString(\"$$text$$\").getContent());\n\t}", "class_method_signature": "InlineCodeRuleTest.shouldNotCreateInlineCodeString()", "constructor": false, "full_signature": "@Test public void sho...
{ "fields": [], "file": "markdown/src/main/java/com/m2mobi/basemarkdown/rule/inline/InlineCodeRule.java", "identifier": "InlineCodeRule", "interfaces": "implements InlineRule", "methods": [ { "class_method_signature": "InlineCodeRule.getRegex()", "constructor": false, "full_signature": "...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(final String content) {\n\t\tfinal Matcher matcher = getRegex().matcher(content);\n\t\tif (matcher.find()) {\n\t\t\treturn new CodeString(matcher.group(1), false);\n\t\t}\n\t\treturn new CodeString(\"\", false);\n\t}", "class_method_signature": "InlineC...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_8
{ "fields": [ { "declarator": "mInlineCodeRule = null", "modifier": "private", "original_string": "private InlineCodeRule mInlineCodeRule = null;", "type": "InlineCodeRule", "var_name": "mInlineCodeRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline...
{ "body": "@Test\n\tpublic void shouldCreateInlineCodeString() {\n\t\tassertEquals(\"text\", mInlineCodeRule.toMarkdownString(\"`text`\").getContent());\n\t}", "class_method_signature": "InlineCodeRuleTest.shouldCreateInlineCodeString()", "constructor": false, "full_signature": "@Test public void shouldCreateIn...
{ "fields": [], "file": "markdown/src/main/java/com/m2mobi/basemarkdown/rule/inline/InlineCodeRule.java", "identifier": "InlineCodeRule", "interfaces": "implements InlineRule", "methods": [ { "class_method_signature": "InlineCodeRule.getRegex()", "constructor": false, "full_signature": "...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(final String content) {\n\t\tfinal Matcher matcher = getRegex().matcher(content);\n\t\tif (matcher.find()) {\n\t\t\treturn new CodeString(matcher.group(1), false);\n\t\t}\n\t\treturn new CodeString(\"\", false);\n\t}", "class_method_signature": "InlineC...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_17
{ "fields": [ { "declarator": "sot", "modifier": "", "original_string": "MarkdownLines sot;", "type": "MarkdownLines", "var_name": "sot" } ], "file": "core/src/test/java/com/m2mobi/markymark/MarkdownLinesTest.java", "identifier": "MarkdownLinesTest", "interfaces": "", "...
{ "body": "@Test\n public void getLinesSubset() {\n assertEquals(10, sot.getLines(10).size());\n }", "class_method_signature": "MarkdownLinesTest.getLinesSubset()", "constructor": false, "full_signature": "@Test public void getLinesSubset()", "identifier": "getLinesSubset", "invocations": [ ...
{ "fields": [ { "declarator": "mLines", "modifier": "private", "original_string": "private List<String> mLines;", "type": "List<String>", "var_name": "mLines" } ], "file": "core/src/main/java/com/m2mobi/markymark/MarkdownLines.java", "identifier": "MarkdownLines", "interf...
{ "body": "List<String> getLines() {\n\t\treturn mLines;\n\t}", "class_method_signature": "MarkdownLines.getLines()", "constructor": false, "full_signature": " List<String> getLines()", "identifier": "getLines", "invocations": [], "modifiers": "", "parameters": "()", "return": "List<String>", "signa...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_4
{ "fields": [ { "declarator": "mBoldRule = null", "modifier": "private", "original_string": "private BoldRule mBoldRule = null;", "type": "BoldRule", "var_name": "mBoldRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline/BoldRuleTest.java", "identi...
{ "body": "@Test\n\tpublic void shouldCreateBoldString() {\n\t\tassertEquals(\"text\", mBoldRule.toMarkdownString(\"__text__\").getContent());\n\t}", "class_method_signature": "BoldRuleTest.shouldCreateBoldString()", "constructor": false, "full_signature": "@Test public void shouldCreateBoldString()", "identi...
{ "fields": [ { "declarator": "PATTERN_ASTERISK = \"*\"", "modifier": "public final static", "original_string": "public final static String PATTERN_ASTERISK = \"*\";", "type": "String", "var_name": "PATTERN_ASTERISK" }, { "declarator": "PATTERN_UNDERSCORE = \"_\"", ...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(String pContent) {\n\t\tMatcher matcher = getRegex().matcher(pContent);\n\t\tString content = \"\";\n\t\tif (matcher.find()) {\n\t\t\tcontent = matcher.group(2);\n\t\t}\n\t\treturn new BoldString(content, true);\n\t}", "class_method_signature": "BoldRul...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_10
{ "fields": [ { "declarator": "mQuoteRule = null", "modifier": "private", "original_string": "private QuoteRule mQuoteRule = null;", "type": "QuoteRule", "var_name": "mQuoteRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/QuoteRuleTest.java", "identif...
{ "body": "@Test\n\tpublic void shouldBeQuote() {\n\t\tList<String> strings = new ArrayList<>();\n\t\tstrings.add(\"> Quote\");\n\t\tassertTrue(mQuoteRule.conforms(strings));\n\t}", "class_method_signature": "QuoteRuleTest.shouldBeQuote()", "constructor": false, "full_signature": "@Test public void shouldBeQuot...
{ "fields": [ { "declarator": "QUOTE_PATTERN = Pattern.compile(\"(^>+)(.*?)$\")", "modifier": "private static final", "original_string": "private static final Pattern QUOTE_PATTERN = Pattern.compile(\"(^>+)(.*?)$\");", "type": "Pattern", "var_name": "QUOTE_PATTERN" } ], "file...
{ "body": "@Override\n\tpublic boolean conforms(final List<String> pMarkdownLines) {\n\t\treturn QUOTE_PATTERN.matcher(pMarkdownLines.get(0)).matches();\n\t}", "class_method_signature": "QuoteRule.conforms(final List<String> pMarkdownLines)", "constructor": false, "full_signature": "@Override public boolean con...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_3
{ "fields": [ { "declarator": "mStrikeRule = null", "modifier": "private", "original_string": "private StrikeRule mStrikeRule = null;", "type": "StrikeRule", "var_name": "mStrikeRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline/StrikeRuleTest.java...
{ "body": "@Test\n\tpublic void shouldNotCreateStrikeString() {\n\t\tassertNotEquals(\"text\", mStrikeRule.toMarkdownString(\"$$text$$\").getContent());\n\t}", "class_method_signature": "StrikeRuleTest.shouldNotCreateStrikeString()", "constructor": false, "full_signature": "@Test public void shouldNotCreateStri...
{ "fields": [], "file": "markdown/src/main/java/com/m2mobi/basemarkdown/rule/inline/StrikeRule.java", "identifier": "StrikeRule", "interfaces": "implements InlineRule", "methods": [ { "class_method_signature": "StrikeRule.getRegex()", "constructor": false, "full_signature": "@Override pu...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(final String pContent) {\n\t\tMatcher matcher = getRegex().matcher(pContent);\n\t\tString content = \"\";\n\t\tif (matcher.find()) {\n\t\t\tcontent = matcher.group(1);\n\t\t}\n\t\treturn new StrikeString(content, true);\n\t}", "class_method_signature": ...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_2
{ "fields": [ { "declarator": "mStrikeRule = null", "modifier": "private", "original_string": "private StrikeRule mStrikeRule = null;", "type": "StrikeRule", "var_name": "mStrikeRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/inline/StrikeRuleTest.java...
{ "body": "@Test\n\tpublic void shouldCreateStrikeString() {\n\t\tassertEquals(\"text\", mStrikeRule.toMarkdownString(\"~~text~~\").getContent());\n\t}", "class_method_signature": "StrikeRuleTest.shouldCreateStrikeString()", "constructor": false, "full_signature": "@Test public void shouldCreateStrikeString()",...
{ "fields": [], "file": "markdown/src/main/java/com/m2mobi/basemarkdown/rule/inline/StrikeRule.java", "identifier": "StrikeRule", "interfaces": "implements InlineRule", "methods": [ { "class_method_signature": "StrikeRule.getRegex()", "constructor": false, "full_signature": "@Override pu...
{ "body": "@Override\n\tpublic MarkdownString toMarkdownString(final String pContent) {\n\t\tMatcher matcher = getRegex().matcher(pContent);\n\t\tString content = \"\";\n\t\tif (matcher.find()) {\n\t\t\tcontent = matcher.group(1);\n\t\t}\n\t\treturn new StrikeString(content, true);\n\t}", "class_method_signature": ...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
124518729_11
{ "fields": [ { "declarator": "mQuoteRule = null", "modifier": "private", "original_string": "private QuoteRule mQuoteRule = null;", "type": "QuoteRule", "var_name": "mQuoteRule" } ], "file": "markdown/src/test/java/com/m2mobi/basemarkdown/rule/QuoteRuleTest.java", "identif...
{ "body": "@Test\n\tpublic void shouldNotBeQuote() {\n\t\tList<String> strings = new ArrayList<>();\n\t\tstrings.add(\"< Quote\");\n\t\tassertFalse(mQuoteRule.conforms(strings));\n\t}", "class_method_signature": "QuoteRuleTest.shouldNotBeQuote()", "constructor": false, "full_signature": "@Test public void shoul...
{ "fields": [ { "declarator": "QUOTE_PATTERN = Pattern.compile(\"(^>+)(.*?)$\")", "modifier": "private static final", "original_string": "private static final Pattern QUOTE_PATTERN = Pattern.compile(\"(^>+)(.*?)$\");", "type": "Pattern", "var_name": "QUOTE_PATTERN" } ], "file...
{ "body": "@Override\n\tpublic boolean conforms(final List<String> pMarkdownLines) {\n\t\treturn QUOTE_PATTERN.matcher(pMarkdownLines.get(0)).matches();\n\t}", "class_method_signature": "QuoteRule.conforms(final List<String> pMarkdownLines)", "constructor": false, "full_signature": "@Override public boolean con...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 124518729, "size": 784, "stargazer_count": 18, "stars": null, "updates": null, "url": "https://github.com/M2Mobi/MarkyMark-Android" }
37728390_11
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetHidden()\n {\n System.out.println(\"setHidden\");\n boolean hidden = true;\n AttributeValue instance = new AttributeValue();\n instance.setHidden(hidden);\n // TODO review the generated test code and remove the default call to fail.\n// ...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public void setHidden(boolean hidden)\n {\n this.hidden = hidden;\n }", "class_method_signature": "AttributeValue.setHidden(boolean hidden)", "constructor": false, "full_signature": "public void setHidden(boolean hidden)", "identifier": "setHidden", "invocations": [], "modifiers": ...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_9
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetString()\n {\n System.out.println(\"getString\");\n AttributeValue instance = new AttributeValue(\"foo\");\n String expResult = \"foo\";\n String result = instance.getString();\n assertEquals(expResult, result);\n // TODO review the...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public String getString()\n {\n return (String) getValue();\n }", "class_method_signature": "AttributeValue.getString()", "constructor": false, "full_signature": "public String getString()", "identifier": "getString", "invocations": [ "getValue" ], "modifiers": "public", "p...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_5
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetInteger()\n {\n System.out.println(\"getInteger\");\n AttributeValue instance = new AttributeValue(new Integer(42));\n Integer expResult = new Integer(42);\n Integer result = instance.getInteger();\n assertEquals(expResult, result);\n ...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public Integer getInteger()\n {\n return (Integer) getValue();\n }", "class_method_signature": "AttributeValue.getInteger()", "constructor": false, "full_signature": "public Integer getInteger()", "identifier": "getInteger", "invocations": [ "getValue" ], "modifiers": "public...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_4
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetInteger()\n {\n System.out.println(\"setInteger\");\n Integer value = new Integer(42);\n AttributeValue instance = new AttributeValue();\n instance.setInteger(value);\n // TODO review the generated test code and remove the default call to ...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public void setInteger(int value)\n {\n setValue(new Integer(value));\n }", "class_method_signature": "AttributeValue.setInteger(int value)", "constructor": false, "full_signature": "public void setInteger(int value)", "identifier": "setInteger", "invocations": [ "setValue" ], ...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_8
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetString()\n {\n System.out.println(\"setString\");\n String value = \"foo\";\n AttributeValue instance = new AttributeValue();\n instance.setString(value);\n // TODO review the generated test code and remove the default call to fail.\n// ...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public void setString(String value)\n {\n setValue(value);\n }", "class_method_signature": "AttributeValue.setString(String value)", "constructor": false, "full_signature": "public void setString(String value)", "identifier": "setString", "invocations": [ "setValue" ], "modif...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_10
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsHidden()\n {\n System.out.println(\"isHidden\");\n AttributeValue instance = new AttributeValue();\n boolean expResult = false;\n boolean result = instance.isHidden();\n assertEquals(expResult, result);\n // TODO review the generated...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public boolean isHidden()\n {\n return hidden;\n }", "class_method_signature": "AttributeValue.isHidden()", "constructor": false, "full_signature": "public boolean isHidden()", "identifier": "isHidden", "invocations": [], "modifiers": "public", "parameters": "()", "return": "bo...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_3
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetValue()\n {\n System.out.println(\"setValue\");\n Object value = new Double(123.45);\n AttributeValue instance = new AttributeValue();\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public void setValue(Object value)\n {\n this.value = value;\n }", "class_method_signature": "AttributeValue.setValue(Object value)", "constructor": false, "full_signature": "public void setValue(Object value)", "identifier": "setValue", "invocations": [], "modifiers": "public", ...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_2
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetValue()\n {\n System.out.println(\"getValue\");\n AttributeValue instance = new AttributeValue(new Integer(42));\n\n Object expResult = new Integer(42);\n\n Object result = instance.getValue();\n \n assertEquals(expResult, result);\...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "public Object getValue()\n {\n return value;\n }", "class_method_signature": "AttributeValue.getValue()", "constructor": false, "full_signature": "public Object getValue()", "identifier": "getValue", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Objec...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_1
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testClone()\n {\n System.out.println(\"clone\");\n AttributeValue instance = new AttributeValue();\n \n instance.setInteger(42);\n instance.setHidden(true);\n\n Object expResult = instance;\n Object result = instance.clone();\n ...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "@Override\n public Object clone()\n {\n AttributeValue a = new AttributeValue(getValue(), isHidden());\n return a;\n }", "class_method_signature": "AttributeValue.clone()", "constructor": false, "full_signature": "@Override public Object clone()", "identifier": "clone", "in...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_15
{ "fields": [ { "declarator": "factory = new GeometryFactory()", "modifier": "private", "original_string": "private GeometryFactory factory = new GeometryFactory();", "type": "GeometryFactory", "var_name": "factory" } ], "file": "contrib/geomason/src/test/java/sim/field/geo/G...
{ "body": "@Test\n public void testGetObjectsWithinDistance()\n {\n System.out.println(\"getObjectsWithinDistance\");\n\n GeomVectorField instance = new GeomVectorField();\n\n addEvenlySpacedPoints(100, 100, 10, instance);\n\n MasonGeometry testPoint = new MasonGeometry(createPoint(5...
{ "fields": [ { "declarator": "serialVersionUID = -754748817928825708L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -754748817928825708L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "spati...
{ "body": "public Bag getObjectsWithinDistance(final Geometry g, final double dist)\n {\n Bag nearbyObjects = new Bag();\n Envelope e = g.getEnvelopeInternal();\n e.expandBy(dist);\n\n List<?> gList = spatialIndex.query(e);\n\n // However, the JTS QuadTree query is a little slopp...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_14
{ "fields": [ { "declarator": "factory = new GeometryFactory()", "modifier": "private", "original_string": "private GeometryFactory factory = new GeometryFactory();", "type": "GeometryFactory", "var_name": "factory" } ], "file": "contrib/geomason/src/test/java/sim/field/geo/G...
{ "body": "@Test\n public void testQueryField()\n {\n System.out.println(\"queryField\");\n\n Envelope e = new Envelope(40, 60, 40, 60);\n GeomVectorField instance = new GeomVectorField();\n\n addEvenlySpacedPoints(100, 100, 10, instance);\n\n Bag result = instance.queryField(...
{ "fields": [ { "declarator": "serialVersionUID = -754748817928825708L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -754748817928825708L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "spati...
{ "body": "public synchronized Bag queryField(Envelope e)\n {\n List<?> gList = spatialIndex.query(e);\n Bag geometries = new Bag(gList.size());\n\n // However, the JTS QuadTree query is a little sloppy, which means it\n // may return objects that are still outside the range. We need t...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }
37728390_0
{ "fields": [], "file": "contrib/geomason/src/test/java/sim/util/geo/AttributeValueTest.java", "identifier": "AttributeValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToString()\n {\n System.out.println(\"toString\");\n AttributeValue instance = new AttributeValue();\n \n instance.setInteger(42);\n instance.setHidden(true);\n\n String expResult = \"Value: 42 Hidden: true\";\n String result = ...
{ "fields": [ { "declarator": "serialVersionUID = -2342742107342686581L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2342742107342686581L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "val...
{ "body": "@Override\n public String toString()\n {\n return \"Value: \" + getValue() + \" Hidden: \" + isHidden();\n }", "class_method_signature": "AttributeValue.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocation...
{ "created": "6/19/2015 3:04:41 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 37728390, "size": null, "stargazer_count": null, "stars": 94, "updates": "2020-01-06T15:38:11+00:00", "url": "https://github.com/eclab/mason" }