id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
1710792_0
{ "fields": [], "file": "core/src/test/java/com/lightboxtechnologies/spectrum/HexWritableTest.java", "identifier": "HexWritableTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void toStringTest() throws Exception {\n final Hex hex = new Hex();\n final String str = \"DEADBEEF\";\n final HexWritable hw = new HexWritable(hex.decode(str.getBytes()));\n assertEquals(str, hw.toString().toUpperCase());\n }", "class_method_signature": "HexWritableTest.toSt...
{ "fields": [], "file": "core/src/main/java/com/lightboxtechnologies/spectrum/HexWritable.java", "identifier": "HexWritable", "interfaces": "", "methods": [ { "class_method_signature": "HexWritable.HexWritable()", "constructor": true, "full_signature": "public HexWritable()", "ide...
{ "body": "@Override\n public String toString() {\n final Hex hex = new Hex();\n final byte[] bytes = new byte[getLength()];\n System.arraycopy(getBytes(), 0, bytes, 0, bytes.length);\n return new String(hex.encode(bytes));\n }", "class_method_signature": "HexWritable.toString()", "constructor": fal...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1710792, "size": 57616, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/jonstewart/sleuthkit-hadoop" }
1710792_3
{ "fields": [], "file": "core/src/test/java/com/lightboxtechnologies/spectrum/PythonJobTest.java", "identifier": "PythonJobTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreateFailure() {\n assertEquals(null, PythonJob.createOutputType(\"string\"));\n }", "class_method_signature": "PythonJobTest.testCreateFailure()", "constructor": false, "full_signature": "@Test public void testCreateFailure()", "identifier": "testCreateFailure", "in...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(PythonJob.class.getName())", "modifier": "public static final", "original_string": "public static final Log LOG = LogFactory.getLog(PythonJob.class.getName());", "type": "Log", "var_name": "LOG" } ], "file": "core/src/mai...
{ "body": "static BoxerUnboxer<?,? extends Writable> createOutputType(String type) {\n if (\"text\".equals(type)) {\n return new TextBoxerUnboxer();\n }\n else if (\"long\".equals(type)) {\n return new LongBoxerUnboxer();\n }\n else if (\"double\".equals(type)) {\n return new DoubleBoxer...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1710792, "size": 57616, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/jonstewart/sleuthkit-hadoop" }
1710792_2
{ "fields": [], "file": "core/src/test/java/com/lightboxtechnologies/spectrum/PythonJobTest.java", "identifier": "PythonJobTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreateLong() {\n assertTrue(PythonJob.createOutputType(\"long\") instanceof LongBoxerUnboxer);\n }", "class_method_signature": "PythonJobTest.testCreateLong()", "constructor": false, "full_signature": "@Test public void testCreateLong()", "identifier": "testCreateLong",...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(PythonJob.class.getName())", "modifier": "public static final", "original_string": "public static final Log LOG = LogFactory.getLog(PythonJob.class.getName());", "type": "Log", "var_name": "LOG" } ], "file": "core/src/mai...
{ "body": "static BoxerUnboxer<?,? extends Writable> createOutputType(String type) {\n if (\"text\".equals(type)) {\n return new TextBoxerUnboxer();\n }\n else if (\"long\".equals(type)) {\n return new LongBoxerUnboxer();\n }\n else if (\"double\".equals(type)) {\n return new DoubleBoxer...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1710792, "size": 57616, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/jonstewart/sleuthkit-hadoop" }
1710792_5
{ "fields": [], "file": "core/src/test/java/com/lightboxtechnologies/spectrum/PythonJobTest.java", "identifier": "PythonJobTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreateJson() {\n assertTrue(PythonJob.createOutputType(\"json\") instanceof JsonBoxerUnboxer);\n }", "class_method_signature": "PythonJobTest.testCreateJson()", "constructor": false, "full_signature": "@Test public void testCreateJson()", "identifier": "testCreateJson",...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(PythonJob.class.getName())", "modifier": "public static final", "original_string": "public static final Log LOG = LogFactory.getLog(PythonJob.class.getName());", "type": "Log", "var_name": "LOG" } ], "file": "core/src/mai...
{ "body": "static BoxerUnboxer<?,? extends Writable> createOutputType(String type) {\n if (\"text\".equals(type)) {\n return new TextBoxerUnboxer();\n }\n else if (\"long\".equals(type)) {\n return new LongBoxerUnboxer();\n }\n else if (\"double\".equals(type)) {\n return new DoubleBoxer...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1710792, "size": 57616, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/jonstewart/sleuthkit-hadoop" }
1710792_4
{ "fields": [], "file": "core/src/test/java/com/lightboxtechnologies/spectrum/PythonJobTest.java", "identifier": "PythonJobTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreateDouble() {\n assertTrue(PythonJob.createOutputType(\"double\") instanceof DoubleBoxerUnboxer);\n }", "class_method_signature": "PythonJobTest.testCreateDouble()", "constructor": false, "full_signature": "@Test public void testCreateDouble()", "identifier": "testCr...
{ "fields": [ { "declarator": "LOG = LogFactory.getLog(PythonJob.class.getName())", "modifier": "public static final", "original_string": "public static final Log LOG = LogFactory.getLog(PythonJob.class.getName());", "type": "Log", "var_name": "LOG" } ], "file": "core/src/mai...
{ "body": "static BoxerUnboxer<?,? extends Writable> createOutputType(String type) {\n if (\"text\".equals(type)) {\n return new TextBoxerUnboxer();\n }\n else if (\"long\".equals(type)) {\n return new LongBoxerUnboxer();\n }\n else if (\"double\".equals(type)) {\n return new DoubleBoxer...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1710792, "size": 57616, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/jonstewart/sleuthkit-hadoop" }
806019_41
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToStringOk() throws Exception\n {\n Assert.assertEquals(value0.getString(), \"0\");\n Assert.assertEquals(value1.getString(), \"1\");\n Assert.assertEquals(value127.getString(), \"127\");\n Assert.assertEquals(valueMinus128...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public String getString()\n {\n return String.valueOf(value);\n }", "class_method_signature": "ByteDataItem.getString()", "constructor": false, "full_signature": "@Override public String getString()", "identifier": "getString", "invocations": [ "valueOf" ], "mo...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_9
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLong() throws Exception\n {\n Assert.assertEquals(value0.getLong(), Long.valueOf(0));\n Assert.assertEquals(value1.getLong(), Long.valueOf(1));\n Assert.assertEquals(value1000000.getLong(), Long.valueOf(1000000));\n Asser...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Long getLong()\n {\n return value.longValue();\n }", "class_method_signature": "IntegerDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [ "longValue" ], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_16
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToBoolean() throws Exception\n {\n Assert.assertEquals(trueDataItem.getBoolean().booleanValue(), true);\n Assert.assertEquals(falseDataItem.getBoolean().booleanValue(), false);\n }", "class_method_signature": "TestBooleanDataItem.te...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return value;\n }", "class_method_signature": "BooleanDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [], "modifiers": "@Override pub...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_57
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToShort() throws Exception\n {\n Assert.assertEquals(value0.getShort(), Short.valueOf((short) 0));\n Assert.assertEquals(value1.getShort(), Short.valueOf((short) 1));\n Assert.assertEquals(value1000.getShort(), Short.valueOf((shor...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Short getShort()\n {\n return value;\n }", "class_method_signature": "ShortDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [], "modifiers": "@Override public", "param...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_20
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDouble() throws Exception\n {\n Assert.assertEquals(trueDataItem.getDouble(), 1.0);\n Assert.assertEquals(falseDataItem.getDouble(), 0.0);\n }", "class_method_signature": "TestBooleanDataItem.testConvertToDouble()", "constructor...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Double getDouble()\n {\n return getByte().doubleValue();\n }", "class_method_signature": "BooleanDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [ "doubleValue", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_77
{ "fields": [ { "declarator": "event", "modifier": "private", "original_string": "private Event event;", "type": "Event", "var_name": "event" }, { "declarator": "delegateWriter", "modifier": "private", "original_string": "private MockEventWriter delegateWrit...
{ "body": "@Test(groups = \"fast\")\n public void testWriteException() throws Exception\n {\n //make sure exceptions aren't swallowed\n try {\n delegateWriter.setWriteThrowsException(true);\n eventWriter.write(event);\n Assert.fail(\"expected exception\");\n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(ThresholdEventWriter.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(ThresholdEventWriter.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public synchronized void write(final Event event) throws IOException\n {\n if (!acceptsEvents) {\n log.warn(\"Writer not ready, discarding event: {}\", event);\n return;\n }\n\n delegate.write(event);\n uncommittedWriteCount++;\n\n ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_61
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToStringOk() throws Exception\n {\n Assert.assertEquals(value0.getString(), \"0\");\n Assert.assertEquals(value1.getString(), \"1\");\n Assert.assertEquals(value1000.getString(), \"1000\");\n Assert.assertEquals(valueMinus1...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public String getString()\n {\n return String.valueOf(value);\n }", "class_method_signature": "ShortDataItem.getString()", "constructor": false, "full_signature": "@Override public String getString()", "identifier": "getString", "invocations": [ "valueOf" ], "m...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_36
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToByte() throws Exception\n {\n Assert.assertEquals(value0.getByte(), Byte.valueOf((byte) 0));\n Assert.assertEquals(value1.getByte(), Byte.valueOf((byte) 1));\n Assert.assertEquals(value127.getByte(), Byte.valueOf((byte) 127));\n...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Byte getByte()\n {\n return value;\n }", "class_method_signature": "ByteDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [], "modifiers": "@Override public", "parameters":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_5
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToBoolean() throws Exception\n {\n Assert.assertEquals(value0.getBoolean().booleanValue(), false);\n Assert.assertEquals(value1.getBoolean().booleanValue(), true);\n Assert.assertEquals(value1000000.getBoolean().booleanValue(), tr...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return !value.equals(0);\n }", "class_method_signature": "IntegerDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [ "equals" ], ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_4
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConstructor() throws Exception\n {\n final DataItem item1 = new IntegerDataItem(2000000);\n Assert.assertEquals(item1.getInteger(), Integer.valueOf(2000000));\n }", "class_method_signature": "TestIntegerDataItem.testConstructor()", "cons...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Integer getInteger()\n {\n return value;\n }", "class_method_signature": "IntegerDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [], "modifiers": "@Override pub...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_37
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToShort() throws Exception\n {\n Assert.assertEquals(value0.getShort(), Short.valueOf((short) 0));\n Assert.assertEquals(value1.getShort(), Short.valueOf((short) 1));\n Assert.assertEquals(value127.getShort(), Short.valueOf((short...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Short getShort()\n {\n return value.shortValue();\n }", "class_method_signature": "ByteDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [ "shortValue" ], "modifier...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_60
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDouble() throws Exception\n {\n Assert.assertEquals(value0.getDouble(), 0.0);\n Assert.assertEquals(value1.getDouble(), 1.0);\n Assert.assertEquals(value1000.getDouble(), 1000.0);\n Assert.assertEquals(valueMinus1000.getD...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Double getDouble()\n {\n return value.doubleValue();\n }", "class_method_signature": "ShortDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [ "doubleValue" ], ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_76
{ "fields": [ { "declarator": "event", "modifier": "private", "original_string": "private Event event;", "type": "Event", "var_name": "event" }, { "declarator": "delegateWriter", "modifier": "private", "original_string": "private MockEventWriter delegateWrit...
{ "body": "@Test(groups = \"fast\")\n public void testCommit() throws Exception\n {\n writeAndTestCounts(1, 0);\n writeAndTestCounts(2, 0);\n eventWriter.commit();\n assertTestCounts(2, 0);\n now = now.plusSeconds(301);\n eventWriter.commit();\n assertTestCounts(...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(ThresholdEventWriter.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(ThresholdEventWriter.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public synchronized void commit() throws IOException\n {\n commitIfNeeded();\n }", "class_method_signature": "ThresholdEventWriter.commit()", "constructor": false, "full_signature": "@Override public synchronized void commit()", "identifier": "commit", "invocations": [...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_21
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToStringOk() throws Exception\n {\n Assert.assertEquals(trueDataItem.getString(), \"1\");\n Assert.assertEquals(falseDataItem.getString(), \"0\");\n }", "class_method_signature": "TestBooleanDataItem.testConvertToStringOk()", "con...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public String getString()\n {\n return value ? \"1\" : \"0\";\n }", "class_method_signature": "BooleanDataItem.getString()", "constructor": false, "full_signature": "@Override public String getString()", "identifier": "getString", "invocations": [], "modifiers": "@Ov...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_56
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToByte() throws Exception\n {\n Assert.assertEquals(value0.getByte(), Byte.valueOf((byte) 0));\n Assert.assertEquals(value1.getByte(), Byte.valueOf((byte) 1));\n Assert.assertEquals(value1000.getByte(), Byte.valueOf((byte) -24)); ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Byte getByte()\n {\n return value.byteValue();\n }", "class_method_signature": "ShortDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [ "byteValue" ], "modifiers": "@O...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_17
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToShort() throws Exception\n {\n Assert.assertEquals(trueDataItem.getShort().shortValue(), (short) 1);\n Assert.assertEquals(falseDataItem.getShort().shortValue(), (short) 0);\n }", "class_method_signature": "TestBooleanDataItem.tes...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Short getShort()\n {\n return getByte().shortValue();\n }", "class_method_signature": "BooleanDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [ "shortValue", "get...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_8
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToInteger() throws Exception\n {\n Assert.assertEquals(value0.getInteger(), Integer.valueOf(0));\n Assert.assertEquals(value1.getInteger(), Integer.valueOf(1));\n Assert.assertEquals(value1000000.getInteger(), Integer.valueOf(1000...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Integer getInteger()\n {\n return value;\n }", "class_method_signature": "IntegerDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [], "modifiers": "@Override pub...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_40
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDouble() throws Exception\n {\n Assert.assertEquals(value0.getDouble(), 0.0);\n Assert.assertEquals(value1.getDouble(), 1.0);\n Assert.assertEquals(value127.getDouble(), 127.0);\n Assert.assertEquals(valueMinus128.getDoub...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Double getDouble()\n {\n return value.doubleValue();\n }", "class_method_signature": "ByteDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [ "doubleValue" ], "...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_26
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToByte() throws Exception\n {\n Assert.assertEquals(value0.getByte(), Byte.valueOf((byte) 0));\n Assert.assertEquals(value1.getByte(), Byte.valueOf((byte) 1));\n Assert.assertEquals(valueWithDecimal.getByte(), Byte.valueOf((byte) ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Byte getByte()\n {\n return value.byteValue();\n }", "class_method_signature": "DoubleDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [ "byteValue" ], "modifiers": "@...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_71
{ "fields": [ { "declarator": "eventType = \"FuuEvent\"", "modifier": "@SuppressWarnings({\"FieldMayBeStatic\"})\n private final", "original_string": "@SuppressWarnings({\"FieldMayBeStatic\"})\n private final String eventType = \"FuuEvent\";", "type": "String", "var_name": "eve...
{ "body": "@Test(groups = \"fast\")\n public void testGetOutputDir() throws Exception\n {\n final ThriftEnvelope thriftEnvelope = new ThriftEnvelope(eventType);\n thriftEnvelope.getPayload().add(ThriftField.createThriftField(\"fuuness\", (short) 0));\n thriftEnvelope.getPayload().add(Thrift...
{ "fields": [ { "declarator": "eventDateTime", "modifier": "private", "original_string": "private DateTime eventDateTime;", "type": "DateTime", "var_name": "eventDateTime" }, { "declarator": "thriftEnvelope", "modifier": "private", "original_string": "privat...
{ "body": "@Override\n public String getOutputDir(final String prefix)\n {\n final GranularityPathMapper pathMapper = new GranularityPathMapper(String.format(\"%s/%s\", prefix, thriftEnvelope.getTypeName()), granularity);\n\n return pathMapper.getPathForDateTime(getEventDateTime());\n }", "cl...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_67
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/thrift/item/TestStringDataItem.java", "identifier": "TestStringDataItem", "interfaces": "", "superclass": "" }
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLongOk() throws Exception\n {\n final long value = 7890;\n final DataItem item = new StringDataItem(String.valueOf(value));\n Assert.assertEquals(item.getLong(), Long.valueOf(value));\n }", "class_method_signature": "TestSt...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/StringDataItem.java", "identifier": "StringDataItem"...
{ "body": "@Override\n public Long getLong()\n {\n if (value.isEmpty()) {\n return (long) 0;\n }\n return Long.valueOf(value);\n }", "class_method_signature": "StringDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identi...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_30
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDouble() throws Exception\n {\n Assert.assertEquals(value0.getDouble(), 0.0);\n Assert.assertEquals(value1.getDouble(), 1.0);\n Assert.assertEquals(valueWithDecimal.getDouble(), 1.1415);\n Assert.assertEquals(valueBigPosi...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Double getDouble()\n {\n return value;\n }", "class_method_signature": "DoubleDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [], "modifiers": "@Override public", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_3
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testNoArgConstructor() throws Exception\n {\n final DataItem item = new IntegerDataItem();\n Assert.assertEquals(item.getInteger(), Integer.valueOf(0));\n }", "class_method_signature": "TestIntegerDataItem.testNoArgConstructor()", "construct...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Integer getInteger()\n {\n return value;\n }", "class_method_signature": "IntegerDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [], "modifiers": "@Override pub...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_47
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToShort() throws Exception\n {\n Assert.assertEquals(value0.getShort(), Short.valueOf((short) 0));\n Assert.assertEquals(value1.getShort(), Short.valueOf((short) 1));\n Assert.assertEquals(valueBigPositive.getShort(), Short.valueO...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Short getShort()\n {\n return value.shortValue();\n }", "class_method_signature": "LongDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [ "shortValue" ], "modifier...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_10
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDouble() throws Exception\n {\n Assert.assertEquals(value0.getDouble(), 0.0);\n Assert.assertEquals(value1.getDouble(), 1.0);\n Assert.assertEquals(value1000000.getDouble(), 1000000.0);\n Assert.assertEquals(valueMinus100...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Double getDouble()\n {\n return value.doubleValue();\n }", "class_method_signature": "IntegerDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [ "doubleValue" ], ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_51
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToStringOk() throws Exception\n {\n Assert.assertEquals(value0.getString(), \"0\");\n Assert.assertEquals(value1.getString(), \"1\");\n Assert.assertEquals(valueBigPositive.getString(), \"10000000000\");\n Assert.assertEqua...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public String getString()\n {\n return String.valueOf(value);\n }", "class_method_signature": "LongDataItem.getString()", "constructor": false, "full_signature": "@Override public String getString()", "identifier": "getString", "invocations": [ "valueOf" ], "mo...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_50
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDouble() throws Exception\n {\n Assert.assertEquals(value0.getDouble(), 0.0);\n Assert.assertEquals(value1.getDouble(), 1.0);\n Assert.assertEquals(valueBigPositive.getDouble(), 10000000000.0);\n Assert.assertEquals(value...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Double getDouble()\n {\n return value.doubleValue();\n }", "class_method_signature": "LongDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [ "doubleValue" ], "...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_11
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToStringOk() throws Exception\n {\n Assert.assertEquals(value0.getString(), \"0\");\n Assert.assertEquals(value1.getString(), \"1\");\n Assert.assertEquals(value1000000.getString(), \"1000000\");\n Assert.assertEquals(value...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public String getString()\n {\n return String.valueOf(value);\n }", "class_method_signature": "IntegerDataItem.getString()", "constructor": false, "full_signature": "@Override public String getString()", "identifier": "getString", "invocations": [ "valueOf" ], ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_46
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToByte() throws Exception\n {\n Assert.assertEquals(value0.getByte(), Byte.valueOf((byte) 0));\n Assert.assertEquals(value1.getByte(), Byte.valueOf((byte) 1));\n Assert.assertEquals(valueBigPositive.getByte(), Byte.valueOf((byte) ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Byte getByte()\n {\n return value.byteValue();\n }", "class_method_signature": "LongDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [ "byteValue" ], "modifiers": "@Ov...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_2
{ "fields": [ { "declarator": "PREFIX = \"fuu\"", "modifier": "private static final", "original_string": "private static final String PREFIX = \"fuu\";", "type": "String", "var_name": "PREFIX" } ], "file": "common/src/test/java/com/ning/metrics/serialization/event/TestGranula...
{ "body": "@Test(groups = \"fast\")\n public void testInterval()\n {\n final GranularityPathMapper prefix = new GranularityPathMapper(PREFIX, Granularity.DAILY);\n\n final Collection<String> paths = prefix.getPathsForInterval(new MutableInterval(new DateTime(\"2010-10-01\").getMillis(), new DateTi...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "prefix", "modifier": "private final...
{ "body": "public Collection<String> getPathsForInterval(final ReadableInterval interval)\n {\n final Collection<String> paths = new ArrayList<String>();\n\n granularity.stepThroughInterval(interval, new Granularity.Callback<RuntimeException>()\n {\n public void step(final ReadableI...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_31
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToStringOk() throws Exception\n {\n Assert.assertEquals(value0.getString(), \"0\");\n Assert.assertEquals(value1.getString(), \"1\");\n Assert.assertEquals(valueWithDecimal.getString(), \"1.1415\");\n Assert.assertEquals(va...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public String getString()\n {\n if (value - value.longValue() == 0) {\n return String.valueOf(value.longValue());\n }\n else {\n return String.valueOf(value);\n }\n }", "class_method_signature": "DoubleDataItem.getString()", "constr...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_66
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/thrift/item/TestStringDataItem.java", "identifier": "TestStringDataItem", "interfaces": "", "superclass": "" }
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDoubleFail() throws Exception\n {\n try {\n final DataItem item = new StringDataItem(\"a string\");\n item.getDouble();\n Assert.fail(\"expected NumberFormatException NOT thrown\");\n }\n catch (...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/StringDataItem.java", "identifier": "StringDataItem"...
{ "body": "@Override\n public Double getDouble()\n {\n if (value.isEmpty()) {\n return (double) 0;\n }\n return Double.valueOf(value);\n }", "class_method_signature": "StringDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_70
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/event/TestThriftEnvelopeEventToThrift.java", "identifier": "TestThriftEnvelopeEventToThrift", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExtractThrift() throws Exception\n {\n final DateTime eventDateTime = new DateTime();\n final String coreHostname = \"hostname\";\n\n // Native Thrift\n final TLoggingEvent event = new TLoggingEvent();\n event.setCoreHostname(coreHostname); /...
{ "fields": [], "file": "thrift/src/main/java/com/ning/metrics/serialization/event/ThriftEnvelopeEventToThrift.java", "identifier": "ThriftEnvelopeEventToThrift", "interfaces": "", "methods": [ { "class_method_signature": "ThriftEnvelopeEventToThrift.extractThrift(final Class<T> clazz, final ThriftE...
{ "body": "public static <T extends Serializable> T extractThrift(final Class<T> clazz, final ThriftEnvelopeEvent envelopeEvent)\n {\n final ThriftEnvelope envelope = (ThriftEnvelope) envelopeEvent.getData();\n\n try {\n final T thriftObject = clazz.newInstance();\n\n final Fiel...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_27
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToShort() throws Exception\n {\n Assert.assertEquals(value0.getShort(), Short.valueOf((short) 0));\n Assert.assertEquals(value1.getShort(), Short.valueOf((short) 1));\n Assert.assertEquals(valueWithDecimal.getShort(), Short.valueO...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Short getShort()\n {\n return value.shortValue();\n }", "class_method_signature": "DoubleDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [ "shortValue" ], "modifi...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_1
{ "fields": [ { "declarator": "eventGranularity = Granularity.MONTHLY", "modifier": "private static final", "original_string": "private static final Granularity eventGranularity = Granularity.MONTHLY;", "type": "Granularity", "var_name": "eventGranularity" }, { "declara...
{ "body": "@Test(groups = \"fast\")\n public void testGetName() throws Exception\n {\n final SmileEnvelopeEvent event = createEvent();\n Assert.assertEquals(event.getName(), SCHEMA_NAME);\n }", "class_method_signature": "TestSmileEnvelopeEvent.testGetName()", "constructor": false, "full_s...
{ "fields": [ { "declarator": "CHARSET = Charset.forName(\"ISO-8859-1\")", "modifier": "public static final", "original_string": "public static final Charset CHARSET = Charset.forName(\"ISO-8859-1\");", "type": "Charset", "var_name": "CHARSET" }, { "declarator": "NAME_C...
{ "body": "@Override\n public String getName()\n {\n return eventName;\n }", "class_method_signature": "SmileEnvelopeEvent.getName()", "constructor": false, "full_signature": "@Override public String getName()", "identifier": "getName", "invocations": [], "modifiers": "@Override public", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_49
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLong() throws Exception\n {\n Assert.assertEquals(value0.getLong(), Long.valueOf(0));\n Assert.assertEquals(value1.getLong(), Long.valueOf(1));\n Assert.assertEquals(valueBigPositive.getLong(), Long.valueOf(10000000000L));\n ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Long getLong()\n {\n return value;\n }", "class_method_signature": "LongDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [], "modifiers": "@Override public", "parameters":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_32
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testToString() throws Exception\n {\n Assert.assertEquals(value0.toString(), \"0\");\n Assert.assertEquals(value1.toString(), \"1\");\n Assert.assertEquals(valueWithDecimal.toString(), \"1.1415\");\n Assert.assertEquals(valueBigPositi...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public String toString()\n {\n return getString();\n }", "class_method_signature": "DoubleDataItem.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "getString" ], "modifiers": ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_65
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/thrift/item/TestStringDataItem.java", "identifier": "TestStringDataItem", "interfaces": "", "superclass": "" }
{ "body": "@Test(groups = \"fast\")\n public void testConvertToDoubleOk() throws Exception\n {\n final long value1 = 1341345143;\n final DataItem item1 = new StringDataItem(String.valueOf(value1));\n Assert.assertEquals(item1.getDouble(), (double) value1);\n final double value2 = 134...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/StringDataItem.java", "identifier": "StringDataItem"...
{ "body": "@Override\n public Double getDouble()\n {\n if (value.isEmpty()) {\n return (double) 0;\n }\n return Double.valueOf(value);\n }", "class_method_signature": "StringDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_73
{ "fields": [ { "declarator": "eventType = \"FuuEvent\"", "modifier": "@SuppressWarnings({\"FieldMayBeStatic\"})\n private final", "original_string": "@SuppressWarnings({\"FieldMayBeStatic\"})\n private final String eventType = \"FuuEvent\";", "type": "String", "var_name": "eve...
{ "body": "@Test(groups = \"fast\")\n public void testVersion2() throws Exception\n {\n final ThriftEnvelope thriftEnvelope = new ThriftEnvelope(eventType);\n thriftEnvelope.getPayload().add(ThriftField.createThriftField(\"fuuness\", (short) 1));\n thriftEnvelope.getPayload().add(ThriftFiel...
{ "fields": [ { "declarator": "eventDateTime", "modifier": "private", "original_string": "private DateTime eventDateTime;", "type": "DateTime", "var_name": "eventDateTime" }, { "declarator": "thriftEnvelope", "modifier": "private", "original_string": "privat...
{ "body": "@Override\n public String getVersion()\n {\n return thriftEnvelope.getVersion();\n }", "class_method_signature": "ThriftEnvelopeEvent.getVersion()", "constructor": false, "full_signature": "@Override public String getVersion()", "identifier": "getVersion", "invocations": [ "ge...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_24
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConstructor() throws Exception\n {\n final DataItem item1 = new DoubleDataItem(2.72);\n Assert.assertEquals(item1.getDouble(), 2.72);\n }", "class_method_signature": "TestDoubleDataItem.testConstructor()", "constructor": false, "full_s...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Double getDouble()\n {\n return value;\n }", "class_method_signature": "DoubleDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [], "modifiers": "@Override public", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_53
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testNoArgConstructor() throws Exception\n {\n final DataItem item = new ShortDataItem();\n Assert.assertEquals(item.getShort(), Short.valueOf((short) 0));\n }", "class_method_signature": "TestShortDataItem.testNoArgConstructor()", "construct...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Short getShort()\n {\n return value;\n }", "class_method_signature": "ShortDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [], "modifiers": "@Override public", "param...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_12
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testToString() throws Exception\n {\n Assert.assertEquals(value0.toString(), \"0\");\n Assert.assertEquals(value1.toString(), \"1\");\n Assert.assertEquals(value1000000.toString(), \"1000000\");\n Assert.assertEquals(valueMinus1000000...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public String toString()\n {\n return getString();\n }", "class_method_signature": "IntegerDataItem.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "getString" ], "modifiers":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_45
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToBoolean() throws Exception\n {\n Assert.assertEquals(value0.getBoolean().booleanValue(), false);\n Assert.assertEquals(value1.getBoolean().booleanValue(), true);\n Assert.assertEquals(valueBigPositive.getBoolean().booleanValue()...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return !value.equals(0L);\n }", "class_method_signature": "LongDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [ "equals" ], "m...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_69
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/thrift/item/TestStringDataItem.java", "identifier": "TestStringDataItem", "interfaces": "", "superclass": "" }
{ "body": "@Test(groups = \"fast\")\n public void testToString() throws Exception\n {\n final DataItem item = new StringDataItem(\"...a.a.sd.f...sf\");\n Assert.assertEquals(item.toString(), item.getString());\n }", "class_method_signature": "TestStringDataItem.testToString()", "constructor...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/StringDataItem.java", "identifier": "StringDataItem"...
{ "body": "@Override\n public String toString()\n {\n return getString();\n }", "class_method_signature": "StringDataItem.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "getString" ], "modifiers": ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_28
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToInteger() throws Exception\n {\n Assert.assertEquals(value0.getInteger(), Integer.valueOf(0));\n Assert.assertEquals(value1.getInteger(), Integer.valueOf(1));\n Assert.assertEquals(valueWithDecimal.getInteger(), Integer.valueOf(...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Integer getInteger()\n {\n return value.intValue();\n }", "class_method_signature": "DoubleDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [ "intValue" ], ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_29
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLong() throws Exception\n {\n Assert.assertEquals(value0.getLong(), Long.valueOf(0));\n Assert.assertEquals(value1.getLong(), Long.valueOf(1));\n Assert.assertEquals(valueWithDecimal.getLong(), Long.valueOf(1));\n Assert....
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Long getLong()\n {\n return value.longValue();\n }", "class_method_signature": "DoubleDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [ "longValue" ], "modifiers": "@...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_68
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/thrift/item/TestStringDataItem.java", "identifier": "TestStringDataItem", "interfaces": "", "superclass": "" }
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLongFail() throws Exception\n {\n try {\n final DataItem item = new StringDataItem(\"a string\");\n item.getLong();\n Assert.fail(\"expected NumberFormatException NOT thrown\");\n }\n catch (Exce...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/StringDataItem.java", "identifier": "StringDataItem"...
{ "body": "@Override\n public Long getLong()\n {\n if (value.isEmpty()) {\n return (long) 0;\n }\n return Long.valueOf(value);\n }", "class_method_signature": "StringDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identi...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_44
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConstructor() throws Exception\n {\n final DataItem item1 = new LongDataItem(10000000000L);\n Assert.assertEquals(item1.getLong(), Long.valueOf(10000000000L));\n }", "class_method_signature": "TestLongDataItem.testConstructor()", "constr...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Long getLong()\n {\n return value;\n }", "class_method_signature": "LongDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [], "modifiers": "@Override public", "parameters":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_13
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testNoArgConstructor() throws Exception\n {\n final DataItem item = new BooleanDataItem();\n Assert.assertEquals(item.getBoolean().booleanValue(), true);\n }", "class_method_signature": "TestBooleanDataItem.testNoArgConstructor()", "construc...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return value;\n }", "class_method_signature": "BooleanDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [], "modifiers": "@Override pub...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_52
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testToString() throws Exception\n {\n Assert.assertEquals(value0.toString(), \"0\");\n Assert.assertEquals(value1.toString(), \"1\");\n Assert.assertEquals(valueBigPositive.toString(), \"10000000000\");\n Assert.assertEquals(valueBigN...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public String toString()\n {\n return getString();\n }", "class_method_signature": "LongDataItem.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "getString" ], "modifiers": "@...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_25
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToBoolean() throws Exception\n {\n Assert.assertEquals(value0.getBoolean().booleanValue(), false);\n Assert.assertEquals(value1.getBoolean().booleanValue(), true);\n Assert.assertEquals(valueWithDecimal.getBoolean().booleanValue()...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return !value.equals(0.0);\n }", "class_method_signature": "DoubleDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [ "equals" ], ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_72
{ "fields": [ { "declarator": "eventType = \"FuuEvent\"", "modifier": "@SuppressWarnings({\"FieldMayBeStatic\"})\n private final", "original_string": "@SuppressWarnings({\"FieldMayBeStatic\"})\n private final String eventType = \"FuuEvent\";", "type": "String", "var_name": "eve...
{ "body": "@Test(groups = \"fast\")\n public void testVersion1() throws Exception\n {\n final ThriftEnvelope thriftEnvelope = new ThriftEnvelope(eventType);\n thriftEnvelope.getPayload().add(ThriftField.createThriftField(100L, (short) 4));\n thriftEnvelope.getPayload().add(ThriftField.creat...
{ "fields": [ { "declarator": "eventDateTime", "modifier": "private", "original_string": "private DateTime eventDateTime;", "type": "DateTime", "var_name": "eventDateTime" }, { "declarator": "thriftEnvelope", "modifier": "private", "original_string": "privat...
{ "body": "@Override\n public String getVersion()\n {\n return thriftEnvelope.getVersion();\n }", "class_method_signature": "ThriftEnvelopeEvent.getVersion()", "constructor": false, "full_signature": "@Override public String getVersion()", "identifier": "getVersion", "invocations": [ "ge...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_64
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/thrift/item/TestStringDataItem.java", "identifier": "TestStringDataItem", "interfaces": "", "superclass": "" }
{ "body": "@Test(groups = \"fast\")\n public void testConstructor() throws Exception\n {\n final String testString = \"test-string\";\n final DataItem item1 = new StringDataItem(testString);\n Assert.assertEquals(item1.getString(), testString);\n }", "class_method_signature": "TestStri...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/StringDataItem.java", "identifier": "StringDataItem"...
{ "body": "@Override\n public String getString()\n {\n return value;\n }", "class_method_signature": "StringDataItem.getString()", "constructor": false, "full_signature": "@Override public String getString()", "identifier": "getString", "invocations": [], "modifiers": "@Override public", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_33
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testNoArgConstructor() throws Exception\n {\n final DataItem item = new ByteDataItem();\n Assert.assertEquals(item.getByte(), Byte.valueOf((byte) 0));\n }", "class_method_signature": "TestByteDataItem.testNoArgConstructor()", "constructor": ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Byte getByte()\n {\n return value;\n }", "class_method_signature": "ByteDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [], "modifiers": "@Override public", "parameters":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_48
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToInteger() throws Exception\n {\n Assert.assertEquals(value0.getInteger(), Integer.valueOf(0));\n Assert.assertEquals(value1.getInteger(), Integer.valueOf(1));\n Assert.assertEquals(valueBigPositive.getInteger(), Integer.valueOf(...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Integer getInteger()\n {\n return value.intValue();\n }", "class_method_signature": "LongDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [ "intValue" ], "...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_0
{ "fields": [ { "declarator": "eventGranularity = Granularity.MONTHLY", "modifier": "private static final", "original_string": "private static final Granularity eventGranularity = Granularity.MONTHLY;", "type": "Granularity", "var_name": "eventGranularity" }, { "declara...
{ "body": "@Test(groups = \"fast\")\n public void testGetEventDateTime() throws Exception\n {\n final SmileEnvelopeEvent event = createEvent();\n Assert.assertEquals(event.getEventDateTime(), eventDateTime);\n }", "class_method_signature": "TestSmileEnvelopeEvent.testGetEventDateTime()", "c...
{ "fields": [ { "declarator": "CHARSET = Charset.forName(\"ISO-8859-1\")", "modifier": "public static final", "original_string": "public static final Charset CHARSET = Charset.forName(\"ISO-8859-1\");", "type": "Charset", "var_name": "CHARSET" }, { "declarator": "NAME_C...
{ "body": "@Override\n public DateTime getEventDateTime()\n {\n return eventDateTime;\n }", "class_method_signature": "SmileEnvelopeEvent.getEventDateTime()", "constructor": false, "full_signature": "@Override public DateTime getEventDateTime()", "identifier": "getEventDateTime", "invocation...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_55
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToBoolean() throws Exception\n {\n Assert.assertEquals(value0.getBoolean().booleanValue(), false);\n Assert.assertEquals(value1.getBoolean().booleanValue(), true);\n Assert.assertEquals(value1000.getBoolean().booleanValue(), true)...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return !value.equals((short) 0);\n }", "class_method_signature": "ShortDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [ "equals" ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_14
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConstructor() throws Exception\n {\n final DataItem item1 = new BooleanDataItem(true);\n Assert.assertEquals(item1.getBoolean().booleanValue(), true);\n final DataItem item2 = new BooleanDataItem(false);\n Assert.assertEquals(item...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return value;\n }", "class_method_signature": "BooleanDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [], "modifiers": "@Override pub...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_43
{ "fields": [ { "declarator": "value0 = new LongDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new LongDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new LongDataItem(1)", "modif...
{ "body": "@Test(groups = \"fast\")\n public void testNoArgConstructor() throws Exception\n {\n final DataItem item = new LongDataItem();\n Assert.assertEquals(item.getLong(), Long.valueOf(0));\n }", "class_method_signature": "TestLongDataItem.testNoArgConstructor()", "constructor": false, ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Long value;", "type": "Long", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/LongDataItem.java", "identifier": "LongDataItem", "int...
{ "body": "@Override\n public Long getLong()\n {\n return value;\n }", "class_method_signature": "LongDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [], "modifiers": "@Override public", "parameters":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_38
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToInteger() throws Exception\n {\n Assert.assertEquals(value0.getInteger(), Integer.valueOf(0));\n Assert.assertEquals(value1.getInteger(), Integer.valueOf(1));\n Assert.assertEquals(value127.getInteger(), Integer.valueOf(127));\n...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Integer getInteger()\n {\n return value.intValue();\n }", "class_method_signature": "ByteDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [ "intValue" ], "...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_80
{ "fields": [ { "declarator": "commandToRun", "modifier": "private", "original_string": "private Runnable commandToRun;", "type": "Runnable", "var_name": "commandToRun" }, { "declarator": "secondsToWait", "modifier": "private", "original_string": "private lo...
{ "body": "@Test(groups = \"fast\")\n public void testWriteIOFailure() throws Exception\n {\n final DiskSpoolEventWriter writer = createWriter(writerSucceeds);\n\n try {\n writer.write(eventThrowsOnWrite);\n Assert.fail(\"expected IOException\");\n }\n catch (IO...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(DiskSpoolEventWriter.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(DiskSpoolEventWriter.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public synchronized void write(final Event event) throws IOException\n {\n if (!acceptsEvents) {\n log.warn(\"Writer not ready, discarding event: {}\", event);\n return;\n }\n\n if (currentOutputter == null) {\n currentOutputFile = new...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_79
{ "fields": [ { "declarator": "event", "modifier": "private", "original_string": "private Event event;", "type": "Event", "var_name": "event" }, { "declarator": "delegateWriter", "modifier": "private", "original_string": "private MockEventWriter delegateWrit...
{ "body": "@Test(groups = \"fast\")\n public void testRollbackException() throws Exception\n {\n //make sure exceptions aren't swallowed\n try {\n delegateWriter.setRollbackThrowsException(true);\n eventWriter.rollback();\n Assert.fail(\"expected exception\");\n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(ThresholdEventWriter.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(ThresholdEventWriter.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public synchronized void rollback() throws IOException\n {\n delegate.rollback();\n }", "class_method_signature": "ThresholdEventWriter.rollback()", "constructor": false, "full_signature": "@Override public synchronized void rollback()", "identifier": "rollback", "invo...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_59
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLong() throws Exception\n {\n Assert.assertEquals(value0.getLong(), Long.valueOf(0));\n Assert.assertEquals(value1.getLong(), Long.valueOf(1));\n Assert.assertEquals(value1000.getLong(), Long.valueOf(1000));\n Assert.asse...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Long getLong()\n {\n return value.longValue();\n }", "class_method_signature": "ShortDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [ "longValue" ], "modifiers": "@O...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_7
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToShort() throws Exception\n {\n Assert.assertEquals(value0.getShort(), Short.valueOf((short) 0));\n Assert.assertEquals(value1.getShort(), Short.valueOf((short) 1));\n Assert.assertEquals(value1000000.getShort(), Short.valueOf((s...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Short getShort()\n {\n return value.shortValue();\n }", "class_method_signature": "IntegerDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [ "shortValue" ], "modif...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_18
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToInteger() throws Exception\n {\n Assert.assertEquals(trueDataItem.getInteger().intValue(), 1);\n Assert.assertEquals(falseDataItem.getInteger().intValue(), 0);\n }", "class_method_signature": "TestBooleanDataItem.testConvertToInte...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Integer getInteger()\n {\n return getByte().intValue();\n }", "class_method_signature": "BooleanDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [ "intValue", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_34
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConstructor() throws Exception\n {\n final DataItem item1 = new ByteDataItem((byte) 2);\n Assert.assertEquals(item1.getByte(), Byte.valueOf((byte) 2));\n }", "class_method_signature": "TestByteDataItem.testConstructor()", "constructor": ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Byte getByte()\n {\n return value;\n }", "class_method_signature": "ByteDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [], "modifiers": "@Override public", "parameters":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_63
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/thrift/item/TestStringDataItem.java", "identifier": "TestStringDataItem", "interfaces": "", "superclass": "" }
{ "body": "@Test(groups = \"fast\")\n public void testNoArgConstructor() throws Exception\n {\n final DataItem item = new StringDataItem();\n Assert.assertEquals(item.getString(), \"\");\n }", "class_method_signature": "TestStringDataItem.testNoArgConstructor()", "constructor": false, "fu...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private String value;", "type": "String", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/StringDataItem.java", "identifier": "StringDataItem"...
{ "body": "@Override\n public String getString()\n {\n return value;\n }", "class_method_signature": "StringDataItem.getString()", "constructor": false, "full_signature": "@Override public String getString()", "identifier": "getString", "invocations": [], "modifiers": "@Override public", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_75
{ "fields": [ { "declarator": "event", "modifier": "private", "original_string": "private Event event;", "type": "Event", "var_name": "event" }, { "declarator": "delegateWriter", "modifier": "private", "original_string": "private MockEventWriter delegateWrit...
{ "body": "@Test(groups = \"fast\")\n public void testForceCommit() throws Exception\n {\n writeAndTestCounts(1, 0);\n writeAndTestCounts(2, 0);\n eventWriter.forceCommit();\n assertTestCounts(0, 2);\n }", "class_method_signature": "TestThresholdEventWriter.testForceCommit()", ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(ThresholdEventWriter.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(ThresholdEventWriter.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Managed(description = \"Commit locally spooled events for flushing\")\n @Override\n public synchronized void forceCommit() throws IOException\n {\n log.debug(\"Performing commit on delegate EventWriter [{}]\", delegate.getClass());\n delegate.commit();\n\n uncommittedWriteCou...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_22
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testToString() throws Exception\n {\n Assert.assertEquals(trueDataItem.toString(), trueDataItem.getString());\n Assert.assertEquals(falseDataItem.toString(), falseDataItem.getString());\n }", "class_method_signature": "TestBooleanDataItem.test...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public String toString()\n {\n return getString();\n }", "class_method_signature": "BooleanDataItem.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "getString" ], "modifiers":...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_23
{ "fields": [ { "declarator": "value0 = new DoubleDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new DoubleDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new DoubleDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testNoArgConstructor() throws Exception\n {\n final DataItem item = new DoubleDataItem();\n Assert.assertEquals(item.getDouble(), 0.0);\n }", "class_method_signature": "TestDoubleDataItem.testNoArgConstructor()", "constructor": false, "ful...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Double value;", "type": "Double", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/DoubleDataItem.java", "identifier": "DoubleDataItem"...
{ "body": "@Override\n public Double getDouble()\n {\n return value;\n }", "class_method_signature": "DoubleDataItem.getDouble()", "constructor": false, "full_signature": "@Override public Double getDouble()", "identifier": "getDouble", "invocations": [], "modifiers": "@Override public", ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_74
{ "fields": [], "file": "thrift/src/test/java/com/ning/metrics/serialization/event/TestThriftToThriftEnvelopeEvent.java", "identifier": "TestThriftToThriftEnvelopeEvent", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExtractEvent() throws Exception\n {\n final DateTime eventDateTime = new DateTime();\n final String coreHostname = \"hostname\";\n\n final TLoggingEvent event = new TLoggingEvent();\n event.setCoreHostname(coreHostname);\n final String ip = \...
{ "fields": [], "file": "thrift/src/main/java/com/ning/metrics/serialization/event/ThriftToThriftEnvelopeEvent.java", "identifier": "ThriftToThriftEnvelopeEvent", "interfaces": "", "methods": [ { "class_method_signature": "ThriftToThriftEnvelopeEvent.extractEvent(final String eventName, final T thri...
{ "body": "public static <T extends Serializable> ThriftEnvelopeEvent extractEvent(final String eventName, final T thriftObject)\n {\n return extractEvent(eventName, new DateTime(), thriftObject);\n }", "class_method_signature": "ThriftToThriftEnvelopeEvent.extractEvent(final String eventName, final T ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_62
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testToString() throws Exception\n {\n Assert.assertEquals(value0.toString(), \"0\");\n Assert.assertEquals(value1.toString(), \"1\");\n Assert.assertEquals(value1000.toString(), \"1000\");\n Assert.assertEquals(valueMinus1000.toString...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public String toString()\n {\n return getString();\n }", "class_method_signature": "ShortDataItem.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "getString" ], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_35
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToBoolean() throws Exception\n {\n Assert.assertEquals(value0.getBoolean().booleanValue(), false);\n Assert.assertEquals(value1.getBoolean().booleanValue(), true);\n Assert.assertEquals(value127.getBoolean().booleanValue(), true);...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Boolean getBoolean()\n {\n return !value.equals((byte) 0);\n }", "class_method_signature": "ByteDataItem.getBoolean()", "constructor": false, "full_signature": "@Override public Boolean getBoolean()", "identifier": "getBoolean", "invocations": [ "equals" ]...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_19
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLong() throws Exception\n {\n Assert.assertEquals(trueDataItem.getLong().longValue(), 1L);\n Assert.assertEquals(falseDataItem.getLong().longValue(), 0L);\n }", "class_method_signature": "TestBooleanDataItem.testConvertToLong()", ...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Long getLong()\n {\n return getByte().longValue();\n }", "class_method_signature": "BooleanDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [ "longValue", "getByte" ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_6
{ "fields": [ { "declarator": "value0 = new IntegerDataItem(0)", "modifier": "private final", "original_string": "private final DataItem value0 = new IntegerDataItem(0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new IntegerDataItem(1)", ...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToByte() throws Exception\n {\n Assert.assertEquals(value0.getByte(), Byte.valueOf((byte) 0));\n Assert.assertEquals(value1.getByte(), Byte.valueOf((byte) 1));\n Assert.assertEquals(value1000000.getByte(), Byte.valueOf((byte) 64))...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Integer value;", "type": "Integer", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/IntegerDataItem.java", "identifier": "IntegerDataI...
{ "body": "@Override\n public Byte getByte()\n {\n return value.byteValue();\n }", "class_method_signature": "IntegerDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [ "byteValue" ], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_58
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToInteger() throws Exception\n {\n Assert.assertEquals(value0.getInteger(), Integer.valueOf(0));\n Assert.assertEquals(value1.getInteger(), Integer.valueOf(1));\n Assert.assertEquals(value1000.getInteger(), Integer.valueOf(1000));...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Integer getInteger()\n {\n return value.intValue();\n }", "class_method_signature": "ShortDataItem.getInteger()", "constructor": false, "full_signature": "@Override public Integer getInteger()", "identifier": "getInteger", "invocations": [ "intValue" ], ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_78
{ "fields": [ { "declarator": "event", "modifier": "private", "original_string": "private Event event;", "type": "Event", "var_name": "event" }, { "declarator": "delegateWriter", "modifier": "private", "original_string": "private MockEventWriter delegateWrit...
{ "body": "@Test(groups = \"fast\")\n public void testCommitException() throws Exception\n {\n //make sure exceptions aren't swallowed\n try {\n delegateWriter.setCommitThrowsException(true);\n now = now.plusSeconds(301);\n eventWriter.write(event);\n As...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(ThresholdEventWriter.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(ThresholdEventWriter.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public synchronized void write(final Event event) throws IOException\n {\n if (!acceptsEvents) {\n log.warn(\"Writer not ready, discarding event: {}\", event);\n return;\n }\n\n delegate.write(event);\n uncommittedWriteCount++;\n\n ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_39
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToLong() throws Exception\n {\n Assert.assertEquals(value0.getLong(), Long.valueOf(0L));\n Assert.assertEquals(value1.getLong(), Long.valueOf(1L));\n Assert.assertEquals(value127.getLong(), Long.valueOf(127L));\n Assert.ass...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public Long getLong()\n {\n return value.longValue();\n }", "class_method_signature": "ByteDataItem.getLong()", "constructor": false, "full_signature": "@Override public Long getLong()", "identifier": "getLong", "invocations": [ "longValue" ], "modifiers": "@Ov...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_42
{ "fields": [ { "declarator": "value0 = new ByteDataItem((byte) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ByteDataItem((byte) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ByteDataItem((by...
{ "body": "@Test(groups = \"fast\")\n public void testToString() throws Exception\n {\n Assert.assertEquals(value0.toString(), value0.getString());\n Assert.assertEquals(value1.toString(), value1.getString());\n Assert.assertEquals(value127.toString(), value127.getString());\n Assert...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Byte value;", "type": "Byte", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ByteDataItem.java", "identifier": "ByteDataItem", "int...
{ "body": "@Override\n public String toString()\n {\n return getString();\n }", "class_method_signature": "ByteDataItem.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "getString" ], "modifiers": "@...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_15
{ "fields": [ { "declarator": "trueDataItem = new BooleanDataItem(true)", "modifier": "private final", "original_string": "private final DataItem trueDataItem = new BooleanDataItem(true);", "type": "DataItem", "var_name": "trueDataItem" }, { "declarator": "falseDataItem...
{ "body": "@Test(groups = \"fast\")\n public void testConvertToByte() throws Exception\n {\n Assert.assertEquals(trueDataItem.getByte().byteValue(), (byte) 1);\n Assert.assertEquals(falseDataItem.getByte().byteValue(), (byte) 0);\n }", "class_method_signature": "TestBooleanDataItem.testConver...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Boolean value;", "type": "Boolean", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/BooleanDataItem.java", "identifier": "BooleanDataI...
{ "body": "@Override\n public Byte getByte()\n {\n return (byte) (value ? 1 : 0);\n }", "class_method_signature": "BooleanDataItem.getByte()", "constructor": false, "full_signature": "@Override public Byte getByte()", "identifier": "getByte", "invocations": [], "modifiers": "@Override publ...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
806019_54
{ "fields": [ { "declarator": "value0 = new ShortDataItem((short) 0)", "modifier": "private final", "original_string": "private final DataItem value0 = new ShortDataItem((short) 0);", "type": "DataItem", "var_name": "value0" }, { "declarator": "value1 = new ShortDataIte...
{ "body": "@Test(groups = \"fast\")\n public void testConstructor() throws Exception\n {\n final DataItem item1 = new ShortDataItem((short) 100);\n Assert.assertEquals(item1.getShort(), Short.valueOf((short) 100));\n }", "class_method_signature": "TestShortDataItem.testConstructor()", "cons...
{ "fields": [ { "declarator": "value", "modifier": "private", "original_string": "private Short value;", "type": "Short", "var_name": "value" } ], "file": "thrift/src/main/java/com/ning/metrics/serialization/thrift/item/ShortDataItem.java", "identifier": "ShortDataItem", ...
{ "body": "@Override\n public Short getShort()\n {\n return value;\n }", "class_method_signature": "ShortDataItem.getShort()", "constructor": false, "full_signature": "@Override public Short getShort()", "identifier": "getShort", "invocations": [], "modifiers": "@Override public", "param...
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 806019, "size": 745, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/pierre/serialization" }
4024302_3
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void getProxy_whenNotInterface() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n proxyProvider.getProxy(String.class);\n }", "class_method_signature": "ProxyProviderImplTest.getProxy_whenNotInterface()", "con...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_12
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test\n public void test_equals() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n DummyRemoteService service = proxyProvider.getProxy(DummyRemoteService.class);\n\n assertTrue(service.equals(service));\n assertFalse(service.equals(\"foo\"));\n }", "class...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_13
{ "fields": [], "file": "hazelblast/src/test/java/com/hazelblast/server/pojoslice/PojoSliceTest.java", "identifier": "PojoSliceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void instanceAware_whenTargetImplementsHazelcastInstanceAware() {\n HazelcastInstanceAware pojo = mock(HazelcastInstanceAware.class);\n HazelcastInstance hazelcastInstance = null;//Hazelcast.getDefaultInstance();\n PojoSlice slice = new PojoSlice(pojo);\n slice...
{ "fields": [ { "declarator": "target", "modifier": "private final", "original_string": "private final Object target;", "type": "Object", "var_name": "target" }, { "declarator": "services", "modifier": "private final", "original_string": "private final Map<S...
{ "body": "public void onStart() {\n if (target instanceof HazelcastInstanceAware) {\n ((HazelcastInstanceAware) target).setHazelcastInstance(hazelcastInstance);\n }\n\n if (target instanceof SliceLifecycleListener) {\n ((SliceLifecycleListener) target).onStart();\n }...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_2
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test(expected = NullPointerException.class)\n public void getProxy_whenNull() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n proxyProvider.getProxy(null);\n }", "class_method_signature": "ProxyProviderImplTest.getProxy_whenNull()", "constructor": false, "full_si...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_9
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void badProxy_remoteMethodAnnotationMissing() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n proxyProvider.getProxy(RemoteAnnotationMissing.class);\n }", "class_method_signature": "ProxyProviderImplTest.badPro...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_5
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test\n public void getProxy_whenSuccess() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n DummyRemoteService service = proxyProvider.getProxy(DummyRemoteService.class);\n assertNotNull(service);\n }", "class_method_signature": "ProxyProviderImplTest.getProxy_w...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_4
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void getProxy_whenNotRemoteInterface() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n proxyProvider.getProxy(List.class);\n }", "class_method_signature": "ProxyProviderImplTest.getProxy_whenNotRemoteInterface(...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_8
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void badProxy_methodsWithMultipleAnnotations() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n proxyProvider.getProxy(MethodWithMultipleAnnotations.class);\n }", "class_method_signature": "ProxyProviderImplTest...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_7
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void badProxy_remoteInterfaceExtendingNonRemoteInterface() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n proxyProvider.getProxy(RemoteInterfaceExtendingNonRemoteInterface.class);\n }", "class_method_signature...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_6
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test\n public void whenSameProxyAskedMultipleTimes_thenSameInstanceIsReturned() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n DummyRemoteService service1 = proxyProvider.getProxy(DummyRemoteService.class);\n DummyRemoteService service2 = proxyProvider.getProxy(Du...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_10
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test\n public void test_toString() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n DummyRemoteService service = proxyProvider.getProxy(DummyRemoteService.class);\n String s = service.toString();\n System.out.println(s);\n assertNotNull(s);\n }", ...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_1
{ "fields": [ { "declarator": "ARGS = new Object[]{}", "modifier": "private final static", "original_string": "private final static Object[] ARGS = new Object[]{};", "type": "Object[]", "var_name": "ARGS" }, { "declarator": "METHOD = null", "modifier": "private fi...
{ "body": "@Test\n public void singleMember() throws Throwable {\n HazelcastInstance instance = newNormalInstance();\n Router loadBalancer = new RoundRobinLoadBalancer(instance);\n Member first = loadBalancer.getTarget(METHOD, ARGS).getMember();\n Member second = loadBalancer.getTarget(...
{ "fields": [ { "declarator": "logger = Logger.getLogger(RoundRobinLoadBalancer.class)", "modifier": "private static final", "original_string": "private static final ILogger logger = Logger.getLogger(RoundRobinLoadBalancer.class);", "type": "ILogger", "var_name": "logger" }, ...
{ "body": "public Target getTarget(Method method, Object[] args) {\n List<Member> memberList = members.get();\n if (memberList.isEmpty()) {\n throw new NoMemberAvailableException(\n format(\"RoundRobinLoadBalancer: There are no real members in the cluster of Hazelcast insta...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_0
{ "fields": [ { "declarator": "ARGS = new Object[]{}", "modifier": "private final static", "original_string": "private final static Object[] ARGS = new Object[]{};", "type": "Object[]", "var_name": "ARGS" }, { "declarator": "METHOD = null", "modifier": "private fi...
{ "body": "@Test(expected = NoMemberAvailableException.class)\n public void noMembersInTheCluster() throws Throwable {\n HazelcastInstance hazelcastInstance = TestUtils.newClientInstance();\n\n Router lb = new RoundRobinLoadBalancer(hazelcastInstance);\n lb.getTarget(METHOD, ARGS);\n }", ...
{ "fields": [ { "declarator": "logger = Logger.getLogger(RoundRobinLoadBalancer.class)", "modifier": "private static final", "original_string": "private static final ILogger logger = Logger.getLogger(RoundRobinLoadBalancer.class);", "type": "ILogger", "var_name": "logger" }, ...
{ "body": "public Target getTarget(Method method, Object[] args) {\n List<Member> memberList = members.get();\n if (memberList.isEmpty()) {\n throw new NoMemberAvailableException(\n format(\"RoundRobinLoadBalancer: There are no real members in the cluster of Hazelcast insta...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }
4024302_11
{ "fields": [ { "declarator": "hazelcastInstance", "modifier": "private static", "original_string": "private static HazelcastInstance hazelcastInstance;", "type": "HazelcastInstance", "var_name": "hazelcastInstance" } ], "file": "hazelblast/src/test/java/com/hazelblast/client...
{ "body": "@Test\n public void test_hashCode() {\n ProxyProviderImpl proxyProvider = new ProxyProviderImpl();\n DummyRemoteService service = proxyProvider.getProxy(DummyRemoteService.class);\n int s = service.hashCode();\n\n }", "class_method_signature": "ProxyProviderImplTest.test_hashCo...
{ "fields": [ { "declarator": "logger = Logger.getLogger(ProxyProviderImpl.class)", "modifier": "protected final static", "original_string": "protected final static ILogger logger = Logger.getLogger(ProxyProviderImpl.class);", "type": "ILogger", "var_name": "logger" }, { ...
{ "body": "public <T> T getProxy(Class<T> distributedServiceClass) {\n notNull(\"distributedServiceClass\", distributedServiceClass);\n\n Object proxy = proxies.get(distributedServiceClass);\n if (proxy == null) {\n DistributedServiceInvocationHandler invocationHandler = buildDistribut...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4024302, "size": 1998, "stargazer_count": 17, "stars": null, "updates": null, "url": "https://github.com/pveentjer/Hazelblast" }