id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
134362666_11 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void size() {\n }",
"class_method_signature": "RSetTest.size()",
"constructor": false,
"full_signature": "@Test public void size()",
"identifier": "size",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void size()",... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "@Override\n public int size(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n return metaV.getSize();\n }\n }",
"class_method_signature": "RSet.size(String key... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_50 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void getNoTTL() throws Exception {\n RKv kv = db.getrKv();\n String head = \"getNoTTL\";\n\n try {\n\n for (int i = 0; i < 10000; i++) {\n kv.set(head + i, (\"test\" + i).getBytes(), 1);\n }\n\n for (int i = 0; i < 10000... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "public byte[] getNoTTL(String key) throws KitDBException {\n byte[] keyb = getKey(key);\n\n return getDB(ArrayKits.addAll(HEAD_B, keyb), SstColumnFamily.DEFAULT);\n }",
"class_method_signature": "RKv.getNoTTL(String key)",
"constructor": false,
"full_signature": "public byte[] getNoT... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_51 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void del() throws Exception {\n RKv kv = db.getrKv();\n String head = \"delA\";\n\n try {\n\n for (int i = 0; i < 10000; i++) {\n kv.set(head + i, (\"test\" + i).getBytes());\n }\n\n for (int i = 0; i < 10000; i++) {\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "public void del(String key) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n byte[] keyb = getKey(key);\n LockEntity lockEntity = lock.lock(key);\n try {\n start();\n deleteDB(ArrayKits.addAll... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_10 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void isExist() {\n }",
"class_method_signature": "RSetTest.isExist()",
"constructor": false,
"full_signature": "@Test public void isExist()",
"identifier": "isExist",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "v... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "@Override\n public boolean isExist(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n return metaV != null;\n }\n }",
"class_method_signature": "RSet.isExist(St... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_47 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void incr() throws Exception {\n String head = \"incrA\";\n RKv kv = db.getrKv();\n try {\n JoinFuture<String> joinFuture = JoinFuture.build(executorService, String.class);\n for (int i = 0; i < 10 * 10000; i++) {\n int fj = i;\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "public long incr(String key, int step, int ttl) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n byte[] keyb = getKey(key);\n LockEntity lockEntity = lock.lock(key);\n try {\n start();\n byte[... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_8 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delTtl() throws KitDBException, InterruptedException {\n String head = \"delTtl0\";\n RSet set = db.getSet();\n int num = 1000;\n try {\n Set<String> strings = new HashSet<>();\n\n for (int i = 0; i < num; i++) {\n set.... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "@Override\n public void delTtl(String key) throws KitDBException {\n checkTxStart();\n LockEntity lockEntity = lock(key);\n try (CloseLock ignored = checkClose()) {\n try {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_30 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void deleteTTL() throws Exception {\n String head = \"deleteTTL0\";\n RList list = db.getList();\n int num = 10 * 10000;\n\n try {\n\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).getBytes());\n }\n\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "protected void deleteTTL(int time, byte[] key_b, byte[] meta_b) throws KitDBException {\n String key = new String(ArrayKits.sub(key_b, 1, key_b.length + 1), charset);\n LockEntity lockEntity = lock(key);\n try (CloseLock ignored = checkClose()) {\n MetaV metaV = getMetaP(key... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_67 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delete() {\n\n }",
"class_method_signature": "ZSetTest.delete()",
"constructor": false,
"full_signature": "@Test public void delete()",
"identifier": "delete",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "voi... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "private void delete(byte[] key_b, MetaD metaD) {\n MetaV metaV = metaD.convertMetaV();\n SData sData = new SData(key_b.length, key_b, metaV.getVersion(), null);\n deleteHead(sData.getHead(), SstColumnFamily.DEFAULT);\n ZData zData = new ZData(sData.getMapKeySize(), sData.getMapK... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_4 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void addMayTTL() throws KitDBException, InterruptedException {\n String head = \"addMayTTL0\";\n RSet set = db.getSet();\n int num = 10 * 10000;\n\n for (int i = 0; i < num; i++) {\n set.addMayTTL(head, 5, (\"hello world\" + i).getBytes());\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "public void addMayTTL(String key, int ttl, byte[]... values) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n DAssert.notEmpty(values, ErrorType.EMPTY, \"values is empty\");\n DAssert.isTrue(ArrayKits.noRepeate(values), ErrorType.REP... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_26 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void isExist() throws Exception {\n String head = \"isExist0\";\n RMap map = db.getMap();\n int num = 1000;\n try {\n for (int i = 0; i < num; i++) {\n map.put(head, \"hello\" + i, (\"world\" + i).getBytes());\n }\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "@Override\n public boolean isExist(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n\n byte[] k_v = getDB(key_b, SstColumnFamily.META);\n Meta meta = addCheck(key_b, k_v);\n return meta != nul... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_48 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void ttl() throws Exception {\n RKv kv = db.getrKv();\n String head = \"ttlA\";\n try {\n for (int i = 0; i < 1000; i++) {\n kv.set(head + i, (\"test\" + i).getBytes());\n }\n\n for (int i = 0; i < 1000; i++) {\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "public void ttl(String key, int ttl) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n byte[] keyb = getKey(key);\n LockEntity lockEntity = lock.lock(key);\n try {\n start();\n byte[] key_b = A... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_33 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void iterator() throws Exception {\n String head = \"iterator0\";\n RList list = db.getList();\n int num = 100 * 10000;\n\n try {\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).getBytes());\n }\n\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "@Override\n @SuppressWarnings(\"unchecked\")\n public RIterator<RList> iterator(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n if (metaV == null) {\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_64 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void ttl() {\n\n }",
"class_method_signature": "ZSetTest.ttl()",
"constructor": false,
"full_signature": "@Test public void ttl()",
"identifier": "ttl",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void ttl()",
... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "@Override\n public void ttl(String key, int ttl) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock(key);\n\n byte[] key_b = getKey(key);\n try {\n MetaV metaV = getMeta(key_b);... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_25 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void ttl() throws Exception {\n String head = \"ttl0\";\n RMap map = db.getMap();\n int num = 1000;\n try {\n for (int i = 0; i < num; i++) {\n map.put(head, \"hello\" + i, (\"world\" + i).getBytes());\n }\n map.t... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "@Override\n public void ttl(String key, int ttl) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n LockEntity lockEntity = lock(key);\n try {\n Meta metaV = getMeta(key_b);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_7 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void getTtl() throws KitDBException, InterruptedException {\n String head = \"getTtl\";\n RSet set = db.getSet();\n int num = 10000;\n try {\n for (int i = 0; i < num; i++) {\n set.add(head, (\"hello world\" + i).getBytes());\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "@Override\n public int getTtl(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n if (metaV == null) {\n return -1;\n }\n if (metaV.getT... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_52 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delPrefix() throws Exception {\n RKv kv = db.getrKv();\n String head = \"delPrefixA\";\n\n try {\n for (int i = 0; i < 10 * 10000; i++) {\n kv.set(head + i, (\"test\" + i).getBytes());\n }\n kv.delPrefix(head);\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "public void delPrefix(String key_) throws KitDBException {\n checkTxRange();\n byte[] keyb_ = getKey(key_);\n try (CloseLock ignored = checkClose()) {\n start();\n deleteHead(ArrayKits.addAll(HEAD_B, keyb_), SstColumnFamily.DEFAULT);\n deleteHead(ArrayK... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_13 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delete() {\n\n }",
"class_method_signature": "RSetTest.delete()",
"constructor": false,
"full_signature": "@Test public void delete()",
"identifier": "delete",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "voi... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "@Override\n public void delete(String key) throws KitDBException {\n checkTxRange();\n LockEntity lockEntity = lock(key);\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n try {\n start();\n MetaV metaV = g... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_44 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void addMayTTL() {\n\n }",
"class_method_signature": "RListTest.addMayTTL()",
"constructor": false,
"full_signature": "@Test public void addMayTTL()",
"identifier": "addMayTTL",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"sig... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void addMayTTL(String key, byte[] v, int ttl) throws KitDBException {\n DAssert.isTrue(ttl > 0, ErrorType.PARAM_ERROR, \"ttl must greater than 0\");\n addMayTTLPrivate(key, v, ttl);\n }",
"class_method_signature": "RList.addMayTTL(String key, byte[] v, int ttl)",
"constructor": ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_68 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void isExist() {\n\n }",
"class_method_signature": "ZSetTest.isExist()",
"constructor": false,
"full_signature": "@Test public void isExist()",
"identifier": "isExist",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "@Override\n public boolean isExist(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n byte[] k_v = getDB(key_b, SstColumnFamily.META);\n MetaV meta = addCheck(key_b, k_v);\n return meta != null... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_29 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void addAll() throws Exception {\n String head = \"addAllA\";\n RList list = db.getList();\n int num = 10;\n List<byte[]> integers = new ArrayList<>();\n for (int i = 0; i < num; i++) {\n integers.add((\"hello\" + i).getBytes());\n }\n\... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void addAll(String key, List<byte[]> vs) throws KitDBException {\n addAllMayTTLPrivate(key, vs, -1);\n }",
"class_method_signature": "RList.addAll(String key, List<byte[]> vs)",
"constructor": false,
"full_signature": "public void addAll(String key, List<byte[]> vs)",
"identifier":... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_28 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void add() throws Exception {\n String head = \"setA\";\n RList list = db.getList();\n int num = 10 * 10000;\n try {\n\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).getBytes());\n }\n\n for (i... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void add(String key, byte[] v) throws KitDBException {\n addMayTTLPrivate(key, v, -1);\n }",
"class_method_signature": "RList.add(String key, byte[] v)",
"constructor": false,
"full_signature": "public void add(String key, byte[] v)",
"identifier": "add",
"invocations": [
"ad... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_69 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void size() {\n\n }",
"class_method_signature": "ZSetTest.size()",
"constructor": false,
"full_signature": "@Test public void size()",
"identifier": "size",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void size()... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "@Override\n public int size(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n int size = 0;\n try (RIterator<ZSet> iterator = iterator(key)) {\n while (iterator.hasNext()) {\n iterator.next();\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_45 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void set() {\n //Not a necessary test\n }",
"class_method_signature": "RListTest.set()",
"constructor": false,
"full_signature": "@Test public void set()",
"identifier": "set",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void set(String key, long i, byte[] v) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock(key);\n try {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_12 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void getEntry() {\n }",
"class_method_signature": "RSetTest.getEntry()",
"constructor": false,
"full_signature": "@Test public void getEntry()",
"identifier": "getEntry",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature"... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "@Override\n public Entry getEntry(RocksIterator iterator) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_bs = iterator.key();\n if (key_bs == null) {\n return null;\n }\n SData sData = SDataD.build(key_bs)... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_53 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void keys() throws Exception {\n RKv kv = db.getrKv();\n String head = \"keysA\";\n try {\n Set<String> keys1 = new HashSet<>();\n for (int i = 0; i < 100; i++) {\n kv.set(head + i, (\"test\" + i).getBytes());\n keys... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "public List<String> keys(String key_, int start, int limit) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] keyb_ = getKey(key_);\n List<String> list = new ArrayList<>();\n int index = 0;\n int count = 0;\n try (final... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_24 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delTtl() throws Exception {\n String head = \"delTtl0\";\n RMap map = db.getMap();\n int num = 1000;\n try {\n for (int i = 0; i < num; i++) {\n map.put(head, \"hello\" + i, (\"world\" + i).getBytes());\n }\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "@Override\n public void delTtl(String key) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n\n byte[] key_b = getKey(key);\n LockEntity lockEntity = lock(key);\n try {\n Meta metaV = getMeta(key_b);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_6 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void deleteFast() throws KitDBException {\n String head = \"deleteFast0\";\n RSet set = db.getSet();\n int num = 100;\n Set<String> keys = new HashSet<>();\n try {\n for (int i = 0; i < num; i++) {\n int num2 = 1000;\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "public void deleteFast(String key) throws KitDBException {\n checkTxStart();\n LockEntity lockEntity = lock(key);\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n byte[] k_v = getDB(key_b, SstColumnFamily.META);\n if (k_v == nu... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_65 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void remove() {\n\n }",
"class_method_signature": "ZSetTest.remove()",
"constructor": false,
"full_signature": "@Test public void remove()",
"identifier": "remove",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "voi... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "public void remove(String key, byte[]... vs) throws KitDBException {\n DAssert.notEmpty(vs, ErrorType.EMPTY, \"vs is empty\");\n checkTxStart();\n LockEntity lockEntity = lock(key);\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_32 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void get() {\n //Not a necessary test\n }",
"class_method_signature": "RListTest.get()",
"constructor": false,
"full_signature": "@Test public void get()",
"identifier": "get",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public byte[] get(String key, long i) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n\n MetaV metaV = getMeta(key_b);\n if (metaV == null) {\n return null;\n }\n ValueK valueK = n... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_49 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void get() throws Exception {\n RKv kv = db.getrKv();\n String head = \"getA\";\n\n\n kv.delPrefix(head);\n\n }",
"class_method_signature": "RKvTest.get()",
"constructor": false,
"full_signature": "@Test public void get()",
"identifier": "get",
"invocatio... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "public Map<String, byte[]> get(List<String> keys) throws KitDBException {\n Map<String, byte[]> map = null;\n try (CloseLock ignored = checkClose()) {\n DAssert.notEmpty(keys, ErrorType.EMPTY, \"keys is empty\");\n\n byte[][] keybs = new byte[keys.size()][];\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_54 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RKvTest.java",
"identifier": "RKvTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delTtl() throws Exception {\n RKv kv = db.getrKv();\n String head = \"delTtlA\";\n\n try {\n for (int i = 0; i < 10000; i++) {\n kv.set(head + i, (\"test\" + i).getBytes(), 3);\n }\n\n for (int i = 0; i < 10000; i++... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.KV_KEY.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.KV_KEY.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_TTL = KeyEnum.KV_TTL.getByte... | {
"body": "void delTtl(String key) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock.lock(key);\n try {\n byte[] keyb = getKey(key);\n start();\n deleteDB(ArrayKits.addAll... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_15 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void putTTL() throws Exception {\n String head = \"putTTL0\";\n RMap map = db.getMap();\n int num = 10 * 10000;\n\n try {\n log.debug(\"start\");\n for (int i = 0; i < num; i++) {\n map.putTTL(head, \"hello\" + i, (\"world\"... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "public void putTTL(String key, String mkey, byte[] value, int ttl) throws KitDBException {\n byte[] mkey_b = mkey.getBytes(charset);\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n LockEntity lockEntity = lock(key);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_42 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void addAllMayTTL() throws Exception {\n String head = \"addAllMayTTL0\";\n RList list = db.getList();\n int num = 10;\n List<byte[]> integers = new ArrayList<>();\n for (int i = 0; i < num; i++) {\n integers.add((\"hello\" + i).getBytes());\n... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void addAllMayTTL(String key, List<byte[]> vs, int ttl) throws KitDBException {\n DAssert.isTrue(ttl > 0, ErrorType.PARAM_ERROR, \"ttl must greater than 0\");\n addAllMayTTLPrivate(key, vs, ttl);\n }",
"class_method_signature": "RList.addAllMayTTL(String key, List<byte[]> vs, int ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_39 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delTtl() throws Exception {\n String head = \"delTtl0\";\n RList list = db.getList();\n int num = 1;\n try {\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).getBytes());\n }\n\n list.ttl(he... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void delTtl(String key) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n if (metaV == null) {\n checkTxCommit();\n return;\... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_58 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void iterator() throws KitDBException {\n String head = \"iterator0\";\n ZSet set = db.getzSet();\n int num = 10 * 10000;\n try {\n FList<ZSet.Entry> entries = new FList<>(num);\n for (int i = 0; i < num; i++) {\n entries.ad... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "@Override\n @SuppressWarnings(\"unchecked\")\n public RIterator<ZSet> iterator(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n SData sData = new SData(key_b.length, k... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_19 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delete() throws KitDBException {\n\n\n }",
"class_method_signature": "RMapTest.delete()",
"constructor": false,
"full_signature": "@Test public void delete()",
"identifier": "delete",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "vo... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "private void delete(byte[] key_b, Meta meta) {\n MetaD metaD = meta.convertMetaBytes();\n Key vkey = new Key(key_b.length, key_b, meta.getVersion(), null);\n deleteHead(vkey.getHead(), SstColumnFamily.DEFAULT);\n this.deleteDB(ArrayKits.addAll(\"D\".getBytes(charset), key_b, met... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_35 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void blpop() throws Exception {\n String head = \"blpop0\";\n RList list = db.getList();\n int num = 10000;\n try {\n for (int k = 0; k < 10; k++) {\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public List<byte[]> blpop(String key, int num) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock(key);\n try {\n byte[] key_b = getKey(key);\n\n List<byte[]> list = new ArrayL... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_62 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void getTtl() {\n\n }",
"class_method_signature": "ZSetTest.getTtl()",
"constructor": false,
"full_signature": "@Test public void getTtl()",
"identifier": "getTtl",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "voi... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "@Override\n public int getTtl(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n\n MetaV metaV = getMeta(key_b);\n\n if (metaV == null) {\n return -1;\n }\n\n if (meta... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_23 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void getTtl() {\n\n\n }",
"class_method_signature": "RMapTest.getTtl()",
"constructor": false,
"full_signature": "@Test public void getTtl()",
"identifier": "getTtl",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "v... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "@Override\n public int getTtl(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n\n Meta meta = getMeta(key_b);\n if (meta == null) {\n return -1;\n }\n if (meta.getTim... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_1 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void pop() throws KitDBException {\n String head = \"pop0\";\n RSet set = db.getSet();\n int num = 10 * 10000;\n try {\n for (int i = 0; i < num; i++) {\n set.add(head, (\"hello world\" + i).getBytes());\n }\n Set... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "public List<byte[]> pop(String key, int num) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock(key);\n try {\n List<byte[]> values = new ArrayList<>();\n byte[] key_b = getKey... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_22 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void iterator() throws KitDBException {\n String head = \"iterator0\";\n RMap map = db.getMap();\n int num = 1000;\n try {\n for (int i = 0; i < num; i++) {\n map.put(head, \"hello\" + i, (\"world\" + i).getBytes());\n }\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "@Override\n public RIterator<RMap> iterator(String key) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n Meta metaV = getMeta(key_b);\n if (metaV == null) {\n return null;\n }\n\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_0 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RSetTest.java",
"identifier": "RSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void add() throws KitDBException {\n String head = \"add0\";\n RSet set = db.getSet();\n int num = 10 * 10000;\n try {\n for (int i = 0; i < num; i++) {\n set.add(head, (\"hello world\" + i).getBytes());\n }\n\n f... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.SET.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.SET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modif... | {
"body": "public void add(String key, byte[]... values) throws KitDBException {\n\n addMayTTL(key, -1, values);\n }",
"class_method_signature": "RSet.add(String key, byte[]... values)",
"constructor": false,
"full_signature": "public void add(String key, byte[]... values)",
"identifier": "add",
"... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_63 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void delTtl() {\n\n }",
"class_method_signature": "ZSetTest.delTtl()",
"constructor": false,
"full_signature": "@Test public void delTtl()",
"identifier": "delTtl",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "voi... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "@Override\n public void delTtl(String key) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock(key);\n byte[] key_b = getKey(key);\n try {\n MetaV metaV = getMetaP(key_b);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_34 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void range() throws Exception {\n String head = \"range0\";\n RList list = db.getList();\n int num = 10 * 10000;\n\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).getBytes());\n }\n int i = 1234;\n List<byte[]>... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public List<byte[]> range(String key, long start, long end) throws KitDBException {\n try (CloseLock ignored = checkClose()) {\n byte[] key_b = getKey(key);\n\n List<byte[]> list = new ArrayList<>();\n\n MetaV metaV = getMeta(key_b);\n if (metaV == null) {... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_18 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void remove() throws KitDBException {\n String head = \"remove1\";\n RMap map = db.getMap();\n int num = 1000;\n try {\n String[] keys = new String[num];\n for (int i = 0; i < num; i++) {\n map.put(head, \"hello\" + i, (\"he... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "public void remove(String key, String... keys) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n DAssert.notEmpty(keys, ErrorType.EMPTY, \"keys is empty\");\n byte[] key_b = getKey(key);\n LockEntity lockEntity = lock(key);... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_59 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void addMayTTL() {\n\n }",
"class_method_signature": "ZSetTest.addMayTTL()",
"constructor": false,
"full_signature": "@Test public void addMayTTL()",
"identifier": "addMayTTL",
"invocations": [],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"sign... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "public void addMayTTL(String key, int ttl, byte[] v, long score) throws KitDBException {\n addMayTTL(key, ttl, new Entry(score, v));\n }",
"class_method_signature": "ZSet.addMayTTL(String key, int ttl, byte[] v, long score)",
"constructor": false,
"full_signature": "public void addMayTTL(St... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_38 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void ttl() throws Exception {\n String head = \"isExist0\";\n RList list = db.getList();\n int num = 10000;\n try {\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).getBytes());\n }\n\n for (int ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void ttl(String key, int ttl) throws KitDBException {\n DAssert.isTrue(ttl > 0, ErrorType.PARAM_ERROR, \"ttl must greater than 0\");\n\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock(key);\n try {\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_43 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RListTest.java",
"identifier": "RListTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void deleteFast() throws Exception {\n String head = \"deleteFast0\";\n RList list = db.getList();\n int num = 10 * 10000;\n try {\n for (int i = 0; i < num; i++) {\n list.add(head, (\"hello\" + i).getBytes());\n }\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.LIST.getKey()",
"modifier": "public final static",
"original_string": "public final static String HEAD = KeyEnum.LIST.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_VALUE_B = KeyEnum.LIST_VALUE.get... | {
"body": "public void deleteFast(String key) throws KitDBException {\n checkTxStart();\n try (CloseLock ignored = checkClose()) {\n LockEntity lockEntity = lock(key);\n try {\n byte[] key_b = getKey(key);\n MetaV metaV = getMeta(key_b);\n ... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_14 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/RMapTest.java",
"identifier": "RMapTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void put() throws Exception {\n String head = \"put0\";\n RMap map = db.getMap();\n int num = 10 * 10000;\n try {\n for (int i = 0; i < num; i++) {\n map.put(head, \"hello\" + i, (\"world\" + i).getBytes());\n }\n\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.MAP.getKey()",
"modifier": "protected final static",
"original_string": "protected final static String HEAD = KeyEnum.MAP.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
... | {
"body": "public void put(String key, String mkey, byte[] value) throws KitDBException {\n putTTL(key, mkey, value, -1);\n }",
"class_method_signature": "RMap.put(String key, String mkey, byte[] value)",
"constructor": false,
"full_signature": "public void put(String key, String mkey, byte[] value)",... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
134362666_55 | {
"fields": [],
"file": "store/src/test/java/top/thinkin/lightd/db/ZSetTest.java",
"identifier": "ZSetTest",
"interfaces": "",
"superclass": "extends BaseTest"
} | {
"body": "@Test\n public void add() throws KitDBException {\n String head = \"add0\";\n ZSet set = db.getzSet();\n int num = 10 * 10000;\n try {\n for (int i = 0; i < num; i++) {\n set.add(head, (\"hello world\" + i).getBytes(), i);\n }\n\n ... | {
"fields": [
{
"declarator": "HEAD = KeyEnum.ZSET.getKey()",
"modifier": "public static",
"original_string": "public static String HEAD = KeyEnum.ZSET.getKey();",
"type": "String",
"var_name": "HEAD"
},
{
"declarator": "HEAD_B = HEAD.getBytes()",
"modifier": "pub... | {
"body": "public void add(String key, byte[] v, long score) throws KitDBException {\n addMayTTL(key, -1, new Entry(score, v));\n }",
"class_method_signature": "ZSet.add(String key, byte[] v, long score)",
"constructor": false,
"full_signature": "public void add(String key, byte[] v, long score)",
"... | {
"created": "5/22/2018 4:58:26 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 134362666,
"size": null,
"stargazer_count": null,
"stars": 167,
"updates": "2020-01-23T14:18:33+00:00",
"url": "https://github.com/frost373/KitDB"... |
41985062_0 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/telephony/RxTelephonyManagerTest.java",
"identifier": "RxTelephonyManagerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test public void phoneStateChanges() {\n Application application = RuntimeEnvironment.application;\n\n TestSubscriber<PhoneStateChangedEvent> o = new TestSubscriber<>();\n RxTelephonyManager.phoneStateChanges(application).subscribe(o);\n o.assertValues();\n\n Intent intent1 = new Intent(ACT... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/telephony/RxTelephonyManager.java",
"identifier": "RxTelephonyManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxTelephonyManager.RxTelephonyManager()",
"constructor": true,
"full_signatur... | {
"body": "@CheckResult @NonNull //\n public static Observable<PhoneStateChangedEvent> //\n phoneStateChanges(@NonNull final Context context) {\n checkNotNull(context, \"context == null\");\n IntentFilter filter = new IntentFilter(TelephonyManager.ACTION_PHONE_STATE_CHANGED);\n return RxBroadcastReceiver.c... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
41985062_1 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/wifi/RxWifiManagerTest.java",
"identifier": "RxWifiManagerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test public void wifiStateChanges() {\n Application application = RuntimeEnvironment.application;\n\n TestSubscriber<Integer> o = new TestSubscriber<>();\n RxWifiManager.wifiStateChanges(application).subscribe(o);\n o.assertValues();\n\n Intent intent1 = new Intent(WIFI_STATE_CHANGED_ACTION... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/wifi/RxWifiManager.java",
"identifier": "RxWifiManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxWifiManager.RxWifiManager()",
"constructor": true,
"full_signature": "private RxWifiManag... | {
"body": "@CheckResult @NonNull //\n public static Observable<Integer> wifiStateChanges(@NonNull final Context context) {\n checkNotNull(context, \"context == null\");\n IntentFilter filter = new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION);\n return RxBroadcastReceiver.create(context, filter).map(n... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
41985062_6 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/RxBroadcastReceiverTest.java",
"identifier": "RxBroadcastReceiverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test public void createWithNullThrows() {\n try {\n //noinspection ResourceType\n RxBroadcastReceiver.create(null, null);\n fail();\n } catch (NullPointerException e) {\n assertThat(e).hasMessage(\"context == null\");\n }\n }",
"class_method_signature": "RxBroadcastReceiver... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/RxBroadcastReceiver.java",
"identifier": "RxBroadcastReceiver",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxBroadcastReceiver.RxBroadcastReceiver()",
"constructor": true,
"full_signature": "p... | {
"body": "@CheckResult @NonNull //\n public static Observable<Intent> create(@NonNull final Context context,\n @NonNull final IntentFilter intentFilter) {\n checkNotNull(context, \"context == null\");\n checkNotNull(intentFilter, \"intentFilter == null\");\n return Observable.create(new Observable.OnS... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
41985062_7 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/RxBroadcastReceiverTest.java",
"identifier": "RxBroadcastReceiverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test public void subscribe() {\n IntentFilter intentFilter = new IntentFilter(\"test_action\");\n Application application = RuntimeEnvironment.application;\n\n TestSubscriber<Intent> o = new TestSubscriber<>();\n Subscription subscription = RxBroadcastReceiver.create(application, intentFilter)... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/RxBroadcastReceiver.java",
"identifier": "RxBroadcastReceiver",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxBroadcastReceiver.RxBroadcastReceiver()",
"constructor": true,
"full_signature": "p... | {
"body": "@CheckResult @NonNull //\n public static Observable<Intent> create(@NonNull final Context context,\n @NonNull final IntentFilter intentFilter) {\n checkNotNull(context, \"context == null\");\n checkNotNull(intentFilter, \"intentFilter == null\");\n return Observable.create(new Observable.OnS... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
41985062_4 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/wifi/RxWifiManagerTest.java",
"identifier": "RxWifiManagerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@SuppressWarnings(\"ResourceType\") @Test //\n public void supplicantConnectionChanges() throws IllegalAccessException, InstantiationException {\n Application application = RuntimeEnvironment.application;\n\n TestSubscriber<Boolean> o = new TestSubscriber<>();\n RxWifiManager.supplicantConnection... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/wifi/RxWifiManager.java",
"identifier": "RxWifiManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxWifiManager.RxWifiManager()",
"constructor": true,
"full_signature": "private RxWifiManag... | {
"body": "@CheckResult @NonNull //\n public static Observable<Boolean> //\n supplicantConnectionChanges(@NonNull final Context context) {\n checkNotNull(context, \"context == null\");\n IntentFilter filter = new IntentFilter(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);\n return RxBroadcastReceiver.cr... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
41985062_5 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/battery/RxBatteryManagerTest.java",
"identifier": "RxBatteryManagerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test public void batteryStateChanges() {\n Application application = RuntimeEnvironment.application;\n\n TestSubscriber<BatteryState> o = new TestSubscriber<>();\n RxBatteryManager.batteryChanges(application).subscribe(o);\n o.assertValues();\n\n Intent intent1 = new Intent(Intent.ACTION_BA... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/battery/RxBatteryManager.java",
"identifier": "RxBatteryManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxBatteryManager.RxBatteryManager()",
"constructor": true,
"full_signature": "priva... | {
"body": "@CheckResult @NonNull //\n public static Observable<BatteryState> batteryChanges(@NonNull final Context context) {\n checkNotNull(context, \"context == null\");\n IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);\n return RxBroadcastReceiver.create(context, filter) //\n ... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
41985062_2 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/wifi/RxWifiManagerTest.java",
"identifier": "RxWifiManagerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@SuppressWarnings(\"ResourceType\") @Test //\n public void networkStateChanges() throws IllegalAccessException, InstantiationException {\n Application application = RuntimeEnvironment.application;\n\n TestSubscriber<NetworkStateChangedEvent> o = new TestSubscriber<>();\n RxWifiManager.networkStat... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/wifi/RxWifiManager.java",
"identifier": "RxWifiManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxWifiManager.RxWifiManager()",
"constructor": true,
"full_signature": "private RxWifiManag... | {
"body": "@CheckResult @NonNull //\n public static Observable<NetworkStateChangedEvent> //\n networkStateChanges(@NonNull final Context context) {\n checkNotNull(context, \"context == null\");\n IntentFilter filter = new IntentFilter(WifiManager.NETWORK_STATE_CHANGED_ACTION);\n return RxBroadcastReceiver.... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
41985062_3 | {
"fields": [],
"file": "rx-receivers/src/test/java/com/f2prateek/rx/receivers/wifi/RxWifiManagerTest.java",
"identifier": "RxWifiManagerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@SuppressWarnings(\"ResourceType\") @Test //\n public void supplicantStateChanges() throws IllegalAccessException, InstantiationException {\n Application application = RuntimeEnvironment.application;\n\n TestSubscriber<SupplicantStateChangedEvent> o = new TestSubscriber<>();\n RxWifiManager.suppl... | {
"fields": [],
"file": "rx-receivers/src/main/java/com/f2prateek/rx/receivers/wifi/RxWifiManager.java",
"identifier": "RxWifiManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "RxWifiManager.RxWifiManager()",
"constructor": true,
"full_signature": "private RxWifiManag... | {
"body": "@CheckResult @NonNull //\n public static Observable<SupplicantStateChangedEvent> //\n supplicantStateChanges(@NonNull final Context context) {\n checkNotNull(context, \"context == null\");\n IntentFilter filter = new IntentFilter(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);\n return RxBroadcast... | {
"created": null,
"fork": null,
"fork_count": 25,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 41985062,
"size": 92,
"stargazer_count": 374,
"stars": null,
"updates": null,
"url": "https://github.com/f2prateek/rx-receivers"
} |
136447306_0 | {
"fields": [
{
"declarator": "TEASER1 = DemoConstants.TEST_CONTENT_ROOT+\"/teaser\"",
"modifier": "private final",
"original_string": "private final String TEASER1 = DemoConstants.TEST_CONTENT_ROOT+\"/teaser\";",
"type": "String",
"var_name": "TEASER1"
},
{
"declarator... | {
"body": "@Test\n\tvoid testCustomTeaser() {\n\t\tcontext.currentResource(TEASER1);\n\t\tCustomTeaser customTeaser1 = context.request().adaptTo(CustomTeaser.class);\n\t\tassertNotNull(customTeaser1);\n\t\tassertNotNull(customTeaser1.getImgAlign());\n\t}",
"class_method_signature": "CustomTeaserTest.testCustomTease... | {
"fields": [
{
"declarator": "teaser",
"modifier": "@Self\n\t@Via(type = ResourceSuperType.class)\n\tprivate",
"original_string": "@Self\n\t@Via(type = ResourceSuperType.class)\n\tprivate Teaser teaser;",
"type": "Teaser",
"var_name": "teaser"
},
{
"declarator": "resou... | {
"body": "public String getImgAlign() {\n return imgAlign;\n }",
"class_method_signature": "CustomTeaser.getImgAlign()",
"constructor": false,
"full_signature": "public String getImgAlign()",
"identifier": "getImgAlign",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return"... | {
"created": null,
"fork": null,
"fork_count": 17,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 136447306,
"size": 820,
"stargazer_count": 10,
"stars": null,
"updates": null,
"url": "https://github.com/arunpatidar02/aem63app-repo"
} |
9004636_65 | {
"fields": [
{
"declarator": "teamConverter = new TeamConverter()",
"modifier": "",
"original_string": "TeamConverter teamConverter = new TeamConverter();",
"type": "TeamConverter",
"var_name": "teamConverter"
}
],
"file": "mrbotkicore/src/test/java/core/TeamConverterTest.ja... | {
"body": "@Test\n public void testConvertWithValueIsBlau() throws Exception\n {\n TeamConverter teamConverter = new TeamConverter();\n BotInformation.Teams result = teamConverter.convert(\"blau\");\n assertThat(result).isEqualTo(BotInformation.Teams.Blue);\n }",
"class_method_signatur... | {
"fields": [],
"file": "mrbotkicore/src/main/java/core/TeamConverter.java",
"identifier": "TeamConverter",
"interfaces": "implements CommandLine.ITypeConverter<BotInformation.Teams>",
"methods": [
{
"class_method_signature": "TeamConverter.convert(String value)",
"constructor": false,
"... | {
"body": "@Override\n public BotInformation.Teams convert(String value) throws Exception\n {\n if (value == \"gelb\" || value == \"yellow\" || value == \"g\" || value == \"y\")\n return Yellow;\n else if (value == \"blau\" || value == \"blue\" || value == \"b\")\n return Blu... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_32 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSetYOfPoint()\n {\n ReferencePoint referencePoint = new ReferencePoint();\n referencePoint.setYOfPoint(10);\n assertThat(referencePoint.getYOfPoint()).isCloseTo(10, Percentage.withPercentage(1));\n }",
"class_method_signature": "ReferencePointTest.tes... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public void setYOfPoint( double aYValue ) {\n\n mY = aYValue;\n set( mX, mY, false );\n \n }",
"class_method_signature": "ReferencePoint.setYOfPoint( double aYValue )",
"constructor": false,
"full_signature": "public void setYOfPoint( double aYValue )",
"identifier": "setYOf... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_24 | {
"fields": [
{
"declarator": "fellowPlayerOriginal",
"modifier": "",
"original_string": "FellowPlayer fellowPlayerOriginal;",
"type": "FellowPlayer",
"var_name": "fellowPlayerOriginal"
},
{
"declarator": "fellowPlayerCompare",
"modifier": "",
"original_stri... | {
"body": "@Test\n\tpublic void equalsTestNoNickname() \n\t{\n\t\tfellowPlayerCompare = new FellowPlayer(5, null, true, 130.7, 70.3, 0);\n\t\tassert(!fellowPlayerOriginal.equals(fellowPlayerCompare));\n\t}",
"class_method_signature": "FellowPlayerTest.equalsTestNoNickname()",
"constructor": false,
"full_signat... | {
"fields": [
{
"declarator": "mId",
"modifier": "private",
"original_string": "private int mId;",
"type": "int",
"var_name": "mId"
},
{
"declarator": "mNickname",
"modifier": "@XmlElement(name=\"nickname\")",
"original_string": "@XmlElement(name=\"nickname\... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (!super.equals(obj))\n\t\t\treturn false;\n\t\tFellowPlayer other = (FellowPlayer) obj;\n\t\tif (mId != other.mId)\n\t\t\treturn false;\n\t\tif (mNickname == null) \n\t\t{\n\t\t\tif (other.mNickname != null)\... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_73 | {
"fields": [
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_string": "Logger mLoggerMock = mock(Logger.class);",
"type": "Logger",
"var_name": "mLoggerMock"
},
{
"declarator": "mReloadAiManagementMock = mock(ReloadAiManagement.class)",
... | {
"body": "@Test\n\tpublic void testGetInstance() {\n\t\tmSUT = Core.getInstance();\n\t\t\n\t\tassertThat(mSUT).isInstanceOf(Core.class);\n\t\tassertThat(mSUT).isEqualTo(Core.getInstance());\n\t\tassertThat(mSUT.getBotinformation()).isEqualTo(Core.getInstance().getBotinformation());\n\t}",
"class_method_signature":... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static Core sINSTANCE;",
"type": "Core",
"var_name": "sINSTANCE"
},
{
"declarator": "sBOTCORELOGGER = LogManager.getLogger(\"CORE\")",
"modifier": "private static"... | {
"body": "public static Core getInstance() {\n \n if( Core.sINSTANCE == null){\n Core.getLogger().trace( \"Creating Core-instance.\" );\n Core.sINSTANCE = new Core();\n }\n\n Core.getLogger().trace( \"Retrieving Core-instance.\" );\n return Core.sINSTANCE;\n ... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_49 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsSameObject()\n {\n ReferencePoint referencePoint = new ReferencePoint();\n Boolean result = referencePoint.equals(referencePoint);\n assertThat(result).isEqualTo(true);\n }",
"class_method_signature": "ReferencePointTest.testEqualsSameObject()",... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tReferencePoint other = (ReferencePoint) obj;\n\t\tif (Double.doubleToLongBits(mAngleToPoint) != Double.doubl... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_86 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testStartManagementWhileAlive() {\n\t\twhen(mCoreMock.getAI()).thenReturn( null );\n\t\t\n\t\tmSUT.startManagement();\n\t\tassertThat(mSUT.isAlive()).isTrue();\n\t\t\n\t\tmSUT.startManagement();\n\t\tassertThat(mSUT.isAlive()).isTrue();\n\t\tverify(mLoggerMock, times(1)).info(\"Restart... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ReloadAiManagement sINSTANCE;",
"type": "ReloadAiManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mAiActive = false",
"modifier": "private",
"... | {
"body": "public void startManagement(){\n\t \n\t if( !isAlive() ){\n\t \n\t mAiActive = true;\n\t super.start();\n\t Core.getLogger().info( \"RestartAiServerManagement started.\" );\n\t \n\t }\n \n\t}",
"class_method_signature": "ReloadAiManagement.startManagement()",
... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_69 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void mainWithEmptyCommandline() {\n\t\tString[] vEmptyCommandline = new String[0];\n\t\tdoNothing().when(mCoreMock).startBot(vEmptyCommandline);\n\t\t\n\t\tMain.main(vEmptyCommandline);\n\t\t\n\t\tassertThat(System.getProperty(\"Bot\")).isEqualToIgnoringCase(ManagementFactory.getRuntimeMXBe... | {
"fields": [],
"file": "mrbotkicore/src/main/java/core/Main.java",
"identifier": "Main",
"interfaces": "",
"methods": [
{
"class_method_signature": "Main.main( String[] aCommandline )",
"constructor": false,
"full_signature": "public static void main( String[] aCommandline )",
"id... | {
"body": "public static void main( String[] aCommandline ) {\n \n System.setProperty(\"Bot\", ManagementFactory.getRuntimeMXBean().getName() + \"\" );\n Core.getLogger().info(\"Starting Bot(\" + ManagementFactory.getRuntimeMXBean().getName() + \")\" );\n \n StringBuilder vParameter... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_1 | {
"fields": [
{
"declarator": "mockBotInformation = mock(BotInformation.class)",
"modifier": "",
"original_string": "BotInformation mockBotInformation = mock(BotInformation.class);",
"type": "BotInformation",
"var_name": "mockBotInformation"
},
{
"declarator": "mockInet... | {
"body": "@Test\n public void testGetAllGamevalueNamesAsAString()\n {\n String gvString = new String();\n for ( BotInformation.GamevalueNames vGamevalueName : BotInformation.GamevalueNames.values() )\n {\n gvString += vGamevalueName.toString() + \" \";\n }\n assert... | {
"fields": [
{
"declarator": "sBOTINFORMATIONLOGGER = LogManager.getLogger(\"BOTINFORMATION\")",
"modifier": "private static",
"original_string": "private static Logger sBOTINFORMATIONLOGGER = LogManager.getLogger(\"BOTINFORMATION\");",
"type": "Logger",
"var_name": "sBOTINFORMATION... | {
"body": "public synchronized String toString() {\n\n String vBotInformationString = \"Bot \" + getBotname() + \"(\" + getRcId() + \"/\" + getVtId() + \")\\n\";\n vBotInformationString += \"with Address: \" + getBotIP().toString() + \" Port: \" + getBotPort();\n vBotInformationString += getRecon... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_28 | {
"fields": [
{
"declarator": "fellowPlayerOriginal",
"modifier": "",
"original_string": "FellowPlayer fellowPlayerOriginal;",
"type": "FellowPlayer",
"var_name": "fellowPlayerOriginal"
},
{
"declarator": "fellowPlayerCompare",
"modifier": "",
"original_stri... | {
"body": "@Test\n\tpublic void equalsTestNoStatusSwitched() \n\t{\n\t\tfellowPlayerCompare = new FellowPlayer(5, \"Bob\", null, 130.7, 70.3, 0);\n\t\tassert(!fellowPlayerCompare.equals(fellowPlayerOriginal));\n\t}",
"class_method_signature": "FellowPlayerTest.equalsTestNoStatusSwitched()",
"constructor": false,... | {
"fields": [
{
"declarator": "mId",
"modifier": "private",
"original_string": "private int mId;",
"type": "int",
"var_name": "mId"
},
{
"declarator": "mNickname",
"modifier": "@XmlElement(name=\"nickname\")",
"original_string": "@XmlElement(name=\"nickname\... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (!super.equals(obj))\n\t\t\treturn false;\n\t\tFellowPlayer other = (FellowPlayer) obj;\n\t\tif (mId != other.mId)\n\t\t\treturn false;\n\t\tif (mNickname == null) \n\t\t{\n\t\t\tif (other.mNickname != null)\... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_90 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testStopManagementWhenNotAlive() {\n\t\twhen(mCoreMock.getAI()).thenReturn( null );\n\t\t\n\t\tassertThat(mSUT.isAlive()).isFalse();\n\t\tmSUT.stopManagement();\n\t\tassertThat(mSUT.isAlive()).isFalse();\n\t\tverify(mLoggerMock, never()).info(\"RestartAiServerManagement stopped.\");\n\... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ReloadAiManagement sINSTANCE;",
"type": "ReloadAiManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mAiActive = false",
"modifier": "private",
"... | {
"body": "public void stopManagement(){\n\t\t\n\t\tmAiActive = false;\n\t\t\n\t\tif( isAlive()){\n\t\t \n\t\t Core.getLogger().info( \"RestartAiServerManagement stopping.\" );\n\t\t\n\t\t while(isAlive()){\n\t\t \n \t\t try {\n Thread.sleep( 10 );\n } catch ( E... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_53 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/ObjectFactoryTest.java",
"identifier": "ObjectFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreateRawWorldData()\n {\n ObjectFactory objectFactory = new ObjectFactory();\n\n assertThat(objectFactory.createRawWorldData()).isInstanceOf(RawWorldData.class);\n }",
"class_method_signature": "ObjectFactoryTest.testCreateRawWorldData()",
"constructor": ... | {
"fields": [],
"file": "mrbotkiessentials/src/main/java/essentials/communication/ObjectFactory.java",
"identifier": "ObjectFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "ObjectFactory.createRawWorldData()",
"constructor": false,
"full_signature": "public RawWorldD... | {
"body": "public RawWorldData createRawWorldData() {\n return new RawWorldData();\n }",
"class_method_signature": "ObjectFactory.createRawWorldData()",
"constructor": false,
"full_signature": "public RawWorldData createRawWorldData()",
"identifier": "createRawWorldData",
"invocations": [],
"mod... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_45 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEpsilonEqualsDoubleNotExactIsTrue()\n {\n ReferencePoint referencePoint = new ReferencePoint(50,20,false);\n Boolean result = referencePoint.epsilonEquals(51.0,19.0,2);\n assertThat(result).isEqualTo(true);\n }",
"class_method_signature": "ReferencePo... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public boolean epsilonEquals ( ReferencePoint aReferencePoint, double aEpsilon )\n {\n\n return aReferencePoint != null\n && (Math.abs(aReferencePoint.getXOfPoint() - mX) <= aEpsilon)\n && (Math.abs(aReferencePoint.getYOfPoint() - mY) <= aEpsilon);\n\n }",
"clas... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_12 | {
"fields": [
{
"declarator": "rawWorldData = new RawWorldData()",
"modifier": "",
"original_string": "RawWorldData rawWorldData = new RawWorldData();",
"type": "RawWorldData",
"var_name": "rawWorldData"
},
{
"declarator": "rawWorldDataSpy = spy(rawWorldData)",
"m... | {
"body": "@Test\n\tpublic void setBallPositionTest()\n\t{\n\t\tBallPosition bp = new BallPosition(30, 40, true);\n\t\t\n\t\trawWorldDataSpy.setBallPosition(bp);\n\t\tassert(rawWorldDataSpy.getBallPosition().equals(bp));\n\t}",
"class_method_signature": "RawWorldDataTest.setBallPositionTest()",
"constructor": fal... | {
"fields": [
{
"declarator": "mPlayTime",
"modifier": "@XmlElement(name=\"time\")",
"original_string": "@XmlElement(name=\"time\")\n\tdouble mPlayTime;",
"type": "double",
"var_name": "mPlayTime"
},
{
"declarator": "mPlayMode",
"modifier": "@XmlElement(name=\"pla... | {
"body": "public void setBallPosition(BallPosition ballPos){\n\t\tmBallPosition = ballPos != null ? ballPos : new BallPosition();\n\t}",
"class_method_signature": "RawWorldData.setBallPosition(BallPosition ballPos)",
"constructor": false,
"full_signature": "public void setBallPosition(BallPosition ballPos)",
... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_103 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testSendMessagesWithAI() throws Exception {\n\t\twhen(mCoreMock.getServerConnection()).thenReturn( mNetworkCommunicationMock );\n\t\twhen(mCoreMock.getAI()).thenReturn( mArtificialIntelligenceMock );\n\t\twhen(mArtificialIntelligenceMock.getAction()).thenAnswer(new Answer<Action>() {\n... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ToServerManagement sINSTANCE;",
"type": "ToServerManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mManageMessagesToServer = false",
"modifier": "@Gu... | {
"body": "public void startManagement(){\n\t\t\n\t\tif( Core.getInstance().getServerConnection() == null ) {\n\t\t\t\n\t\t\tthrow new NullPointerException( \"NetworkCommunication cannot be NULL when starting ToServerManagement.\" ) ;\n\t\t\t\n\t\t} else if ( isAlive() ){\n\t\t\t\n\t\t\tthrow new IllegalThreadStateEx... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_13 | {
"fields": [
{
"declarator": "rawWorldData = new RawWorldData()",
"modifier": "",
"original_string": "RawWorldData rawWorldData = new RawWorldData();",
"type": "RawWorldData",
"var_name": "rawWorldData"
},
{
"declarator": "rawWorldDataSpy = spy(rawWorldData)",
"m... | {
"body": "@Test\n\tpublic void getReferencePointsTest()\n\t{\n\t\tList<ReferencePoint> refPoints = rawWorldData.getReferencePoints();\n\t\tassert(refPoints==null);\n\t\t\n\t\t\n\t}",
"class_method_signature": "RawWorldDataTest.getReferencePointsTest()",
"constructor": false,
"full_signature": "@Test public voi... | {
"fields": [
{
"declarator": "mPlayTime",
"modifier": "@XmlElement(name=\"time\")",
"original_string": "@XmlElement(name=\"time\")\n\tdouble mPlayTime;",
"type": "double",
"var_name": "mPlayTime"
},
{
"declarator": "mPlayMode",
"modifier": "@XmlElement(name=\"pla... | {
"body": "@XmlTransient\n public List<ReferencePoint> getReferencePoints() {\n return mReferencePoints;\n }",
"class_method_signature": "RawWorldData.getReferencePoints()",
"constructor": false,
"full_signature": "@XmlTransient public List<ReferencePoint> getReferencePoints()",
"identifier": "ge... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_102 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testIsSendingMessagesWhenNotAlive() {\n\t\tassertThat(mSUT.isAlive()).isFalse();\n\t\t\n\t\tassertThat(mSUT.isSendingMessages()).isFalse();\n\t}",
"class_method_signature": "ToServerManagementTest.testIsSendingMessagesWhenNotAlive()",
"constructor": false,
"full_signature": "@Tes... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ToServerManagement sINSTANCE;",
"type": "ToServerManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mManageMessagesToServer = false",
"modifier": "@Gu... | {
"body": "public boolean isSendingMessages(){\n\t \n\t return isAlive() && (System.currentTimeMillis() - mLastSendMessage.get() ) < 100;\n\t \n\t}",
"class_method_signature": "ToServerManagement.isSendingMessages()",
"constructor": false,
"full_signature": "public boolean isSendingMessages()",
"iden... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_44 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEpsilonEqualsReferencePointYSmallerThanEpsilon()\n {\n ReferencePoint referencePoint = new ReferencePoint(50,20,false);\n Boolean result = referencePoint.epsilonEquals(new ReferencePoint(50,0,false),1);\n assertThat(result).isEqualTo(false);\n }",
"cl... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public boolean epsilonEquals ( ReferencePoint aReferencePoint, double aEpsilon )\n {\n\n return aReferencePoint != null\n && (Math.abs(aReferencePoint.getXOfPoint() - mX) <= aEpsilon)\n && (Math.abs(aReferencePoint.getYOfPoint() - mY) <= aEpsilon);\n\n }",
"clas... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_52 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToString()\n {\n ReferencePoint referencePoint = new ReferencePoint();\n referencePoint.setPointName(ReferencePointName.NoFixedName);\n double distance = 1.41421356;\n double angle = 45.0;\n\n referencePoint.setDistanceToPoint(distance);\n ... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "@Override\n public String toString() {\n return \"ReferencePoint [mPointName=\" + mPointName + \", mDistanceToPoint=\" + mDistanceToPoint\n + \", mAngleToPoint=\" + mAngleToPoint + \", mX=\" + mX + \", mY=\" + mY + \"]\";\n }",
"class_method_signature": "ReferencePoint.toStrin... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_91 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testRunWithoutStart() throws Exception {\n\t\twhen(mCoreMock.getAI()).thenReturn( mArtificialIntelligenceMock );\n\t\t\n\t\tassertThat(mSUT.isAlive()).isFalse();\n\t\tmSUT.run();\n\t\tassertThat(mSUT.isAlive()).isFalse();\n\n\t\tverifyZeroInteractions(mArtificialIntelligenceMock);\n\t}... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ReloadAiManagement sINSTANCE;",
"type": "ReloadAiManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mAiActive = false",
"modifier": "private",
"... | {
"body": "@Override\n\tpublic void run(){\n\t\t\n\t\twhile( mAiActive ){\n\n\t\t try {\n\t\t \n\t\t \tif(Core.getInstance().getAI() != null && Core.getInstance().getAI().wantRestart()){\n\n\t Core.getInstance().initializeAI();\n\t Core.getInstance().resumeAI();\n\t ... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_29 | {
"fields": [
{
"declarator": "fellowPlayerOriginal",
"modifier": "",
"original_string": "FellowPlayer fellowPlayerOriginal;",
"type": "FellowPlayer",
"var_name": "fellowPlayerOriginal"
},
{
"declarator": "fellowPlayerCompare",
"modifier": "",
"original_stri... | {
"body": "@Test\n\tpublic void equalsTestNoStatusBoth() \n\t{\n\t\tfellowPlayerCompare = new FellowPlayer(5, \"Bob\", null, 130.7, 70.3, 0);\n\t\tFellowPlayer fellowPlayerOriginalLocal = new FellowPlayer(5, \"Bob\", null, 130.7, 70.3, 0);\n\t\tassert(fellowPlayerCompare.equals(fellowPlayerOriginalLocal));\n\t}",
... | {
"fields": [
{
"declarator": "mId",
"modifier": "private",
"original_string": "private int mId;",
"type": "int",
"var_name": "mId"
},
{
"declarator": "mNickname",
"modifier": "@XmlElement(name=\"nickname\")",
"original_string": "@XmlElement(name=\"nickname\... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (!super.equals(obj))\n\t\t\treturn false;\n\t\tFellowPlayer other = (FellowPlayer) obj;\n\t\tif (mId != other.mId)\n\t\t\treturn false;\n\t\tif (mNickname == null) \n\t\t{\n\t\t\tif (other.mNickname != null)\... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_0 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/logging/ExceptionUtilitiesTest.java",
"identifier": "ExceptionUtilitiesTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetStackTraceAsString()\n {\n Exception mockException = mock(Exception.class);\n when(mockException.toString()).thenReturn(\"Mocked Exception\");\n when(mockException.getStackTrace()).thenReturn(new StackTraceElement[]{\n new StackTraceEleme... | {
"fields": [],
"file": "mrbotkiessentials/src/main/java/essentials/logging/ExceptionUtilities.java",
"identifier": "ExceptionUtilities",
"interfaces": "",
"methods": [
{
"class_method_signature": "ExceptionUtilities.getStackTraceAsString( Exception aException )",
"constructor": false,
"... | {
"body": "public static String getStackTraceAsString( Exception aException ){\n\t\t\n\t\tString vStackTrace = \"\\t\" + aException.toString() + \"\\n\";\n\t\t\n\t\tfor( StackTraceElement vElement : aException.getStackTrace() ){\n\t\t\t\n\t\t\tvStackTrace += \"\\t\\t\" + vElement.toString() + \"\\n\";\n\t\t\t\n\t\t}\... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_87 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testStartWhileNotAlive() {\n\t\twhen(mCoreMock.getAI()).thenReturn( null );\n\t\tassertThat(mSUT.isAlive()).isFalse();\n\t\t\n\t\tmSUT.start();\n\t\t\n\t\tassertThat(mSUT.isAlive()).isTrue();\n\t\tverify(mLoggerMock).info(\"RestartAiServerManagement started.\");\n\t\t\t\n\t}",
"class... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ReloadAiManagement sINSTANCE;",
"type": "ReloadAiManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mAiActive = false",
"modifier": "private",
"... | {
"body": "@Override\n\tpublic void start(){\n\t\t\n\t\tstartManagement();\n\t\t\n\t}",
"class_method_signature": "ReloadAiManagement.start()",
"constructor": false,
"full_signature": "@Override public void start()",
"identifier": "start",
"invocations": [
"startManagement"
],
"modifiers": "@Overrid... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_68 | {
"fields": [
{
"declarator": "teamConverter = new TeamConverter()",
"modifier": "",
"original_string": "TeamConverter teamConverter = new TeamConverter();",
"type": "TeamConverter",
"var_name": "teamConverter"
}
],
"file": "mrbotkicore/src/test/java/core/TeamConverterTest.ja... | {
"body": "@Test\n public void testConvertWithValueIsSomething() throws Exception\n {\n TeamConverter teamConverter = new TeamConverter();\n BotInformation.Teams result = teamConverter.convert(\"something\");\n assertThat(result).isEqualTo(BotInformation.Teams.NotSpecified);\n }",
"cla... | {
"fields": [],
"file": "mrbotkicore/src/main/java/core/TeamConverter.java",
"identifier": "TeamConverter",
"interfaces": "implements CommandLine.ITypeConverter<BotInformation.Teams>",
"methods": [
{
"class_method_signature": "TeamConverter.convert(String value)",
"constructor": false,
"... | {
"body": "@Override\n public BotInformation.Teams convert(String value) throws Exception\n {\n if (value == \"gelb\" || value == \"yellow\" || value == \"g\" || value == \"y\")\n return Yellow;\n else if (value == \"blau\" || value == \"blue\" || value == \"b\")\n return Blu... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_48 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEpsilonEqualsDoubleExactIsFalse()\n {\n ReferencePoint referencePoint = new ReferencePoint(50,20,false);\n Boolean result = referencePoint.epsilonEquals(138.0,31.0,0);\n assertThat(result).isEqualTo(false);\n }",
"class_method_signature": "ReferencePo... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public boolean epsilonEquals ( ReferencePoint aReferencePoint, double aEpsilon )\n {\n\n return aReferencePoint != null\n && (Math.abs(aReferencePoint.getXOfPoint() - mX) <= aEpsilon)\n && (Math.abs(aReferencePoint.getYOfPoint() - mY) <= aEpsilon);\n\n }",
"clas... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_72 | {
"fields": [
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_string": "Logger mLoggerMock = mock(Logger.class);",
"type": "Logger",
"var_name": "mLoggerMock"
},
{
"declarator": "mReloadAiManagementMock = mock(ReloadAiManagement.class)",
... | {
"body": "@Test\n\tpublic void testConstructorWithBotInformation() {\n\t\tmSUT = new Core(mBotInformationMock);\n\t\t\n\t\tassertThat(mSUT.getBotinformation()).isEqualTo(mBotInformationMock);\n\t}",
"class_method_signature": "CoreTest.testConstructorWithBotInformation()",
"constructor": false,
"full_signature"... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static Core sINSTANCE;",
"type": "Core",
"var_name": "sINSTANCE"
},
{
"declarator": "sBOTCORELOGGER = LogManager.getLogger(\"CORE\")",
"modifier": "private static"... | {
"body": "synchronized public BotInformation getBotinformation() {\n \n Core.getLogger().debug( \"Retriving Botinformation: \\n\" + mBotinformation.toString() );\n return mBotinformation;\n \n }",
"class_method_signature": "Core.getBotinformation()",
"constructor": false,
"full_sig... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_25 | {
"fields": [
{
"declarator": "fellowPlayerOriginal",
"modifier": "",
"original_string": "FellowPlayer fellowPlayerOriginal;",
"type": "FellowPlayer",
"var_name": "fellowPlayerOriginal"
},
{
"declarator": "fellowPlayerCompare",
"modifier": "",
"original_stri... | {
"body": "@Test\n\tpublic void equalsTestNoNicknameSwitched()\n\t{\n\t\tfellowPlayerCompare = new FellowPlayer(5, null, true, 130.7, 70.3, 0);\n\t\tassert(!fellowPlayerCompare.equals(fellowPlayerOriginal));\n\t}",
"class_method_signature": "FellowPlayerTest.equalsTestNoNicknameSwitched()",
"constructor": false,... | {
"fields": [
{
"declarator": "mId",
"modifier": "private",
"original_string": "private int mId;",
"type": "int",
"var_name": "mId"
},
{
"declarator": "mNickname",
"modifier": "@XmlElement(name=\"nickname\")",
"original_string": "@XmlElement(name=\"nickname\... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (!super.equals(obj))\n\t\t\treturn false;\n\t\tFellowPlayer other = (FellowPlayer) obj;\n\t\tif (mId != other.mId)\n\t\t\treturn false;\n\t\tif (mNickname == null) \n\t\t{\n\t\t\tif (other.mNickname != null)\... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_33 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCopy()\n {\n ReferencePoint referencePoint = new ReferencePoint(10,15,false);\n ReferencePoint copyOfReferencePoint = referencePoint.copy();\n assertThat(copyOfReferencePoint).isNotNull();\n assertThat(copyOfReferencePoint).isInstanceOf(ReferencePoi... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public ReferencePoint copy () {\n \n return new ReferencePoint( this );\n \n }",
"class_method_signature": "ReferencePoint.copy()",
"constructor": false,
"full_signature": "public ReferencePoint copy()",
"identifier": "copy",
"invocations": [],
"modifiers": "publ... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_64 | {
"fields": [
{
"declarator": "teamConverter = new TeamConverter()",
"modifier": "",
"original_string": "TeamConverter teamConverter = new TeamConverter();",
"type": "TeamConverter",
"var_name": "teamConverter"
}
],
"file": "mrbotkicore/src/test/java/core/TeamConverterTest.ja... | {
"body": "@Test\n public void testConvertWithValueIsY() throws Exception\n {\n TeamConverter teamConverter = new TeamConverter();\n BotInformation.Teams result = teamConverter.convert(\"y\");\n assertThat(result).isEqualTo(BotInformation.Teams.Yellow);\n }",
"class_method_signature": ... | {
"fields": [],
"file": "mrbotkicore/src/main/java/core/TeamConverter.java",
"identifier": "TeamConverter",
"interfaces": "implements CommandLine.ITypeConverter<BotInformation.Teams>",
"methods": [
{
"class_method_signature": "TeamConverter.convert(String value)",
"constructor": false,
"... | {
"body": "@Override\n public BotInformation.Teams convert(String value) throws Exception\n {\n if (value == \"gelb\" || value == \"yellow\" || value == \"g\" || value == \"y\")\n return Yellow;\n else if (value == \"blau\" || value == \"blue\" || value == \"b\")\n return Blu... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_80 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testGetInstance() {\n\t\tFromServerManagement vSaveToCompare = FromServerManagement.getInstance();\n\t\t\n\t\tassertThat(vSaveToCompare).isInstanceOf(FromServerManagement.class);\n\t\tassertThat(vSaveToCompare).isEqualTo(FromServerManagement.getInstance());\n\t}",
"class_method_signa... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static FromServerManagement sINSTANCE;",
"type": "FromServerManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mManageMessagesFromServer = false",
"modifier"... | {
"body": "public static FromServerManagement getInstance() {\n \n if( FromServerManagement.sINSTANCE == null){\n FromServerManagement.sINSTANCE = new FromServerManagement();\n }\n \n return FromServerManagement.sINSTANCE;\n \n }",
"class_method_signature": "F... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_38 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMultiply()\n {\n ReferencePoint referencePoint = new ReferencePoint(50,20, false);\n referencePoint.multiply(2.0);\n assertThat(referencePoint.getXOfPoint()).isCloseTo(100, Percentage.withPercentage(1));\n assertThat(referencePoint.getYOfPoint()).is... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public ReferencePoint multiply( double scalar ) {\n mX *= scalar;\n mY *= scalar;\n return set( mX, mY, false );\n }",
"class_method_signature": "ReferencePoint.multiply( double scalar )",
"constructor": false,
"full_signature": "public ReferencePoint multiply( dou... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_7 | {
"fields": [
{
"declarator": "mockMovement",
"modifier": "",
"original_string": "Movement mockMovement;",
"type": "Movement",
"var_name": "mockMovement"
}
],
"file": "mrbotkiessentials/src/test/java/essentials/communication/action_server2008/MovementTest.java",
"identifier... | {
"body": "@Test\n public void testEqualsWithObjectIsNull()\n {\n Movement movement = new Movement(51,50);\n assertThat(movement.equals(null)).isEqualTo(false);\n }",
"class_method_signature": "MovementTest.testEqualsWithObjectIsNull()",
"constructor": false,
"full_signature": "@Test publ... | {
"fields": [
{
"declarator": "NO_MOVEMENT = new Movement( 0, 0)",
"modifier": "public static final",
"original_string": "public static final Movement NO_MOVEMENT = new Movement( 0, 0);",
"type": "Movement",
"var_name": "NO_MOVEMENT"
},
{
"declarator": "mRightWheelVeloc... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tMovement other = (Movement) obj;\n\t\tif (mLeftWheelVelocity != other.mLeftWheelVelocity)\n\t\t\treturn fals... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_96 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testStartManagementWithNetworkConnectionAndNotAlive() {\n\t\twhen(mCoreMock.getServerConnection()).thenReturn( mNetworkCommunicationMock );\n\t\twhen(mCoreMock.getAI()).thenReturn( null );\n\t\t\n\t\tmSUT.startManagement();\n\t\t\n\t\tassertThat(mSUT.isAlive()).isTrue();\n\t\tverify(mL... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ToServerManagement sINSTANCE;",
"type": "ToServerManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mManageMessagesToServer = false",
"modifier": "@Gu... | {
"body": "public void startManagement(){\n\t\t\n\t\tif( Core.getInstance().getServerConnection() == null ) {\n\t\t\t\n\t\t\tthrow new NullPointerException( \"NetworkCommunication cannot be NULL when starting ToServerManagement.\" ) ;\n\t\t\t\n\t\t} else if ( isAlive() ){\n\t\t\t\n\t\t\tthrow new IllegalThreadStateEx... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_79 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testStartWithNetworkConnectionAndNotAlive() {\n\t\twhen(mCoreMock.getServerConnection()).thenReturn( mNetworkCommunicationMock );\n\t\twhen(mCoreMock.getAI()).thenReturn( null );\n\t\t\n\t\tmSUT.start();\n\t\t\n\t\tassertThat(mSUT.isAlive()).isTrue();\n\t\tverify(mLoggerMock).info(\"Fr... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static FromServerManagement sINSTANCE;",
"type": "FromServerManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mManageMessagesFromServer = false",
"modifier"... | {
"body": "@Override\n\tpublic void start(){\n\t\t\n\t\tstartManagement();\n\t\t\n\t}",
"class_method_signature": "FromServerManagement.start()",
"constructor": false,
"full_signature": "@Override public void start()",
"identifier": "start",
"invocations": [
"startManagement"
],
"modifiers": "@Overr... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_55 | {
"fields": [
{
"declarator": "botInformationMock = mock(BotInformation.class)",
"modifier": "",
"original_string": "BotInformation botInformationMock = mock(BotInformation.class);",
"type": "BotInformation",
"var_name": "botInformationMock"
},
{
"declarator": "mOwnId =... | {
"body": "@Test\n\tpublic void testGetXMLString() {\n\t\tInitialConnectionData initialConnectionData = new InitialConnectionData(botInformationMock);\n\t\t//assertThat(initialConnectionData.getXMLString(),);\n\t\tfail(\"Not yet implemented\");\n\t}",
"class_method_signature": "InitialConnectionDataTest.testGetXMLS... | {
"fields": [
{
"declarator": "mConnection = new connect()",
"modifier": "private",
"original_string": "private connect mConnection = new connect();",
"type": "connect",
"var_name": "mConnection"
}
],
"file": "mrbotkinetwork/src/main/java/fwns_network/server_2008/InitialConne... | {
"body": "@Override\n\tpublic String getXMLString() {\n\t\t\n\t\tStringWriter vXMLDataStream = new StringWriter();\n\t\tJAXB.marshal( mConnection, vXMLDataStream );\n\t\t\n\t\tString vXMLDataString = vXMLDataStream.toString();\n\t\tvXMLDataString = vXMLDataString.substring( vXMLDataString.indexOf('>') + 2 );\n\t\t\n... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_43 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEpsilonEqualsReferencePointWithReferencePointIsNull()\n {\n ReferencePoint referencePoint = new ReferencePoint(50,20,false);\n Boolean result = referencePoint.epsilonEquals(null,0);\n assertThat(result).isEqualTo(false);\n }",
"class_method_signature"... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public boolean epsilonEquals ( ReferencePoint aReferencePoint, double aEpsilon )\n {\n\n return aReferencePoint != null\n && (Math.abs(aReferencePoint.getXOfPoint() - mX) <= aEpsilon)\n && (Math.abs(aReferencePoint.getYOfPoint() - mY) <= aEpsilon);\n\n }",
"clas... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_14 | {
"fields": [
{
"declarator": "rawWorldData = new RawWorldData()",
"modifier": "",
"original_string": "RawWorldData rawWorldData = new RawWorldData();",
"type": "RawWorldData",
"var_name": "rawWorldData"
},
{
"declarator": "rawWorldDataSpy = spy(rawWorldData)",
"m... | {
"body": "@Test\n\tpublic void getReferencePointTestNA()\n\t{\n\t\tReferencePoint mockedBottomCenter = mock(ReferencePoint.class);\n\t\t\n\t\trawWorldData.mReferencePoints = new ArrayList<>();\n\t\trawWorldData.mReferencePoints.add(0, new ReferencePoint());\n\t\trawWorldData.mReferencePoints.add(0, new ReferencePoin... | {
"fields": [
{
"declarator": "mPlayTime",
"modifier": "@XmlElement(name=\"time\")",
"original_string": "@XmlElement(name=\"time\")\n\tdouble mPlayTime;",
"type": "double",
"var_name": "mPlayTime"
},
{
"declarator": "mPlayMode",
"modifier": "@XmlElement(name=\"pla... | {
"body": "public ReferencePoint getReferencePoint( ReferencePointName aName ) {\n \n if( mReferencePoints.get( aName.getPosition() ).getPointName() == aName ){\n \n return mReferencePoints.get( aName.getPosition() );\n \n }\n \n for( ReferencePoint ... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_105 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testLoseServerConnectionWhileSendingMessages() throws Exception {\n\t\twhen(mCoreMock.getServerConnection()).thenReturn( mNetworkCommunicationMock );\n\t\twhen(mCoreMock.getAI()).thenReturn( mArtificialIntelligenceMock );\n\t\twhen(mArtificialIntelligenceMock.getAction()).thenAnswer(ne... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static ToServerManagement sINSTANCE;",
"type": "ToServerManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mManageMessagesToServer = false",
"modifier": "@Gu... | {
"body": "public void startManagement(){\n\t\t\n\t\tif( Core.getInstance().getServerConnection() == null ) {\n\t\t\t\n\t\t\tthrow new NullPointerException( \"NetworkCommunication cannot be NULL when starting ToServerManagement.\" ) ;\n\t\t\t\n\t\t} else if ( isAlive() ){\n\t\t\t\n\t\t\tthrow new IllegalThreadStateEx... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_63 | {
"fields": [
{
"declarator": "teamConverter = new TeamConverter()",
"modifier": "",
"original_string": "TeamConverter teamConverter = new TeamConverter();",
"type": "TeamConverter",
"var_name": "teamConverter"
}
],
"file": "mrbotkicore/src/test/java/core/TeamConverterTest.ja... | {
"body": "@Test\n public void testConvertWithValueIsG() throws Exception\n {\n TeamConverter teamConverter = new TeamConverter();\n BotInformation.Teams result = teamConverter.convert(\"g\");\n assertThat(result).isEqualTo(BotInformation.Teams.Yellow);\n }",
"class_method_signature": ... | {
"fields": [],
"file": "mrbotkicore/src/main/java/core/TeamConverter.java",
"identifier": "TeamConverter",
"interfaces": "implements CommandLine.ITypeConverter<BotInformation.Teams>",
"methods": [
{
"class_method_signature": "TeamConverter.convert(String value)",
"constructor": false,
"... | {
"body": "@Override\n public BotInformation.Teams convert(String value) throws Exception\n {\n if (value == \"gelb\" || value == \"yellow\" || value == \"g\" || value == \"y\")\n return Yellow;\n else if (value == \"blau\" || value == \"blue\" || value == \"b\")\n return Blu... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_34 | {
"fields": [],
"file": "mrbotkiessentials/src/test/java/essentials/communication/worlddata_server2008/ReferencePointTest.java",
"identifier": "ReferencePointTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = IllegalArgumentException.class)\n public void testSetWithPolarcoordinatesWithNegativeDistance()\n {\n ReferencePoint referencePoint = new ReferencePoint();\n referencePoint.set(-5,25,true);\n\n }",
"class_method_signature": "ReferencePointTest.testSetWithPolarcoord... | {
"fields": [
{
"declarator": "mPointName = ReferencePointName.NoFixedName",
"modifier": "private",
"original_string": "private ReferencePointName mPointName = ReferencePointName.NoFixedName;",
"type": "ReferencePointName",
"var_name": "mPointName"
},
{
"declarator": "m... | {
"body": "public ReferencePoint set ( ReferencePoint aReferencePoint ) {\n\n mDistanceToPoint = aReferencePoint.getDistanceToPoint();\n mAngleToPoint = aReferencePoint.getAngleToPoint();\n \n mX = aReferencePoint.getXOfPoint();\n mY = aReferencePoint.getYOfPoint();\n \n ... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_22 | {
"fields": [
{
"declarator": "fellowPlayerOriginal",
"modifier": "",
"original_string": "FellowPlayer fellowPlayerOriginal;",
"type": "FellowPlayer",
"var_name": "fellowPlayerOriginal"
},
{
"declarator": "fellowPlayerCompare",
"modifier": "",
"original_stri... | {
"body": "@Test\n\tpublic void equalsTestWrongAngle() \n\t{\n\t\tfellowPlayerCompare = new FellowPlayer(5, \"Bob\", true, 130.7, 70.4, 0);\n\t\tassert(!fellowPlayerOriginal.equals(fellowPlayerCompare));\n\t}",
"class_method_signature": "FellowPlayerTest.equalsTestWrongAngle()",
"constructor": false,
"full_sig... | {
"fields": [
{
"declarator": "mId",
"modifier": "private",
"original_string": "private int mId;",
"type": "int",
"var_name": "mId"
},
{
"declarator": "mNickname",
"modifier": "@XmlElement(name=\"nickname\")",
"original_string": "@XmlElement(name=\"nickname\... | {
"body": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (!super.equals(obj))\n\t\t\treturn false;\n\t\tFellowPlayer other = (FellowPlayer) obj;\n\t\tif (mId != other.mId)\n\t\t\treturn false;\n\t\tif (mNickname == null) \n\t\t{\n\t\t\tif (other.mNickname != null)\... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
9004636_75 | {
"fields": [
{
"declarator": "mCoreMock = mock(Core.class)",
"modifier": "",
"original_string": "Core mCoreMock = mock(Core.class);",
"type": "Core",
"var_name": "mCoreMock"
},
{
"declarator": "mLoggerMock = mock(Logger.class)",
"modifier": "",
"original_st... | {
"body": "@Test\n\tpublic void testStartManagementWithoutNetworkConnection() {\n\t\twhen(mCoreMock.getServerConnection()).thenReturn( null );\n\t\t\n\t\ttry{\n\t\t\tmSUT.startManagement();\n\t\t\tfail(\"Expected Nullpointerexception\");\n\t\t} catch( Exception vExpectedException ) {\n\t\t\tassertThat(vExpectedExcept... | {
"fields": [
{
"declarator": "sINSTANCE",
"modifier": "private static",
"original_string": "private static FromServerManagement sINSTANCE;",
"type": "FromServerManagement",
"var_name": "sINSTANCE"
},
{
"declarator": "mManageMessagesFromServer = false",
"modifier"... | {
"body": "public void startManagement(){\n\n\t\tif( Core.getInstance().getServerConnection() == null ) {\n\n\t\t\tthrow new NullPointerException( \"NetworkCommunication cannot be NULL when starting FromServerManagement.\" ) ;\n\n\t\t} else if ( isAlive() ){\n\t\t\t\n\t\t\tthrow new IllegalThreadStateException( \"Fro... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "Other",
"repo_id": 9004636,
"size": 21952,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/NorthernStars/MR-FWNS"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.