id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
212625733_7 | {
"fields": [],
"file": "inversion-api/src/test/java/io/inversion/action/db/DbPostActionTest.java",
"identifier": "DbPostActionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCollapses3() {\n JSNode parent = new JSNode();\n parent.put(\"name\", \"testing\");\n\n JSNode child1 = new JSNode();\n parent.put(\"child1\", child1);\n child1.put(\"href\", \"http://child1\");\n child1.put(\"name\", \"child1\");\n\n JSNode child2 = new JSNode();\n parent.put(\"child2\", child2);\n child2.put(\"href\", \"http://child2\");\n child2.put(\"name\", \"child2\");\n\n JSNode child3 = new JSNode();\n child2.put(\"child3\", child3);\n child3.put(\"href\", \"http://child3\");\n child3.put(\"name\", \"child3\");\n\n JSNode collapsed = JSNode.parseJsonNode(parent.toString());\n\n DbPostAction.collapse(collapsed, false, Collections.singleton(\"child2.child3\"), \"\");\n\n JSNode benchmark = JSNode.parseJsonNode(parent.toString());\n benchmark.getNode(\"child2\").getNode(\"child3\").remove(\"name\");\n\n assertEquals(collapsed.toString(), benchmark.toString());\n\n }",
"class_method_signature": "DbPostActionTest.testCollapses3()",
"constructor": false,
"full_signature": "@Test public void testCollapses3()",
"identifier": "testCollapses3",
"invocations": [
"put",
"put",
"put",
"put",
"put",
"put",
"put",
"put",
"put",
"put",
"parseJsonNode",
"toString",
"collapse",
"singleton",
"parseJsonNode",
"toString",
"remove",
"getNode",
"getNode",
"assertEquals",
"toString",
"toString"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testCollapses3()",
"testcase": true
} | {
"fields": [
{
"declarator": "collapseAll = false",
"modifier": "protected",
"original_string": "protected boolean collapseAll = false;",
"type": "boolean",
"var_name": "collapseAll"
},
{
"declarator": "strictRest = false",
"modifier": "protected",
"original_string": "protected boolean strictRest = false;",
"type": "boolean",
"var_name": "strictRest"
},
{
"declarator": "expandResponse = true",
"modifier": "protected",
"original_string": "protected boolean expandResponse = true;",
"type": "boolean",
"var_name": "expandResponse"
}
],
"file": "inversion-api/src/main/java/io/inversion/action/db/DbPostAction.java",
"identifier": "DbPostAction",
"interfaces": "",
"methods": [
{
"class_method_signature": "DbPostAction.collapse(JSNode parent, boolean collapseAll, Set collapses, String path)",
"constructor": false,
"full_signature": "public static void collapse(JSNode parent, boolean collapseAll, Set collapses, String path)",
"identifier": "collapse",
"modifiers": "public static",
"parameters": "(JSNode parent, boolean collapseAll, Set collapses, String path)",
"return": "void",
"signature": "void collapse(JSNode parent, boolean collapseAll, Set collapses, String path)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.nextPath(String path, String next)",
"constructor": false,
"full_signature": "public static String nextPath(String path, String next)",
"identifier": "nextPath",
"modifiers": "public static",
"parameters": "(String path, String next)",
"return": "String",
"signature": "String nextPath(String path, String next)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.run(Request req, Response res)",
"constructor": false,
"full_signature": "@Override public void run(Request req, Response res)",
"identifier": "run",
"modifiers": "@Override public",
"parameters": "(Request req, Response res)",
"return": "void",
"signature": "void run(Request req, Response res)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.patch(Request req, Response res)",
"constructor": false,
"full_signature": "public void patch(Request req, Response res)",
"identifier": "patch",
"modifiers": "public",
"parameters": "(Request req, Response res)",
"return": "void",
"signature": "void patch(Request req, Response res)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.upsert(Request req, Response res)",
"constructor": false,
"full_signature": "public void upsert(Request req, Response res)",
"identifier": "upsert",
"modifiers": "public",
"parameters": "(Request req, Response res)",
"return": "void",
"signature": "void upsert(Request req, Response res)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.upsert(Request req, Collection collection, JSArray nodes)",
"constructor": false,
"full_signature": "protected List<String> upsert(Request req, Collection collection, JSArray nodes)",
"identifier": "upsert",
"modifiers": "protected",
"parameters": "(Request req, Collection collection, JSArray nodes)",
"return": "List<String>",
"signature": "List<String> upsert(Request req, Collection collection, JSArray nodes)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.asTerm(Map row)",
"constructor": false,
"full_signature": " Term asTerm(Map row)",
"identifier": "asTerm",
"modifiers": "",
"parameters": "(Map row)",
"return": "Term",
"signature": "Term asTerm(Map row)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.isCollapseAll()",
"constructor": false,
"full_signature": "public boolean isCollapseAll()",
"identifier": "isCollapseAll",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isCollapseAll()",
"testcase": false
},
{
"class_method_signature": "DbPostAction.withCollapseAll(boolean collapseAll)",
"constructor": false,
"full_signature": "public DbPostAction withCollapseAll(boolean collapseAll)",
"identifier": "withCollapseAll",
"modifiers": "public",
"parameters": "(boolean collapseAll)",
"return": "DbPostAction",
"signature": "DbPostAction withCollapseAll(boolean collapseAll)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.isStrictRest()",
"constructor": false,
"full_signature": "public boolean isStrictRest()",
"identifier": "isStrictRest",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isStrictRest()",
"testcase": false
},
{
"class_method_signature": "DbPostAction.withStrictRest(boolean strictRest)",
"constructor": false,
"full_signature": "public DbPostAction withStrictRest(boolean strictRest)",
"identifier": "withStrictRest",
"modifiers": "public",
"parameters": "(boolean strictRest)",
"return": "DbPostAction",
"signature": "DbPostAction withStrictRest(boolean strictRest)",
"testcase": false
},
{
"class_method_signature": "DbPostAction.isExpandResponse()",
"constructor": false,
"full_signature": "public boolean isExpandResponse()",
"identifier": "isExpandResponse",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean isExpandResponse()",
"testcase": false
},
{
"class_method_signature": "DbPostAction.withExpandResponse(boolean expandResponse)",
"constructor": false,
"full_signature": "public DbPostAction withExpandResponse(boolean expandResponse)",
"identifier": "withExpandResponse",
"modifiers": "public",
"parameters": "(boolean expandResponse)",
"return": "DbPostAction",
"signature": "DbPostAction withExpandResponse(boolean expandResponse)",
"testcase": false
}
],
"superclass": "extends Action<DbPostAction>"
} | {
"body": "public static void collapse(JSNode parent, boolean collapseAll, Set collapses, String path) {\n for (String key : parent.keySet()) {\n Object value = parent.get(key);\n\n if (collapseAll || collapses.contains(nextPath(path, key))) {\n if (value instanceof JSArray) {\n JSArray children = (JSArray) value;\n if (children.length() == 0)\n parent.remove(key);\n\n for (int i = 0; i < children.length(); i++) {\n if (children.get(i) == null) {\n children.remove(i);\n i--;\n continue;\n }\n\n if (children.get(i) instanceof JSArray || !(children.get(i) instanceof JSNode)) {\n children.remove(i);\n i--;\n continue;\n }\n\n JSNode child = children.getNode(i);\n for (String key2 : child.keySet()) {\n if (!key2.equalsIgnoreCase(\"href\")) {\n child.remove(key2);\n }\n }\n\n if (child.keySet().size() == 0) {\n\n children.remove(i);\n i--;\n continue;\n }\n }\n if (children.length() == 0)\n parent.remove(key);\n\n } else if (value instanceof JSNode) {\n JSNode child = (JSNode) value;\n for (String key2 : child.keySet()) {\n if (!key2.equalsIgnoreCase(\"href\")) {\n child.remove(key2);\n }\n }\n if (child.keySet().size() == 0)\n parent.remove(key);\n }\n } else if (value instanceof JSArray) {\n JSArray children = (JSArray) value;\n for (int i = 0; i < children.length(); i++) {\n if (children.get(i) instanceof JSNode && !(children.get(i) instanceof JSArray)) {\n collapse(children.getNode(i), collapseAll, collapses, nextPath(path, key));\n }\n }\n } else if (value instanceof JSNode) {\n collapse((JSNode) value, collapseAll, collapses, nextPath(path, key));\n }\n\n }\n }",
"class_method_signature": "DbPostAction.collapse(JSNode parent, boolean collapseAll, Set collapses, String path)",
"constructor": false,
"full_signature": "public static void collapse(JSNode parent, boolean collapseAll, Set collapses, String path)",
"identifier": "collapse",
"invocations": [
"keySet",
"get",
"contains",
"nextPath",
"length",
"remove",
"length",
"get",
"remove",
"get",
"get",
"remove",
"getNode",
"keySet",
"equalsIgnoreCase",
"remove",
"size",
"keySet",
"remove",
"length",
"remove",
"keySet",
"equalsIgnoreCase",
"remove",
"size",
"keySet",
"remove",
"length",
"get",
"get",
"collapse",
"getNode",
"nextPath",
"collapse",
"nextPath"
],
"modifiers": "public static",
"parameters": "(JSNode parent, boolean collapseAll, Set collapses, String path)",
"return": "void",
"signature": "void collapse(JSNode parent, boolean collapseAll, Set collapses, String path)",
"testcase": false
} | {
"created": "10/3/2019 4:24:47 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 212625733,
"size": null,
"stargazer_count": null,
"stars": 19,
"updates": "2020-01-18T04:00:20+00:00",
"url": "https://github.com/inversion-api/inversion-engine"
} |
212625733_25 | {
"fields": [],
"file": "inversion-spring-boot/src/test/java/io/inversion/spring/InversionServletConfigTest.java",
"identifier": "InversionServletConfigTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void buildServletMapping_noCommonPath() {\n Engine e = new Engine().withIncludeOn(null, \"/a/b/c\", \"/d/e/f\");\n assertEquals(\"/*\", InversionServletConfig.buildServletMapping(e));\n }",
"class_method_signature": "InversionServletConfigTest.buildServletMapping_noCommonPath()",
"constructor": false,
"full_signature": "@Test public void buildServletMapping_noCommonPath()",
"identifier": "buildServletMapping_noCommonPath",
"invocations": [
"withIncludeOn",
"assertEquals",
"buildServletMapping"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void buildServletMapping_noCommonPath()",
"testcase": true
} | {
"fields": [],
"file": "inversion-spring-boot/src/main/java/io/inversion/spring/InversionServletConfig.java",
"identifier": "InversionServletConfig",
"interfaces": "",
"methods": [
{
"class_method_signature": "InversionServletConfig.createDefaultInversionServlet(Engine engine)",
"constructor": false,
"full_signature": "public static ServletRegistrationBean createDefaultInversionServlet(Engine engine)",
"identifier": "createDefaultInversionServlet",
"modifiers": "public static",
"parameters": "(Engine engine)",
"return": "ServletRegistrationBean",
"signature": "ServletRegistrationBean createDefaultInversionServlet(Engine engine)",
"testcase": false
},
{
"class_method_signature": "InversionServletConfig.buildServletMapping(Engine engine)",
"constructor": false,
"full_signature": "public static String buildServletMapping(Engine engine)",
"identifier": "buildServletMapping",
"modifiers": "public static",
"parameters": "(Engine engine)",
"return": "String",
"signature": "String buildServletMapping(Engine engine)",
"testcase": false
},
{
"class_method_signature": "InversionServletConfig.createDefaultServletContainer()",
"constructor": false,
"full_signature": "public static ConfigurableServletWebServerFactory createDefaultServletContainer()",
"identifier": "createDefaultServletContainer",
"modifiers": "public static",
"parameters": "()",
"return": "ConfigurableServletWebServerFactory",
"signature": "ConfigurableServletWebServerFactory createDefaultServletContainer()",
"testcase": false
},
{
"class_method_signature": "InversionServletConfig.inversionServlet(@Autowired Engine engine)",
"constructor": false,
"full_signature": "@Bean public ServletRegistrationBean inversionServlet(@Autowired Engine engine)",
"identifier": "inversionServlet",
"modifiers": "@Bean public",
"parameters": "(@Autowired Engine engine)",
"return": "ServletRegistrationBean",
"signature": "ServletRegistrationBean inversionServlet(@Autowired Engine engine)",
"testcase": false
},
{
"class_method_signature": "InversionServletConfig.servletContainer()",
"constructor": false,
"full_signature": "@Bean public ConfigurableServletWebServerFactory servletContainer()",
"identifier": "servletContainer",
"modifiers": "@Bean public",
"parameters": "()",
"return": "ConfigurableServletWebServerFactory",
"signature": "ConfigurableServletWebServerFactory servletContainer()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static String buildServletMapping(Engine engine) {\n List<String> parts = new ArrayList<>();\n boolean done = false;\n for (int i = 0; i < 100 && !done; i++) {\n String part = null;\n for (Path path : engine.getIncludePaths()) {\n if (part == null)\n part = path.get(i);\n\n if (part == null || !path.isStatic(i) || !part.equals(path.get(i))) {\n done = true;\n break;\n }\n }\n\n if (part == null)\n break;\n\n if (!done)\n parts.add(part);\n }\n return (parts.size() > 0 ? (\"/\" + new Path(parts)) : \"\") + \"/*\";\n }",
"class_method_signature": "InversionServletConfig.buildServletMapping(Engine engine)",
"constructor": false,
"full_signature": "public static String buildServletMapping(Engine engine)",
"identifier": "buildServletMapping",
"invocations": [
"getIncludePaths",
"get",
"isStatic",
"equals",
"get",
"add",
"size"
],
"modifiers": "public static",
"parameters": "(Engine engine)",
"return": "String",
"signature": "String buildServletMapping(Engine engine)",
"testcase": false
} | {
"created": "10/3/2019 4:24:47 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 212625733,
"size": null,
"stargazer_count": null,
"stars": 19,
"updates": "2020-01-18T04:00:20+00:00",
"url": "https://github.com/inversion-api/inversion-engine"
} |
7837044_2 | {
"fields": [],
"file": "android-network-intents/src/test/java/com/androidzeitgeist/ani/discovery/DiscoveryTest.java",
"identifier": "DiscoveryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreateDiscoveryThreadReturnsNewInstance() {\n Discovery discovery = new Discovery();\n\n DiscoveryThread thread1 = discovery.createDiscoveryThread();\n DiscoveryThread thread2 = discovery.createDiscoveryThread();\n\n Assert.assertNotNull(thread1);\n Assert.assertNotNull(thread2);\n\n Assert.assertNotSame(thread1, thread2);\n }",
"class_method_signature": "DiscoveryTest.testCreateDiscoveryThreadReturnsNewInstance()",
"constructor": false,
"full_signature": "@Test public void testCreateDiscoveryThreadReturnsNewInstance()",
"identifier": "testCreateDiscoveryThreadReturnsNewInstance",
"invocations": [
"createDiscoveryThread",
"createDiscoveryThread",
"assertNotNull",
"assertNotNull",
"assertNotSame"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testCreateDiscoveryThreadReturnsNewInstance()",
"testcase": true
} | {
"fields": [
{
"declarator": "multicastAddress",
"modifier": "private",
"original_string": "private String multicastAddress;",
"type": "String",
"var_name": "multicastAddress"
},
{
"declarator": "port",
"modifier": "private",
"original_string": "private int port;",
"type": "int",
"var_name": "port"
},
{
"declarator": "listener",
"modifier": "private",
"original_string": "private DiscoveryListener listener;",
"type": "DiscoveryListener",
"var_name": "listener"
},
{
"declarator": "thread",
"modifier": "private",
"original_string": "private DiscoveryThread thread;",
"type": "DiscoveryThread",
"var_name": "thread"
}
],
"file": "android-network-intents/src/main/java/com/androidzeitgeist/ani/discovery/Discovery.java",
"identifier": "Discovery",
"interfaces": "",
"methods": [
{
"class_method_signature": "Discovery.Discovery()",
"constructor": true,
"full_signature": "public Discovery()",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " Discovery()",
"testcase": false
},
{
"class_method_signature": "Discovery.Discovery(int port)",
"constructor": true,
"full_signature": "public Discovery(int port)",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "(int port)",
"return": "",
"signature": " Discovery(int port)",
"testcase": false
},
{
"class_method_signature": "Discovery.Discovery(String multicastAddress, int port)",
"constructor": true,
"full_signature": "public Discovery(String multicastAddress, int port)",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "(String multicastAddress, int port)",
"return": "",
"signature": " Discovery(String multicastAddress, int port)",
"testcase": false
},
{
"class_method_signature": "Discovery.setDisoveryListener(DiscoveryListener listener)",
"constructor": false,
"full_signature": "public void setDisoveryListener(DiscoveryListener listener)",
"identifier": "setDisoveryListener",
"modifiers": "public",
"parameters": "(DiscoveryListener listener)",
"return": "void",
"signature": "void setDisoveryListener(DiscoveryListener listener)",
"testcase": false
},
{
"class_method_signature": "Discovery.enable(DiscoveryListener listener)",
"constructor": false,
"full_signature": "public void enable(DiscoveryListener listener)",
"identifier": "enable",
"modifiers": "public",
"parameters": "(DiscoveryListener listener)",
"return": "void",
"signature": "void enable(DiscoveryListener listener)",
"testcase": false
},
{
"class_method_signature": "Discovery.enable()",
"constructor": false,
"full_signature": "public void enable()",
"identifier": "enable",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void enable()",
"testcase": false
},
{
"class_method_signature": "Discovery.createDiscoveryThread()",
"constructor": false,
"full_signature": "protected DiscoveryThread createDiscoveryThread()",
"identifier": "createDiscoveryThread",
"modifiers": "protected",
"parameters": "()",
"return": "DiscoveryThread",
"signature": "DiscoveryThread createDiscoveryThread()",
"testcase": false
},
{
"class_method_signature": "Discovery.disable()",
"constructor": false,
"full_signature": "public void disable()",
"identifier": "disable",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void disable()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "protected DiscoveryThread createDiscoveryThread() {\n return new DiscoveryThread(multicastAddress, port, listener);\n }",
"class_method_signature": "Discovery.createDiscoveryThread()",
"constructor": false,
"full_signature": "protected DiscoveryThread createDiscoveryThread()",
"identifier": "createDiscoveryThread",
"invocations": [],
"modifiers": "protected",
"parameters": "()",
"return": "DiscoveryThread",
"signature": "DiscoveryThread createDiscoveryThread()",
"testcase": false
} | {
"created": null,
"fork": null,
"fork_count": 59,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 7837044,
"size": 560,
"stargazer_count": 423,
"stars": null,
"updates": null,
"url": "https://github.com/pocmo/Android-Network-Intents"
} |
7837044_3 | {
"fields": [],
"file": "android-network-intents/src/test/java/com/androidzeitgeist/ani/discovery/DiscoveryThreadTest.java",
"identifier": "DiscoveryThreadTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Ignore // Might not be able to assign address on local machine\n public void testCreateSocketReturnsNewInstance() throws Exception {\n DiscoveryListener listener = mock(DiscoveryListener.class);\n\n DiscoveryThread thread = new DiscoveryThread(\n AndroidNetworkIntents.DEFAULT_MULTICAST_ADDRESS,\n AndroidNetworkIntents.DEFAULT_PORT,\n listener\n );\n\n MulticastSocket socket1 = thread.createSocket();\n MulticastSocket socket2 = thread.createSocket();\n\n Assert.assertNotNull(socket1);\n Assert.assertNotNull(socket2);\n\n Assert.assertNotSame(socket1, socket2);\n }",
"class_method_signature": "DiscoveryThreadTest.testCreateSocketReturnsNewInstance()",
"constructor": false,
"full_signature": "@Test @Ignore // Might not be able to assign address on local machine public void testCreateSocketReturnsNewInstance()",
"identifier": "testCreateSocketReturnsNewInstance",
"invocations": [
"mock",
"createSocket",
"createSocket",
"assertNotNull",
"assertNotNull",
"assertNotSame"
],
"modifiers": "@Test @Ignore // Might not be able to assign address on local machine public",
"parameters": "()",
"return": "void",
"signature": "void testCreateSocketReturnsNewInstance()",
"testcase": true
} | {
"fields": [
{
"declarator": "TAG = \"ANI/DiscoveryThread\"",
"modifier": "private static final",
"original_string": "private static final String TAG = \"ANI/DiscoveryThread\";",
"type": "String",
"var_name": "TAG"
},
{
"declarator": "MAXIMUM_PACKET_BYTES = 102400",
"modifier": "private static final",
"original_string": "private static final int MAXIMUM_PACKET_BYTES = 102400;",
"type": "int",
"var_name": "MAXIMUM_PACKET_BYTES"
},
{
"declarator": "multicastAddress",
"modifier": "private",
"original_string": "private String multicastAddress;",
"type": "String",
"var_name": "multicastAddress"
},
{
"declarator": "port",
"modifier": "private",
"original_string": "private int port;",
"type": "int",
"var_name": "port"
},
{
"declarator": "socket",
"modifier": "private",
"original_string": "private MulticastSocket socket;",
"type": "MulticastSocket",
"var_name": "socket"
},
{
"declarator": "listener",
"modifier": "private",
"original_string": "private DiscoveryListener listener;",
"type": "DiscoveryListener",
"var_name": "listener"
},
{
"declarator": "running",
"modifier": "private volatile",
"original_string": "private volatile boolean running;",
"type": "boolean",
"var_name": "running"
}
],
"file": "android-network-intents/src/main/java/com/androidzeitgeist/ani/discovery/DiscoveryThread.java",
"identifier": "DiscoveryThread",
"interfaces": "",
"methods": [
{
"class_method_signature": "DiscoveryThread.DiscoveryThread(String multicastAddress, int port, DiscoveryListener listener)",
"constructor": true,
"full_signature": " DiscoveryThread(String multicastAddress, int port, DiscoveryListener listener)",
"identifier": "DiscoveryThread",
"modifiers": "",
"parameters": "(String multicastAddress, int port, DiscoveryListener listener)",
"return": "",
"signature": " DiscoveryThread(String multicastAddress, int port, DiscoveryListener listener)",
"testcase": false
},
{
"class_method_signature": "DiscoveryThread.run()",
"constructor": false,
"full_signature": "public void run()",
"identifier": "run",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "DiscoveryThread.createSocket()",
"constructor": false,
"full_signature": "protected MulticastSocket createSocket()",
"identifier": "createSocket",
"modifiers": "protected",
"parameters": "()",
"return": "MulticastSocket",
"signature": "MulticastSocket createSocket()",
"testcase": false
},
{
"class_method_signature": "DiscoveryThread.closeSocket()",
"constructor": false,
"full_signature": "private void closeSocket()",
"identifier": "closeSocket",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void closeSocket()",
"testcase": false
},
{
"class_method_signature": "DiscoveryThread.stopDiscovery()",
"constructor": false,
"full_signature": "public void stopDiscovery()",
"identifier": "stopDiscovery",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void stopDiscovery()",
"testcase": false
},
{
"class_method_signature": "DiscoveryThread.receiveIntents()",
"constructor": false,
"full_signature": "protected void receiveIntents()",
"identifier": "receiveIntents",
"modifiers": "protected",
"parameters": "()",
"return": "void",
"signature": "void receiveIntents()",
"testcase": false
}
],
"superclass": "extends Thread"
} | {
"body": "protected MulticastSocket createSocket() throws UnknownHostException, IOException {\n InetAddress address = InetAddress.getByName(multicastAddress);\n\n MulticastSocket socket = new MulticastSocket(port);\n socket.joinGroup(address);\n\n return socket;\n }",
"class_method_signature": "DiscoveryThread.createSocket()",
"constructor": false,
"full_signature": "protected MulticastSocket createSocket()",
"identifier": "createSocket",
"invocations": [
"getByName",
"joinGroup"
],
"modifiers": "protected",
"parameters": "()",
"return": "MulticastSocket",
"signature": "MulticastSocket createSocket()",
"testcase": false
} | {
"created": null,
"fork": null,
"fork_count": 59,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 7837044,
"size": 560,
"stargazer_count": 423,
"stars": null,
"updates": null,
"url": "https://github.com/pocmo/Android-Network-Intents"
} |
7837044_4 | {
"fields": [],
"file": "android-network-intents/src/test/java/com/androidzeitgeist/ani/transmitter/TransmitterTest.java",
"identifier": "TransmitterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreateSocketReturnsNewInstance() throws Exception {\n Transmitter transmitter = new Transmitter();\n\n MulticastSocket socket1 = transmitter.createSocket();\n MulticastSocket socket2 = transmitter.createSocket();\n\n Assert.assertNotNull(socket1);\n Assert.assertNotNull(socket2);\n\n Assert.assertNotSame(socket1, socket2);\n }",
"class_method_signature": "TransmitterTest.testCreateSocketReturnsNewInstance()",
"constructor": false,
"full_signature": "@Test public void testCreateSocketReturnsNewInstance()",
"identifier": "testCreateSocketReturnsNewInstance",
"invocations": [
"createSocket",
"createSocket",
"assertNotNull",
"assertNotNull",
"assertNotSame"
],
"modifiers": "@Test public",
"parameters": "()",
"return": "void",
"signature": "void testCreateSocketReturnsNewInstance()",
"testcase": true
} | {
"fields": [
{
"declarator": "multicastAddress",
"modifier": "private",
"original_string": "private String multicastAddress;",
"type": "String",
"var_name": "multicastAddress"
},
{
"declarator": "port",
"modifier": "private",
"original_string": "private int port;",
"type": "int",
"var_name": "port"
}
],
"file": "android-network-intents/src/main/java/com/androidzeitgeist/ani/transmitter/Transmitter.java",
"identifier": "Transmitter",
"interfaces": "",
"methods": [
{
"class_method_signature": "Transmitter.Transmitter()",
"constructor": true,
"full_signature": "public Transmitter()",
"identifier": "Transmitter",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " Transmitter()",
"testcase": false
},
{
"class_method_signature": "Transmitter.Transmitter(int port)",
"constructor": true,
"full_signature": "public Transmitter(int port)",
"identifier": "Transmitter",
"modifiers": "public",
"parameters": "(int port)",
"return": "",
"signature": " Transmitter(int port)",
"testcase": false
},
{
"class_method_signature": "Transmitter.Transmitter(String multicastAddress, int port)",
"constructor": true,
"full_signature": "public Transmitter(String multicastAddress, int port)",
"identifier": "Transmitter",
"modifiers": "public",
"parameters": "(String multicastAddress, int port)",
"return": "",
"signature": " Transmitter(String multicastAddress, int port)",
"testcase": false
},
{
"class_method_signature": "Transmitter.transmit(Intent intent)",
"constructor": false,
"full_signature": "public void transmit(Intent intent)",
"identifier": "transmit",
"modifiers": "public",
"parameters": "(Intent intent)",
"return": "void",
"signature": "void transmit(Intent intent)",
"testcase": false
},
{
"class_method_signature": "Transmitter.createSocket()",
"constructor": false,
"full_signature": "protected MulticastSocket createSocket()",
"identifier": "createSocket",
"modifiers": "protected",
"parameters": "()",
"return": "MulticastSocket",
"signature": "MulticastSocket createSocket()",
"testcase": false
},
{
"class_method_signature": "Transmitter.transmit(MulticastSocket socket, Intent intent)",
"constructor": false,
"full_signature": "private void transmit(MulticastSocket socket, Intent intent)",
"identifier": "transmit",
"modifiers": "private",
"parameters": "(MulticastSocket socket, Intent intent)",
"return": "void",
"signature": "void transmit(MulticastSocket socket, Intent intent)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "protected MulticastSocket createSocket() throws IOException {\n return new MulticastSocket();\n }",
"class_method_signature": "Transmitter.createSocket()",
"constructor": false,
"full_signature": "protected MulticastSocket createSocket()",
"identifier": "createSocket",
"invocations": [],
"modifiers": "protected",
"parameters": "()",
"return": "MulticastSocket",
"signature": "MulticastSocket createSocket()",
"testcase": false
} | {
"created": null,
"fork": null,
"fork_count": 59,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 7837044,
"size": 560,
"stargazer_count": 423,
"stars": null,
"updates": null,
"url": "https://github.com/pocmo/Android-Network-Intents"
} |
7837044_0 | {
"fields": [],
"file": "android-network-intents/src/test/java/com/androidzeitgeist/ani/discovery/DiscoveryTest.java",
"identifier": "DiscoveryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected=IllegalStateException.class)\n public void testEnableThrowsExceptionIfNoListenerIsSet() throws Exception {\n Discovery discovery = new Discovery();\n discovery.enable();\n }",
"class_method_signature": "DiscoveryTest.testEnableThrowsExceptionIfNoListenerIsSet()",
"constructor": false,
"full_signature": "@Test(expected=IllegalStateException.class) public void testEnableThrowsExceptionIfNoListenerIsSet()",
"identifier": "testEnableThrowsExceptionIfNoListenerIsSet",
"invocations": [
"enable"
],
"modifiers": "@Test(expected=IllegalStateException.class) public",
"parameters": "()",
"return": "void",
"signature": "void testEnableThrowsExceptionIfNoListenerIsSet()",
"testcase": true
} | {
"fields": [
{
"declarator": "multicastAddress",
"modifier": "private",
"original_string": "private String multicastAddress;",
"type": "String",
"var_name": "multicastAddress"
},
{
"declarator": "port",
"modifier": "private",
"original_string": "private int port;",
"type": "int",
"var_name": "port"
},
{
"declarator": "listener",
"modifier": "private",
"original_string": "private DiscoveryListener listener;",
"type": "DiscoveryListener",
"var_name": "listener"
},
{
"declarator": "thread",
"modifier": "private",
"original_string": "private DiscoveryThread thread;",
"type": "DiscoveryThread",
"var_name": "thread"
}
],
"file": "android-network-intents/src/main/java/com/androidzeitgeist/ani/discovery/Discovery.java",
"identifier": "Discovery",
"interfaces": "",
"methods": [
{
"class_method_signature": "Discovery.Discovery()",
"constructor": true,
"full_signature": "public Discovery()",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " Discovery()",
"testcase": false
},
{
"class_method_signature": "Discovery.Discovery(int port)",
"constructor": true,
"full_signature": "public Discovery(int port)",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "(int port)",
"return": "",
"signature": " Discovery(int port)",
"testcase": false
},
{
"class_method_signature": "Discovery.Discovery(String multicastAddress, int port)",
"constructor": true,
"full_signature": "public Discovery(String multicastAddress, int port)",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "(String multicastAddress, int port)",
"return": "",
"signature": " Discovery(String multicastAddress, int port)",
"testcase": false
},
{
"class_method_signature": "Discovery.setDisoveryListener(DiscoveryListener listener)",
"constructor": false,
"full_signature": "public void setDisoveryListener(DiscoveryListener listener)",
"identifier": "setDisoveryListener",
"modifiers": "public",
"parameters": "(DiscoveryListener listener)",
"return": "void",
"signature": "void setDisoveryListener(DiscoveryListener listener)",
"testcase": false
},
{
"class_method_signature": "Discovery.enable(DiscoveryListener listener)",
"constructor": false,
"full_signature": "public void enable(DiscoveryListener listener)",
"identifier": "enable",
"modifiers": "public",
"parameters": "(DiscoveryListener listener)",
"return": "void",
"signature": "void enable(DiscoveryListener listener)",
"testcase": false
},
{
"class_method_signature": "Discovery.enable()",
"constructor": false,
"full_signature": "public void enable()",
"identifier": "enable",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void enable()",
"testcase": false
},
{
"class_method_signature": "Discovery.createDiscoveryThread()",
"constructor": false,
"full_signature": "protected DiscoveryThread createDiscoveryThread()",
"identifier": "createDiscoveryThread",
"modifiers": "protected",
"parameters": "()",
"return": "DiscoveryThread",
"signature": "DiscoveryThread createDiscoveryThread()",
"testcase": false
},
{
"class_method_signature": "Discovery.disable()",
"constructor": false,
"full_signature": "public void disable()",
"identifier": "disable",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void disable()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void enable(DiscoveryListener listener) throws DiscoveryException {\n setDisoveryListener(listener);\n enable();\n }",
"class_method_signature": "Discovery.enable(DiscoveryListener listener)",
"constructor": false,
"full_signature": "public void enable(DiscoveryListener listener)",
"identifier": "enable",
"invocations": [
"setDisoveryListener",
"enable"
],
"modifiers": "public",
"parameters": "(DiscoveryListener listener)",
"return": "void",
"signature": "void enable(DiscoveryListener listener)",
"testcase": false
} | {
"created": null,
"fork": null,
"fork_count": 59,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 7837044,
"size": 560,
"stargazer_count": 423,
"stars": null,
"updates": null,
"url": "https://github.com/pocmo/Android-Network-Intents"
} |
7837044_1 | {
"fields": [],
"file": "android-network-intents/src/test/java/com/androidzeitgeist/ani/discovery/DiscoveryTest.java",
"identifier": "DiscoveryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected=IllegalAccessError.class)\n public void testDisableWithoutEnablingWillThrowException() throws Exception {\n Discovery discovery = new Discovery();\n discovery.disable();\n }",
"class_method_signature": "DiscoveryTest.testDisableWithoutEnablingWillThrowException()",
"constructor": false,
"full_signature": "@Test(expected=IllegalAccessError.class) public void testDisableWithoutEnablingWillThrowException()",
"identifier": "testDisableWithoutEnablingWillThrowException",
"invocations": [
"disable"
],
"modifiers": "@Test(expected=IllegalAccessError.class) public",
"parameters": "()",
"return": "void",
"signature": "void testDisableWithoutEnablingWillThrowException()",
"testcase": true
} | {
"fields": [
{
"declarator": "multicastAddress",
"modifier": "private",
"original_string": "private String multicastAddress;",
"type": "String",
"var_name": "multicastAddress"
},
{
"declarator": "port",
"modifier": "private",
"original_string": "private int port;",
"type": "int",
"var_name": "port"
},
{
"declarator": "listener",
"modifier": "private",
"original_string": "private DiscoveryListener listener;",
"type": "DiscoveryListener",
"var_name": "listener"
},
{
"declarator": "thread",
"modifier": "private",
"original_string": "private DiscoveryThread thread;",
"type": "DiscoveryThread",
"var_name": "thread"
}
],
"file": "android-network-intents/src/main/java/com/androidzeitgeist/ani/discovery/Discovery.java",
"identifier": "Discovery",
"interfaces": "",
"methods": [
{
"class_method_signature": "Discovery.Discovery()",
"constructor": true,
"full_signature": "public Discovery()",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " Discovery()",
"testcase": false
},
{
"class_method_signature": "Discovery.Discovery(int port)",
"constructor": true,
"full_signature": "public Discovery(int port)",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "(int port)",
"return": "",
"signature": " Discovery(int port)",
"testcase": false
},
{
"class_method_signature": "Discovery.Discovery(String multicastAddress, int port)",
"constructor": true,
"full_signature": "public Discovery(String multicastAddress, int port)",
"identifier": "Discovery",
"modifiers": "public",
"parameters": "(String multicastAddress, int port)",
"return": "",
"signature": " Discovery(String multicastAddress, int port)",
"testcase": false
},
{
"class_method_signature": "Discovery.setDisoveryListener(DiscoveryListener listener)",
"constructor": false,
"full_signature": "public void setDisoveryListener(DiscoveryListener listener)",
"identifier": "setDisoveryListener",
"modifiers": "public",
"parameters": "(DiscoveryListener listener)",
"return": "void",
"signature": "void setDisoveryListener(DiscoveryListener listener)",
"testcase": false
},
{
"class_method_signature": "Discovery.enable(DiscoveryListener listener)",
"constructor": false,
"full_signature": "public void enable(DiscoveryListener listener)",
"identifier": "enable",
"modifiers": "public",
"parameters": "(DiscoveryListener listener)",
"return": "void",
"signature": "void enable(DiscoveryListener listener)",
"testcase": false
},
{
"class_method_signature": "Discovery.enable()",
"constructor": false,
"full_signature": "public void enable()",
"identifier": "enable",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void enable()",
"testcase": false
},
{
"class_method_signature": "Discovery.createDiscoveryThread()",
"constructor": false,
"full_signature": "protected DiscoveryThread createDiscoveryThread()",
"identifier": "createDiscoveryThread",
"modifiers": "protected",
"parameters": "()",
"return": "DiscoveryThread",
"signature": "DiscoveryThread createDiscoveryThread()",
"testcase": false
},
{
"class_method_signature": "Discovery.disable()",
"constructor": false,
"full_signature": "public void disable()",
"identifier": "disable",
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void disable()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void disable() {\n if (thread != null) {\n thread.stopDiscovery();\n thread = null;\n } else {\n throw new IllegalAccessError(\"Discovery not running\");\n }\n }",
"class_method_signature": "Discovery.disable()",
"constructor": false,
"full_signature": "public void disable()",
"identifier": "disable",
"invocations": [
"stopDiscovery"
],
"modifiers": "public",
"parameters": "()",
"return": "void",
"signature": "void disable()",
"testcase": false
} | {
"created": null,
"fork": null,
"fork_count": 59,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 7837044,
"size": 560,
"stargazer_count": 423,
"stars": null,
"updates": null,
"url": "https://github.com/pocmo/Android-Network-Intents"
} |
150677892_4 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined countOnly;",
"type": "NameToBeDefined",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined throwRuntime;",
"type": "NameToBeDefined",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined throwBusy;",
"type": "NameToBeDefined",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined throwCommUsbBus;",
"type": "NameToBeDefined",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Runnable runOnError = countRunOnError::incrementAndGet;",
"type": "Runnable",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefinedTest.java",
"identifier": "NameToBeDefinedTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void runOnErrorThrowsOnBadParams() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.runOnError(null, EdsdkError.EDS_ERR_COMM_USB_BUS_ERR));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.runOnError(runOnError, Lists.newArrayList((EdsdkError) null)));\n\n assertCounts(0, 0);\n }",
"class_method_signature": "NameToBeDefinedTest.runOnErrorThrowsOnBadParams()",
"constructor": false,
"full_signature": "@Test void runOnErrorThrowsOnBadParams()",
"identifier": "runOnErrorThrowsOnBadParams",
"invocations": [
"assertThrows",
"runOnError",
"assertThrows",
"runOnError",
"newArrayList",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void runOnErrorThrowsOnBadParams()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "runnable",
"modifier": "private final",
"original_string": "private final Runnable runnable;",
"type": "Runnable",
"var_name": "runnable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined.java",
"identifier": "NameToBeDefined",
"interfaces": "implements Runnable",
"methods": [
{
"class_method_signature": "NameToBeDefined.wrap(final Runnable runnableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined wrap(final Runnable runnableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Runnable runnableToDecorate)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined wrap(final Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.NameToBeDefined(Runnable runnableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined(Runnable runnableToDecorate)",
"identifier": "NameToBeDefined",
"modifiers": "protected",
"parameters": "(Runnable runnableToDecorate)",
"return": "",
"signature": " NameToBeDefined(Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError error)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.run()",
"constructor": false,
"full_signature": "@Override public void run()",
"identifier": "run",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Function<Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(Function<Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, R> function)",
"return": "R",
"signature": "R handle(Function<Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error) {\n // can be called many times to add different handlers\n return runOnError(runOnError, Collections.singletonList(error));\n }",
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"identifier": "runOnError",
"invocations": [
"runOnError",
"singletonList"
],
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError error)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_68 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/TargetRefAccessTypeTest.java",
"identifier": "TargetRefAccessTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getTargetRefType() {\n Assertions.assertEquals(TargetRefType.CAMERA, CAMERA_READ.getTargetRefType());\n Assertions.assertEquals(TargetRefType.CAMERA, CAMERA_WRITE.getTargetRefType());\n Assertions.assertEquals(TargetRefType.CAMERA, CAMERA_READ_WRITE.getTargetRefType());\n\n Assertions.assertEquals(TargetRefType.IMAGE, IMAGE_READ.getTargetRefType());\n Assertions.assertEquals(TargetRefType.IMAGE, IMAGE_WRITE.getTargetRefType());\n Assertions.assertEquals(TargetRefType.IMAGE, IMAGE_READ_WRITE.getTargetRefType());\n\n Assertions.assertEquals(TargetRefType.EVF_IMAGE, EVF_IMAGE_READ.getTargetRefType());\n }",
"class_method_signature": "TargetRefAccessTypeTest.getTargetRefType()",
"constructor": false,
"full_signature": "@Test void getTargetRefType()",
"identifier": "getTargetRefType",
"invocations": [
"assertEquals",
"getTargetRefType",
"assertEquals",
"getTargetRefType",
"assertEquals",
"getTargetRefType",
"assertEquals",
"getTargetRefType",
"assertEquals",
"getTargetRefType",
"assertEquals",
"getTargetRefType",
"assertEquals",
"getTargetRefType"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getTargetRefType()",
"testcase": true
} | {
"fields": [
{
"declarator": "CAMERA_READ = new TargetRefAccessType(CAMERA, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_READ = new TargetRefAccessType(CAMERA, true, false);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_READ"
},
{
"declarator": "CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_READ_WRITE"
},
{
"declarator": "CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_WRITE"
},
{
"declarator": "IMAGE_READ = new TargetRefAccessType(IMAGE, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_READ = new TargetRefAccessType(IMAGE, true, false);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_READ"
},
{
"declarator": "IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_READ_WRITE"
},
{
"declarator": "IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_WRITE"
},
{
"declarator": "EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false);",
"type": "TargetRefAccessType",
"var_name": "EVF_IMAGE_READ"
},
{
"declarator": "GROUP_NONE = Collections.emptySet()",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_NONE = Collections.emptySet();",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_NONE"
},
{
"declarator": "GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE"
},
{
"declarator": "GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_READ"
},
{
"declarator": "GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_READ_WRITE"
},
{
"declarator": "GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_WRITE"
},
{
"declarator": "GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_EVF_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE"
},
{
"declarator": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ"
},
{
"declarator": "targetRefType",
"modifier": "private final",
"original_string": "private final TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "read",
"modifier": "private final",
"original_string": "private final boolean read;",
"type": "boolean",
"var_name": "read"
},
{
"declarator": "write",
"modifier": "private final",
"original_string": "private final boolean write;",
"type": "boolean",
"var_name": "write"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/TargetRefAccessType.java",
"identifier": "TargetRefAccessType",
"interfaces": "",
"methods": [
{
"class_method_signature": "TargetRefAccessType.TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"constructor": true,
"full_signature": "private TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"identifier": "TargetRefAccessType",
"modifiers": "private",
"parameters": "(final TargetRefType targetRefType, final boolean read, final boolean write)",
"return": "",
"signature": " TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.getTargetRefType()",
"constructor": false,
"full_signature": "public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hasRead()",
"constructor": false,
"full_signature": "public boolean hasRead()",
"identifier": "hasRead",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasRead()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hasWrite()",
"constructor": false,
"full_signature": "public boolean hasWrite()",
"identifier": "hasWrite",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasWrite()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.equals(final Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(final Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(final Object o)",
"return": "boolean",
"signature": "boolean equals(final Object o)",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public TargetRefType getTargetRefType() {\n return targetRefType;\n }",
"class_method_signature": "TargetRefAccessType.getTargetRefType()",
"constructor": false,
"full_signature": "public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_87 | {
"fields": [
{
"declarator": "list",
"modifier": "private",
"original_string": "private List<WeakReference<Object>> list;",
"type": "List<WeakReference<Object>>",
"var_name": "list"
},
{
"declarator": "data1",
"modifier": "private",
"original_string": "private Object data1;",
"type": "Object",
"var_name": "data1"
},
{
"declarator": "data2",
"modifier": "private",
"original_string": "private Object data2;",
"type": "Object",
"var_name": "data2"
},
{
"declarator": "data3",
"modifier": "private",
"original_string": "private Object data3;",
"type": "Object",
"var_name": "data3"
},
{
"declarator": "weak1",
"modifier": "private",
"original_string": "private WeakReference<Object> weak1;",
"type": "WeakReference<Object>",
"var_name": "weak1"
},
{
"declarator": "weak2",
"modifier": "private",
"original_string": "private WeakReference<Object> weak2;",
"type": "WeakReference<Object>",
"var_name": "weak2"
},
{
"declarator": "weak3",
"modifier": "private",
"original_string": "private WeakReference<Object> weak3;",
"type": "WeakReference<Object>",
"var_name": "weak3"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/WeakReferenceUtilTest.java",
"identifier": "WeakReferenceUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void contains() {\n list.add(weak1);\n list.add(weak2);\n list.add(weak3);\n\n Assertions.assertTrue(WeakReferenceUtil.contains(list, data1));\n Assertions.assertTrue(WeakReferenceUtil.contains(list, data2));\n Assertions.assertTrue(WeakReferenceUtil.contains(list, data3));\n Assertions.assertFalse(WeakReferenceUtil.contains(list, weak1));\n Assertions.assertFalse(WeakReferenceUtil.contains(list, weak2));\n Assertions.assertFalse(WeakReferenceUtil.contains(list, weak3));\n\n list.remove(weak1);\n\n Assertions.assertFalse(WeakReferenceUtil.contains(list, data1));\n Assertions.assertTrue(WeakReferenceUtil.contains(list, data2));\n Assertions.assertFalse(WeakReferenceUtil.contains(list, weak1));\n Assertions.assertFalse(WeakReferenceUtil.contains(list, weak2));\n\n list.remove(0);\n\n Assertions.assertFalse(WeakReferenceUtil.contains(list, data2));\n }",
"class_method_signature": "WeakReferenceUtilTest.contains()",
"constructor": false,
"full_signature": "@Test void contains()",
"identifier": "contains",
"invocations": [
"add",
"add",
"add",
"assertTrue",
"contains",
"assertTrue",
"contains",
"assertTrue",
"contains",
"assertFalse",
"contains",
"assertFalse",
"contains",
"assertFalse",
"contains",
"remove",
"assertFalse",
"contains",
"assertTrue",
"contains",
"assertFalse",
"contains",
"assertFalse",
"contains",
"remove",
"assertFalse",
"contains"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void contains()",
"testcase": true
} | {
"fields": [],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/WeakReferenceUtil.java",
"identifier": "WeakReferenceUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "WeakReferenceUtil.contains(final List<WeakReference<T>> list, final T object)",
"constructor": false,
"full_signature": "static boolean contains(final List<WeakReference<T>> list, final T object)",
"identifier": "contains",
"modifiers": "static",
"parameters": "(final List<WeakReference<T>> list, final T object)",
"return": "boolean",
"signature": "boolean contains(final List<WeakReference<T>> list, final T object)",
"testcase": false
},
{
"class_method_signature": "WeakReferenceUtil.remove(final List<WeakReference<T>> weakReferences, final T object)",
"constructor": false,
"full_signature": "static void remove(final List<WeakReference<T>> weakReferences, final T object)",
"identifier": "remove",
"modifiers": "static",
"parameters": "(final List<WeakReference<T>> weakReferences, final T object)",
"return": "void",
"signature": "void remove(final List<WeakReference<T>> weakReferences, final T object)",
"testcase": false
},
{
"class_method_signature": "WeakReferenceUtil.cleanNullReferences(final List<WeakReference<T>> weakReferences)",
"constructor": false,
"full_signature": "static void cleanNullReferences(final List<WeakReference<T>> weakReferences)",
"identifier": "cleanNullReferences",
"modifiers": "static",
"parameters": "(final List<WeakReference<T>> weakReferences)",
"return": "void",
"signature": "void cleanNullReferences(final List<WeakReference<T>> weakReferences)",
"testcase": false
},
{
"class_method_signature": "WeakReferenceUtil.WeakReferenceUtil()",
"constructor": true,
"full_signature": "private WeakReferenceUtil()",
"identifier": "WeakReferenceUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " WeakReferenceUtil()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "static <T> boolean contains(final List<WeakReference<T>> list, final T object) {\n for (final WeakReference<T> weakReference : list) {\n final T ref = weakReference.get();\n if (ref != null && ref.equals(object)) {\n return true;\n }\n }\n return false;\n }",
"class_method_signature": "WeakReferenceUtil.contains(final List<WeakReference<T>> list, final T object)",
"constructor": false,
"full_signature": "static boolean contains(final List<WeakReference<T>> list, final T object)",
"identifier": "contains",
"invocations": [
"get",
"equals"
],
"modifiers": "static",
"parameters": "(final List<WeakReference<T>> list, final T object)",
"return": "boolean",
"signature": "boolean contains(final List<WeakReference<T>> list, final T object)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_29 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getExecutionStartTime() {\n doNothingCommand.run();\n Assertions.assertNotNull(doNothingCommand.getExecutionStartTime());\n }",
"class_method_signature": "AbstractCanonCommandTest.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Test void getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"invocations": [
"run",
"assertNotNull",
"getExecutionStartTime"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getExecutionStartTime()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public Instant getExecutionStartTime() {\n if (executionStartTime == null)\n throw new IllegalStateException(\"Command not started yet\");\n return executionStartTime;\n }",
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_91 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setCanonFactory() {\n final NoneFactory factory = new NoneFactory();\n CanonFactory.setCanonFactory(factory);\n assertSame(factory, CanonFactory.getCanonFactory());\n }",
"class_method_signature": "CanonFactoryTest.setCanonFactory()",
"constructor": false,
"full_signature": "@Test void setCanonFactory()",
"identifier": "setCanonFactory",
"invocations": [
"setCanonFactory",
"assertSame",
"getCanonFactory"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setCanonFactory()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void setCanonFactory(final CanonFactory canonFactory) {\n CanonFactory.canonFactory = Objects.requireNonNull(canonFactory);\n log.info(\"Canon factory has been modified {} time(s)\", factoryChangedCount.incrementAndGet());\n }",
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"invocations": [
"requireNonNull",
"info",
"incrementAndGet"
],
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_52 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private CloseSessionOptionBuilder builder;",
"type": "CloseSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilderTest.java",
"identifier": "CloseSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setReleaseCameraRef() {\n final CloseSessionOption option = builder\n .setCameraRef(cameraRef)\n .setReleaseCameraRef(true)\n .build();\n Assertions.assertNotNull(option.getCameraRef());\n Assertions.assertTrue(option.isReleaseCameraRef());\n\n final CloseSessionOption option1 = builder.build();\n Assertions.assertEquals(option, option1);\n Assertions.assertEquals(option.hashCode(), option1.hashCode());\n }",
"class_method_signature": "CloseSessionOptionBuilderTest.setReleaseCameraRef()",
"constructor": false,
"full_signature": "@Test void setReleaseCameraRef()",
"identifier": "setReleaseCameraRef",
"invocations": [
"build",
"setReleaseCameraRef",
"setCameraRef",
"assertNotNull",
"getCameraRef",
"assertTrue",
"isReleaseCameraRef",
"build",
"assertEquals",
"assertEquals",
"hashCode",
"hashCode"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setReleaseCameraRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "releaseCameraRef = true",
"modifier": "private",
"original_string": "private boolean releaseCameraRef = true;",
"type": "boolean",
"var_name": "releaseCameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilder.java",
"identifier": "CloseSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setReleaseCameraRef(final boolean releaseCameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"identifier": "setReleaseCameraRef",
"modifiers": "public",
"parameters": "(final boolean releaseCameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public CloseSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionOption",
"signature": "CloseSessionOption build()",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef) {\n this.releaseCameraRef = releaseCameraRef;\n return this;\n }",
"class_method_signature": "CloseSessionOptionBuilder.setReleaseCameraRef(final boolean releaseCameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"identifier": "setReleaseCameraRef",
"invocations": [],
"modifiers": "public",
"parameters": "(final boolean releaseCameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_44 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/builder/CommandBuilderTest.java",
"identifier": "CommandBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void builderDoNotDecorateByDefault() {\n final CommandBuilder.SimpleBuilder<String> builder = new CommandBuilder.SimpleBuilder<>(new DoNothingCommand());\n final CanonCommand<String> canonCommand = builder.build();\n assertNotNull(canonCommand);\n assertTrue(canonCommand instanceof AbstractCanonCommand);\n\n final CanonCommand<String> canonCommand1 = new CommandBuilder<>(new DoNothingCommand())\n .build();\n assertNotNull(canonCommand1);\n assertTrue(canonCommand1 instanceof AbstractCanonCommand);\n }",
"class_method_signature": "CommandBuilderTest.builderDoNotDecorateByDefault()",
"constructor": false,
"full_signature": "@Test void builderDoNotDecorateByDefault()",
"identifier": "builderDoNotDecorateByDefault",
"invocations": [
"build",
"assertNotNull",
"assertTrue",
"build",
"assertNotNull",
"assertTrue"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void builderDoNotDecorateByDefault()",
"testcase": true
} | {
"fields": [
{
"declarator": "canonCommand",
"modifier": "private final",
"original_string": "private final CanonCommand<R> canonCommand;",
"type": "CanonCommand<R>",
"var_name": "canonCommand"
},
{
"declarator": "decoratedCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratedCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratedCommand"
},
{
"declarator": "wasBuilt = false",
"modifier": "private",
"original_string": "private boolean wasBuilt = false;",
"type": "boolean",
"var_name": "wasBuilt"
},
{
"declarator": "decorators = new ArrayList<>(5)",
"modifier": "private final",
"original_string": "private final List<Supplier<DecoratorCommand<R>>> decorators = new ArrayList<>(5);",
"type": "List<Supplier<DecoratorCommand<R>>>",
"var_name": "decorators"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/builder/CommandBuilder.java",
"identifier": "CommandBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "CommandBuilder.CommandBuilder(final CanonCommand<R> canonCommand)",
"constructor": true,
"full_signature": "public CommandBuilder(final CanonCommand<R> canonCommand)",
"identifier": "CommandBuilder",
"modifiers": "public",
"parameters": "(final CanonCommand<R> canonCommand)",
"return": "",
"signature": " CommandBuilder(final CanonCommand<R> canonCommand)",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.getCommandToDecorate()",
"constructor": false,
"full_signature": "protected final CanonCommand<R> getCommandToDecorate()",
"identifier": "getCommandToDecorate",
"modifiers": "protected final",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> getCommandToDecorate()",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.getDecorators()",
"constructor": false,
"full_signature": "protected final List<Supplier<DecoratorCommand<R>>> getDecorators()",
"identifier": "getDecorators",
"modifiers": "protected final",
"parameters": "()",
"return": "List<Supplier<DecoratorCommand<R>>>",
"signature": "List<Supplier<DecoratorCommand<R>>> getDecorators()",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.timeout(final Duration timeout)",
"constructor": false,
"full_signature": "public T timeout(final Duration timeout)",
"identifier": "timeout",
"modifiers": "public",
"parameters": "(final Duration timeout)",
"return": "T",
"signature": "T timeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.withDefaultOnException(final R defaultValue)",
"constructor": false,
"full_signature": "public T withDefaultOnException(final R defaultValue)",
"identifier": "withDefaultOnException",
"modifiers": "public",
"parameters": "(final R defaultValue)",
"return": "T",
"signature": "T withDefaultOnException(final R defaultValue)",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.build()",
"constructor": false,
"full_signature": "public CanonCommand<R> build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> build()",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.self()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected final T self()",
"identifier": "self",
"modifiers": "@SuppressWarnings(\"unchecked\") protected final",
"parameters": "()",
"return": "T",
"signature": "T self()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CanonCommand<R> build() {\n if (wasBuilt)\n throw new IllegalStateException(\"Build has already been called\");\n wasBuilt = true;\n try {\n final List<Supplier<DecoratorCommand<R>>> localDecorators = getDecorators();\n if (localDecorators.isEmpty())\n return canonCommand;\n for (final Supplier<DecoratorCommand<R>> decoratorSupplier : localDecorators) {\n decoratedCommand = decoratorSupplier.get();\n }\n return decoratedCommand;\n } finally {\n decoratedCommand = null;\n decorators.clear();\n }\n }",
"class_method_signature": "CommandBuilder.build()",
"constructor": false,
"full_signature": "public CanonCommand<R> build()",
"identifier": "build",
"invocations": [
"getDecorators",
"isEmpty",
"get",
"clear"
],
"modifiers": "public",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_13 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnBusy() throws Exception {\n countOnly.retryOnBusy()\n .call();\n assertCounts(1, 0);\n }",
"class_method_signature": "NameToBeDefined2Test.retryOnBusy()",
"constructor": false,
"full_signature": "@Test void retryOnBusy()",
"identifier": "retryOnBusy",
"invocations": [
"call",
"retryOnBusy",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnBusy()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined2<V> retryOnBusy() {\n // can be called many times to add many retries\n return retryOnBusy(DEFAULT_DELAY_MILLIS, 0);\n }",
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"invocations": [
"retryOnBusy"
],
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_64 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private ShootOptionBuilder builder;",
"type": "ShootOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilderTest.java",
"identifier": "ShootOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void defaultBuilderIsValid() {\n final ShootOption shootOption = builder.build();\n\n Assertions.assertNotNull(shootOption);\n }",
"class_method_signature": "ShootOptionBuilderTest.defaultBuilderIsValid()",
"constructor": false,
"full_signature": "@Test void defaultBuilderIsValid()",
"identifier": "defaultBuilderIsValid",
"invocations": [
"build",
"assertNotNull"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void defaultBuilderIsValid()",
"testcase": true
} | {
"fields": [
{
"declarator": "shootAttemptCount = 5",
"modifier": "private",
"original_string": "private int shootAttemptCount = 5;",
"type": "int",
"var_name": "shootAttemptCount"
},
{
"declarator": "checkLiveViewState = false",
"modifier": "private",
"original_string": "private boolean checkLiveViewState = false;",
"type": "boolean",
"var_name": "checkLiveViewState"
},
{
"declarator": "shootWithV0 = true",
"modifier": "private",
"original_string": "private boolean shootWithV0 = true;",
"type": "boolean",
"var_name": "shootWithV0"
},
{
"declarator": "shootWithNoAF = true",
"modifier": "private",
"original_string": "private boolean shootWithNoAF = true;",
"type": "boolean",
"var_name": "shootWithNoAF"
},
{
"declarator": "shootWithAF = true",
"modifier": "private",
"original_string": "private boolean shootWithAF = true;",
"type": "boolean",
"var_name": "shootWithAF"
},
{
"declarator": "saveTo = EdsSaveTo.kEdsSaveTo_Both",
"modifier": "private",
"original_string": "private EdsSaveTo saveTo = EdsSaveTo.kEdsSaveTo_Both;",
"type": "EdsSaveTo",
"var_name": "saveTo"
},
{
"declarator": "waitForItemDownloadEvent = true",
"modifier": "private",
"original_string": "private boolean waitForItemDownloadEvent = true;",
"type": "boolean",
"var_name": "waitForItemDownloadEvent"
},
{
"declarator": "busyWaitMillis = 200",
"modifier": "private",
"original_string": "private long busyWaitMillis = 200;",
"type": "long",
"var_name": "busyWaitMillis"
},
{
"declarator": "fetchEvents = true",
"modifier": "private",
"original_string": "private boolean fetchEvents = true;",
"type": "boolean",
"var_name": "fetchEvents"
},
{
"declarator": "folderDestination = null",
"modifier": "private",
"original_string": "private File folderDestination = null;",
"type": "File",
"var_name": "folderDestination"
},
{
"declarator": "filename = null",
"modifier": "private",
"original_string": "private String filename = null;",
"type": "String",
"var_name": "filename"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilder.java",
"identifier": "ShootOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "ShootOptionBuilder.setShootAttemptCount(final int shootAttemptCount)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)",
"identifier": "setShootAttemptCount",
"modifiers": "public",
"parameters": "(final int shootAttemptCount)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setCheckLiveViewState(final boolean checkLiveViewState)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)",
"identifier": "setCheckLiveViewState",
"modifiers": "public",
"parameters": "(final boolean checkLiveViewState)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setShootWithV0(final boolean shootWithV0)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootWithV0(final boolean shootWithV0)",
"identifier": "setShootWithV0",
"modifiers": "public",
"parameters": "(final boolean shootWithV0)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootWithV0(final boolean shootWithV0)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setShootWithNoAF(final boolean shootWithNoAF)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)",
"identifier": "setShootWithNoAF",
"modifiers": "public",
"parameters": "(final boolean shootWithNoAF)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setShootWithAF(final boolean shootWithAF)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootWithAF(final boolean shootWithAF)",
"identifier": "setShootWithAF",
"modifiers": "public",
"parameters": "(final boolean shootWithAF)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootWithAF(final boolean shootWithAF)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setSaveTo(final EdsSaveTo saveTo)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)",
"identifier": "setSaveTo",
"modifiers": "public",
"parameters": "(final EdsSaveTo saveTo)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)",
"identifier": "setWaitForItemDownloadEvent",
"modifiers": "public",
"parameters": "(final boolean waitForItemDownloadEvent)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setBusyWaitMillis(final long busyWaitMillis)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)",
"identifier": "setBusyWaitMillis",
"modifiers": "public",
"parameters": "(final long busyWaitMillis)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setFetchEvents(final boolean fetchEvents)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setFetchEvents(final boolean fetchEvents)",
"identifier": "setFetchEvents",
"modifiers": "public",
"parameters": "(final boolean fetchEvents)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setFetchEvents(final boolean fetchEvents)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setFolderDestination(final File folderDestination)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setFolderDestination(final File folderDestination)",
"identifier": "setFolderDestination",
"modifiers": "public",
"parameters": "(final File folderDestination)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setFolderDestination(final File folderDestination)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setFilename(final String filename)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setFilename(final String filename)",
"identifier": "setFilename",
"modifiers": "public",
"parameters": "(final String filename)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setFilename(final String filename)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.build()",
"constructor": false,
"full_signature": "public ShootOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "ShootOption",
"signature": "ShootOption build()",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public ShootOption build() {\n validate();\n return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename);\n }",
"class_method_signature": "ShootOptionBuilder.build()",
"constructor": false,
"full_signature": "public ShootOption build()",
"identifier": "build",
"invocations": [
"validate"
],
"modifiers": "public",
"parameters": "()",
"return": "ShootOption",
"signature": "ShootOption build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_8 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/ReleaseUtilTest.java",
"identifier": "ReleaseUtilTest",
"interfaces": "",
"superclass": "extends AbstractMockTest"
} | {
"body": "@Test\n void release1() {\n final EdsBaseRef edsBaseRef = new EdsBaseRef();\n\n when(CanonFactory.edsdkLibrary().EdsRelease(edsBaseRef))\n .thenReturn(new NativeLong(0))\n .thenReturn(new NativeLong(-1));\n\n ReleaseUtil.release(edsBaseRef, edsBaseRef);\n\n // ================\n // Accepts null\n\n ReleaseUtil.release((EdsBaseRef) null, (EdsBaseRef) null);\n }",
"class_method_signature": "ReleaseUtilTest.release1()",
"constructor": false,
"full_signature": "@Test void release1()",
"identifier": "release1",
"invocations": [
"thenReturn",
"thenReturn",
"when",
"EdsRelease",
"edsdkLibrary",
"release",
"release"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void release1()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(ReleaseUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(ReleaseUtil.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/ReleaseUtil.java",
"identifier": "ReleaseUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"identifier": "release",
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"testcase": false
},
{
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef... refs)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef... refs)",
"identifier": "release",
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef... refs)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef... refs)",
"testcase": false
},
{
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef ref)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef ref)",
"identifier": "release",
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef ref)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef ref)",
"testcase": false
},
{
"class_method_signature": "ReleaseUtil.ReleaseUtil()",
"constructor": true,
"full_signature": "private ReleaseUtil()",
"identifier": "ReleaseUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " ReleaseUtil()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs) {\n if (refs != null)\n for (final EdsdkLibrary.EdsBaseRef.ByReference byReference : refs) {\n if (byReference != null)\n release(byReference.getValue());\n }\n }",
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"identifier": "release",
"invocations": [
"release",
"getValue"
],
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_33 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getExecutionEndTimeThrowsWhenNotRan() {\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.getExecutionEndTime());\n }",
"class_method_signature": "AbstractCanonCommandTest.getExecutionEndTimeThrowsWhenNotRan()",
"constructor": false,
"full_signature": "@Test void getExecutionEndTimeThrowsWhenNotRan()",
"identifier": "getExecutionEndTimeThrowsWhenNotRan",
"invocations": [
"assertThrows",
"getExecutionEndTime"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getExecutionEndTimeThrowsWhenNotRan()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public Instant getExecutionEndTime() {\n if (executionStartTime == null)\n throw new IllegalStateException(\"Command not started yet\");\n if (executionEndTime == null)\n throw new IllegalStateException(\"Command not finished yet\");\n return executionEndTime;\n }",
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_107 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "propertyEvent",
"modifier": "private",
"original_string": "private EdsPropertyEvent propertyEvent;",
"type": "EdsPropertyEvent",
"var_name": "propertyEvent"
},
{
"declarator": "propertyID",
"modifier": "private",
"original_string": "private EdsPropertyID propertyID;",
"type": "EdsPropertyID",
"var_name": "propertyID"
},
{
"declarator": "inParam",
"modifier": "private",
"original_string": "private Long inParam;",
"type": "Long",
"var_name": "inParam"
},
{
"declarator": "canonPropertyEvent",
"modifier": "private",
"original_string": "private CanonPropertyEventImpl canonPropertyEvent;",
"type": "CanonPropertyEventImpl",
"var_name": "canonPropertyEvent"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImplTest.java",
"identifier": "CanonPropertyEventImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void toStringOk() {\n Assertions.assertNotNull(canonPropertyEvent.toString());\n }",
"class_method_signature": "CanonPropertyEventImplTest.toStringOk()",
"constructor": false,
"full_signature": "@Test void toStringOk()",
"identifier": "toStringOk",
"invocations": [
"assertNotNull",
"toString"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void toStringOk()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private final",
"original_string": "private final EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "propertyEvent",
"modifier": "private final",
"original_string": "private final EdsPropertyEvent propertyEvent;",
"type": "EdsPropertyEvent",
"var_name": "propertyEvent"
},
{
"declarator": "propertyID",
"modifier": "private final",
"original_string": "private final EdsPropertyID propertyID;",
"type": "EdsPropertyID",
"var_name": "propertyID"
},
{
"declarator": "inParam",
"modifier": "private final",
"original_string": "private final long inParam;",
"type": "long",
"var_name": "inParam"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImpl.java",
"identifier": "CanonPropertyEventImpl",
"interfaces": "implements CanonPropertyEvent",
"methods": [
{
"class_method_signature": "CanonPropertyEventImpl.CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"constructor": true,
"full_signature": "public CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"identifier": "CanonPropertyEventImpl",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"return": "",
"signature": " CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getPropertyEvent()",
"constructor": false,
"full_signature": "@Override public EdsPropertyEvent getPropertyEvent()",
"identifier": "getPropertyEvent",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsPropertyEvent",
"signature": "EdsPropertyEvent getPropertyEvent()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getPropertyId()",
"constructor": false,
"full_signature": "@Override public EdsPropertyID getPropertyId()",
"identifier": "getPropertyId",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsPropertyID",
"signature": "EdsPropertyID getPropertyId()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getInParam()",
"constructor": false,
"full_signature": "@Override public long getInParam()",
"identifier": "getInParam",
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getInParam()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public String toString() {\n return \"CanonPropertyEventImpl{\" +\n \"cameraRef=\" + cameraRef +\n \", propertyEvent=\" + propertyEvent +\n \", propertyID=\" + propertyID +\n \", inParam=\" + inParam +\n '}';\n }",
"class_method_signature": "CanonPropertyEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_25 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getTargetRefTypeThrowsIfNotSetYet() {\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.getTargetRefType());\n }",
"class_method_signature": "AbstractCanonCommandTest.getTargetRefTypeThrowsIfNotSetYet()",
"constructor": false,
"full_signature": "@Test void getTargetRefTypeThrowsIfNotSetYet()",
"identifier": "getTargetRefTypeThrowsIfNotSetYet",
"invocations": [
"assertThrows",
"getTargetRefType"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getTargetRefTypeThrowsIfNotSetYet()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public TargetRefType getTargetRefType() {\n if (targetRefType == null)\n throw new IllegalStateException(\"TargetRefType have not been set yet\");\n return targetRefType;\n }",
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_111 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "objectEvent",
"modifier": "private",
"original_string": "private EdsObjectEvent objectEvent;",
"type": "EdsObjectEvent",
"var_name": "objectEvent"
},
{
"declarator": "baseRef",
"modifier": "private",
"original_string": "private EdsBaseRef baseRef;",
"type": "EdsBaseRef",
"var_name": "baseRef"
},
{
"declarator": "canonObjectEvent",
"modifier": "private",
"original_string": "private CanonObjectEventImpl canonObjectEvent;",
"type": "CanonObjectEventImpl",
"var_name": "canonObjectEvent"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImplTest.java",
"identifier": "CanonObjectEventImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void toStringOk() {\n Assertions.assertNotNull(canonObjectEvent.toString());\n }",
"class_method_signature": "CanonObjectEventImplTest.toStringOk()",
"constructor": false,
"full_signature": "@Test void toStringOk()",
"identifier": "toStringOk",
"invocations": [
"assertNotNull",
"toString"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void toStringOk()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private final",
"original_string": "private final EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "objectEvent",
"modifier": "private final",
"original_string": "private final EdsObjectEvent objectEvent;",
"type": "EdsObjectEvent",
"var_name": "objectEvent"
},
{
"declarator": "baseRef",
"modifier": "private final",
"original_string": "private final EdsBaseRef baseRef;",
"type": "EdsBaseRef",
"var_name": "baseRef"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImpl.java",
"identifier": "CanonObjectEventImpl",
"interfaces": "implements CanonObjectEvent",
"methods": [
{
"class_method_signature": "CanonObjectEventImpl.CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"constructor": true,
"full_signature": "public CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"identifier": "CanonObjectEventImpl",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"return": "",
"signature": " CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.getObjectEvent()",
"constructor": false,
"full_signature": "@Override public EdsObjectEvent getObjectEvent()",
"identifier": "getObjectEvent",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsObjectEvent",
"signature": "EdsObjectEvent getObjectEvent()",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.getBaseRef()",
"constructor": false,
"full_signature": "@Override public EdsBaseRef getBaseRef()",
"identifier": "getBaseRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getBaseRef()",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public String toString() {\n return \"CanonObjectEventImpl{\" +\n \"cameraRef=\" + cameraRef +\n \", objectEvent=\" + objectEvent +\n \", baseRef=\" + baseRef +\n '}';\n }",
"class_method_signature": "CanonObjectEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_72 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/TargetRefAccessTypeTest.java",
"identifier": "TargetRefAccessTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void toStringOk() {\n Assertions.assertNotNull(CAMERA_READ.toString());\n }",
"class_method_signature": "TargetRefAccessTypeTest.toStringOk()",
"constructor": false,
"full_signature": "@Test void toStringOk()",
"identifier": "toStringOk",
"invocations": [
"assertNotNull",
"toString"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void toStringOk()",
"testcase": true
} | {
"fields": [
{
"declarator": "CAMERA_READ = new TargetRefAccessType(CAMERA, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_READ = new TargetRefAccessType(CAMERA, true, false);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_READ"
},
{
"declarator": "CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_READ_WRITE"
},
{
"declarator": "CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_WRITE"
},
{
"declarator": "IMAGE_READ = new TargetRefAccessType(IMAGE, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_READ = new TargetRefAccessType(IMAGE, true, false);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_READ"
},
{
"declarator": "IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_READ_WRITE"
},
{
"declarator": "IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_WRITE"
},
{
"declarator": "EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false);",
"type": "TargetRefAccessType",
"var_name": "EVF_IMAGE_READ"
},
{
"declarator": "GROUP_NONE = Collections.emptySet()",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_NONE = Collections.emptySet();",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_NONE"
},
{
"declarator": "GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE"
},
{
"declarator": "GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_READ"
},
{
"declarator": "GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_READ_WRITE"
},
{
"declarator": "GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_WRITE"
},
{
"declarator": "GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_EVF_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE"
},
{
"declarator": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ"
},
{
"declarator": "targetRefType",
"modifier": "private final",
"original_string": "private final TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "read",
"modifier": "private final",
"original_string": "private final boolean read;",
"type": "boolean",
"var_name": "read"
},
{
"declarator": "write",
"modifier": "private final",
"original_string": "private final boolean write;",
"type": "boolean",
"var_name": "write"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/TargetRefAccessType.java",
"identifier": "TargetRefAccessType",
"interfaces": "",
"methods": [
{
"class_method_signature": "TargetRefAccessType.TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"constructor": true,
"full_signature": "private TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"identifier": "TargetRefAccessType",
"modifiers": "private",
"parameters": "(final TargetRefType targetRefType, final boolean read, final boolean write)",
"return": "",
"signature": " TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.getTargetRefType()",
"constructor": false,
"full_signature": "public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hasRead()",
"constructor": false,
"full_signature": "public boolean hasRead()",
"identifier": "hasRead",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasRead()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hasWrite()",
"constructor": false,
"full_signature": "public boolean hasWrite()",
"identifier": "hasWrite",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasWrite()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.equals(final Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(final Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(final Object o)",
"return": "boolean",
"signature": "boolean equals(final Object o)",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public String toString() {\n return \"TargetRefAccessType{\" +\n \"targetRefType=\" + targetRefType +\n \", read=\" + read +\n \", write=\" + write +\n '}';\n }",
"class_method_signature": "TargetRefAccessType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_48 | {
"fields": [
{
"declarator": "command",
"modifier": "private",
"original_string": "private GenericCommand<String> command;",
"type": "GenericCommand<String>",
"var_name": "command"
},
{
"declarator": "commandThrows",
"modifier": "private",
"original_string": "private GenericCommand<String> commandThrows;",
"type": "GenericCommand<String>",
"var_name": "commandThrows"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/impl/DefaultValueOnErrorDecoratorTest.java",
"identifier": "DefaultValueOnErrorDecoratorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getDefaultOnError() {\n final DefaultValueOnErrorDecorator<String> decorator = new DefaultValueOnErrorDecorator<>(commandThrows, \"default\");\n\n decorator.run();\n\n Assertions.assertNotNull(decorator.get());\n Assertions.assertEquals(\"default\", decorator.get());\n }",
"class_method_signature": "DefaultValueOnErrorDecoratorTest.getDefaultOnError()",
"constructor": false,
"full_signature": "@Test void getDefaultOnError()",
"identifier": "getDefaultOnError",
"invocations": [
"run",
"assertNotNull",
"get",
"assertEquals",
"get"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getDefaultOnError()",
"testcase": true
} | {
"fields": [
{
"declarator": "defaultValue",
"modifier": "private final",
"original_string": "private final R defaultValue;",
"type": "R",
"var_name": "defaultValue"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/impl/DefaultValueOnErrorDecorator.java",
"identifier": "DefaultValueOnErrorDecorator",
"interfaces": "implements CanonCommand<R>",
"methods": [
{
"class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)",
"constructor": true,
"full_signature": "public DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)",
"identifier": "DefaultValueOnErrorDecorator",
"modifiers": "public",
"parameters": "(final CanonCommand<R> delegate)",
"return": "",
"signature": " DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)",
"constructor": true,
"full_signature": "public DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)",
"identifier": "DefaultValueOnErrorDecorator",
"modifiers": "public",
"parameters": "(final CanonCommand<R> delegate, final R defaultValue)",
"return": "",
"signature": " DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"constructor": true,
"full_signature": "public DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"identifier": "DefaultValueOnErrorDecorator",
"modifiers": "public",
"parameters": "(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"return": "",
"signature": " DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.getOpt()",
"constructor": false,
"full_signature": "@Override public Optional<R> getOpt()",
"identifier": "getOpt",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<R>",
"signature": "Optional<R> getOpt()",
"testcase": false
}
],
"superclass": "extends AbstractDecoratorCommand<R>"
} | {
"body": "@Override\n public R get() {\n try {\n return getDelegate().get();\n } catch (Exception e) {\n return defaultValue;\n }\n }",
"class_method_signature": "DefaultValueOnErrorDecorator.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"invocations": [
"get",
"getDelegate"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_49 | {
"fields": [
{
"declarator": "command",
"modifier": "private",
"original_string": "private GenericCommand<String> command;",
"type": "GenericCommand<String>",
"var_name": "command"
},
{
"declarator": "commandThrows",
"modifier": "private",
"original_string": "private GenericCommand<String> commandThrows;",
"type": "GenericCommand<String>",
"var_name": "commandThrows"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/impl/DefaultValueOnErrorDecoratorTest.java",
"identifier": "DefaultValueOnErrorDecoratorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getOpt() {\n final DefaultValueOnErrorDecorator<String> decorator = new DefaultValueOnErrorDecorator<>(command);\n\n decorator.run();\n\n Assertions.assertTrue(decorator.getOpt().isPresent());\n Assertions.assertEquals(\"value\", decorator.getOpt().get());\n }",
"class_method_signature": "DefaultValueOnErrorDecoratorTest.getOpt()",
"constructor": false,
"full_signature": "@Test void getOpt()",
"identifier": "getOpt",
"invocations": [
"run",
"assertTrue",
"isPresent",
"getOpt",
"assertEquals",
"get",
"getOpt"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getOpt()",
"testcase": true
} | {
"fields": [
{
"declarator": "defaultValue",
"modifier": "private final",
"original_string": "private final R defaultValue;",
"type": "R",
"var_name": "defaultValue"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/impl/DefaultValueOnErrorDecorator.java",
"identifier": "DefaultValueOnErrorDecorator",
"interfaces": "implements CanonCommand<R>",
"methods": [
{
"class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)",
"constructor": true,
"full_signature": "public DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)",
"identifier": "DefaultValueOnErrorDecorator",
"modifiers": "public",
"parameters": "(final CanonCommand<R> delegate)",
"return": "",
"signature": " DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)",
"constructor": true,
"full_signature": "public DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)",
"identifier": "DefaultValueOnErrorDecorator",
"modifiers": "public",
"parameters": "(final CanonCommand<R> delegate, final R defaultValue)",
"return": "",
"signature": " DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"constructor": true,
"full_signature": "public DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"identifier": "DefaultValueOnErrorDecorator",
"modifiers": "public",
"parameters": "(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"return": "",
"signature": " DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "DefaultValueOnErrorDecorator.getOpt()",
"constructor": false,
"full_signature": "@Override public Optional<R> getOpt()",
"identifier": "getOpt",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<R>",
"signature": "Optional<R> getOpt()",
"testcase": false
}
],
"superclass": "extends AbstractDecoratorCommand<R>"
} | {
"body": "@Override\n public Optional<R> getOpt() {\n try {\n return getDelegate().getOpt();\n } catch (Exception e) {\n return Optional.ofNullable(defaultValue);\n }\n }",
"class_method_signature": "DefaultValueOnErrorDecorator.getOpt()",
"constructor": false,
"full_signature": "@Override public Optional<R> getOpt()",
"identifier": "getOpt",
"invocations": [
"getOpt",
"getDelegate",
"ofNullable"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<R>",
"signature": "Optional<R> getOpt()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_73 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getCameraRef() {\n Assertions.assertFalse(cameraDefaultConstructor.getCameraRef().isPresent());\n Assertions.assertFalse(cameraWithSerialNumber.getCameraRef().isPresent());\n }",
"class_method_signature": "CanonCameraTest.getCameraRef()",
"constructor": false,
"full_signature": "@Test void getCameraRef()",
"identifier": "getCameraRef",
"invocations": [
"assertFalse",
"isPresent",
"getCameraRef",
"assertFalse",
"isPresent",
"getCameraRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getCameraRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Optional<EdsCameraRef> getCameraRef() {\n return Optional.ofNullable(cameraRef.get());\n }",
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"invocations": [
"ofNullable",
"get"
],
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_24 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getTargetRef() {\n Assertions.assertFalse(doNothingCommand.getTargetRef().isPresent());\n }",
"class_method_signature": "AbstractCanonCommandTest.getTargetRef()",
"constructor": false,
"full_signature": "@Test void getTargetRef()",
"identifier": "getTargetRef",
"invocations": [
"assertFalse",
"isPresent",
"getTargetRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getTargetRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public final Optional<EdsBaseRef> getTargetRef() {\n return Optional.ofNullable(targetRef);\n }",
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"invocations": [
"ofNullable"
],
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_110 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "objectEvent",
"modifier": "private",
"original_string": "private EdsObjectEvent objectEvent;",
"type": "EdsObjectEvent",
"var_name": "objectEvent"
},
{
"declarator": "baseRef",
"modifier": "private",
"original_string": "private EdsBaseRef baseRef;",
"type": "EdsBaseRef",
"var_name": "baseRef"
},
{
"declarator": "canonObjectEvent",
"modifier": "private",
"original_string": "private CanonObjectEventImpl canonObjectEvent;",
"type": "CanonObjectEventImpl",
"var_name": "canonObjectEvent"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImplTest.java",
"identifier": "CanonObjectEventImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getBaseRef() {\n final EdsBaseRef ref = canonObjectEvent.getBaseRef();\n Assertions.assertNotNull(ref);\n Assertions.assertEquals(baseRef, ref);\n Assertions.assertSame(baseRef, canonObjectEvent.getBaseRef());\n }",
"class_method_signature": "CanonObjectEventImplTest.getBaseRef()",
"constructor": false,
"full_signature": "@Test void getBaseRef()",
"identifier": "getBaseRef",
"invocations": [
"getBaseRef",
"assertNotNull",
"assertEquals",
"assertSame",
"getBaseRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getBaseRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private final",
"original_string": "private final EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "objectEvent",
"modifier": "private final",
"original_string": "private final EdsObjectEvent objectEvent;",
"type": "EdsObjectEvent",
"var_name": "objectEvent"
},
{
"declarator": "baseRef",
"modifier": "private final",
"original_string": "private final EdsBaseRef baseRef;",
"type": "EdsBaseRef",
"var_name": "baseRef"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImpl.java",
"identifier": "CanonObjectEventImpl",
"interfaces": "implements CanonObjectEvent",
"methods": [
{
"class_method_signature": "CanonObjectEventImpl.CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"constructor": true,
"full_signature": "public CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"identifier": "CanonObjectEventImpl",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"return": "",
"signature": " CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.getObjectEvent()",
"constructor": false,
"full_signature": "@Override public EdsObjectEvent getObjectEvent()",
"identifier": "getObjectEvent",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsObjectEvent",
"signature": "EdsObjectEvent getObjectEvent()",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.getBaseRef()",
"constructor": false,
"full_signature": "@Override public EdsBaseRef getBaseRef()",
"identifier": "getBaseRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getBaseRef()",
"testcase": false
},
{
"class_method_signature": "CanonObjectEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public EdsBaseRef getBaseRef() {\n return baseRef;\n }",
"class_method_signature": "CanonObjectEventImpl.getBaseRef()",
"constructor": false,
"full_signature": "@Override public EdsBaseRef getBaseRef()",
"identifier": "getBaseRef",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getBaseRef()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_32 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getExecutionEndTime() {\n doNothingCommand.run();\n Assertions.assertNotNull(doNothingCommand.getExecutionEndTime());\n }",
"class_method_signature": "AbstractCanonCommandTest.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Test void getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"invocations": [
"run",
"assertNotNull",
"getExecutionEndTime"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getExecutionEndTime()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public Instant getExecutionEndTime() {\n if (executionStartTime == null)\n throw new IllegalStateException(\"Command not started yet\");\n if (executionEndTime == null)\n throw new IllegalStateException(\"Command not finished yet\");\n return executionEndTime;\n }",
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_106 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "propertyEvent",
"modifier": "private",
"original_string": "private EdsPropertyEvent propertyEvent;",
"type": "EdsPropertyEvent",
"var_name": "propertyEvent"
},
{
"declarator": "propertyID",
"modifier": "private",
"original_string": "private EdsPropertyID propertyID;",
"type": "EdsPropertyID",
"var_name": "propertyID"
},
{
"declarator": "inParam",
"modifier": "private",
"original_string": "private Long inParam;",
"type": "Long",
"var_name": "inParam"
},
{
"declarator": "canonPropertyEvent",
"modifier": "private",
"original_string": "private CanonPropertyEventImpl canonPropertyEvent;",
"type": "CanonPropertyEventImpl",
"var_name": "canonPropertyEvent"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImplTest.java",
"identifier": "CanonPropertyEventImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getInParam() {\n final long param = canonPropertyEvent.getInParam();\n Assertions.assertEquals(inParam, param);\n }",
"class_method_signature": "CanonPropertyEventImplTest.getInParam()",
"constructor": false,
"full_signature": "@Test void getInParam()",
"identifier": "getInParam",
"invocations": [
"getInParam",
"assertEquals"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getInParam()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private final",
"original_string": "private final EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "propertyEvent",
"modifier": "private final",
"original_string": "private final EdsPropertyEvent propertyEvent;",
"type": "EdsPropertyEvent",
"var_name": "propertyEvent"
},
{
"declarator": "propertyID",
"modifier": "private final",
"original_string": "private final EdsPropertyID propertyID;",
"type": "EdsPropertyID",
"var_name": "propertyID"
},
{
"declarator": "inParam",
"modifier": "private final",
"original_string": "private final long inParam;",
"type": "long",
"var_name": "inParam"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImpl.java",
"identifier": "CanonPropertyEventImpl",
"interfaces": "implements CanonPropertyEvent",
"methods": [
{
"class_method_signature": "CanonPropertyEventImpl.CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"constructor": true,
"full_signature": "public CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"identifier": "CanonPropertyEventImpl",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"return": "",
"signature": " CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getPropertyEvent()",
"constructor": false,
"full_signature": "@Override public EdsPropertyEvent getPropertyEvent()",
"identifier": "getPropertyEvent",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsPropertyEvent",
"signature": "EdsPropertyEvent getPropertyEvent()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getPropertyId()",
"constructor": false,
"full_signature": "@Override public EdsPropertyID getPropertyId()",
"identifier": "getPropertyId",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsPropertyID",
"signature": "EdsPropertyID getPropertyId()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getInParam()",
"constructor": false,
"full_signature": "@Override public long getInParam()",
"identifier": "getInParam",
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getInParam()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public long getInParam() {\n return inParam;\n }",
"class_method_signature": "CanonPropertyEventImpl.getInParam()",
"constructor": false,
"full_signature": "@Override public long getInParam()",
"identifier": "getInParam",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getInParam()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_9 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/ReleaseUtilTest.java",
"identifier": "ReleaseUtilTest",
"interfaces": "",
"superclass": "extends AbstractMockTest"
} | {
"body": "@Test\n void release2() {\n final EdsBaseRef edsBaseRef = new EdsBaseRef();\n\n when(CanonFactory.edsdkLibrary().EdsRelease(edsBaseRef))\n .thenReturn(new NativeLong(0));\n\n ReleaseUtil.release(edsBaseRef);\n\n // ================\n // Accepts null\n\n ReleaseUtil.release((EdsBaseRef) null);\n }",
"class_method_signature": "ReleaseUtilTest.release2()",
"constructor": false,
"full_signature": "@Test void release2()",
"identifier": "release2",
"invocations": [
"thenReturn",
"when",
"EdsRelease",
"edsdkLibrary",
"release",
"release"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void release2()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(ReleaseUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(ReleaseUtil.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/ReleaseUtil.java",
"identifier": "ReleaseUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"identifier": "release",
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"testcase": false
},
{
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef... refs)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef... refs)",
"identifier": "release",
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef... refs)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef... refs)",
"testcase": false
},
{
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef ref)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef ref)",
"identifier": "release",
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef ref)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef ref)",
"testcase": false
},
{
"class_method_signature": "ReleaseUtil.ReleaseUtil()",
"constructor": true,
"full_signature": "private ReleaseUtil()",
"identifier": "ReleaseUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " ReleaseUtil()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs) {\n if (refs != null)\n for (final EdsdkLibrary.EdsBaseRef.ByReference byReference : refs) {\n if (byReference != null)\n release(byReference.getValue());\n }\n }",
"class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"constructor": false,
"full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"identifier": "release",
"invocations": [
"release",
"getValue"
],
"modifiers": "public static",
"parameters": "(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"return": "void",
"signature": "void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_65 | {
"fields": [
{
"declarator": "builder",
"modifier": "private",
"original_string": "private ShootOptionBuilder builder;",
"type": "ShootOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilderTest.java",
"identifier": "ShootOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void defaultValuesAreUnChanged() {\n final ShootOption shootOption = builder.build();\n\n Assertions.assertEquals(5, shootOption.getShootAttemptCount());\n Assertions.assertEquals(200, shootOption.getBusyWaitMillis());\n Assertions.assertFalse(shootOption.isCheckLiveViewState());\n Assertions.assertTrue(shootOption.isFetchEvents());\n Assertions.assertTrue(shootOption.isShootWithAF());\n Assertions.assertTrue(shootOption.isShootWithNoAF());\n Assertions.assertTrue(shootOption.isShootWithV0());\n Assertions.assertTrue(shootOption.isWaitForItemDownloadEvent());\n\n Assertions.assertFalse(shootOption.getFilename().isPresent());\n Assertions.assertFalse(shootOption.getFolderDestination().isPresent());\n\n Assertions.assertTrue(shootOption.getSaveTo().isPresent());\n Assertions.assertEquals(EdsSaveTo.kEdsSaveTo_Both, shootOption.getSaveTo().get());\n }",
"class_method_signature": "ShootOptionBuilderTest.defaultValuesAreUnChanged()",
"constructor": false,
"full_signature": "@Test void defaultValuesAreUnChanged()",
"identifier": "defaultValuesAreUnChanged",
"invocations": [
"build",
"assertEquals",
"getShootAttemptCount",
"assertEquals",
"getBusyWaitMillis",
"assertFalse",
"isCheckLiveViewState",
"assertTrue",
"isFetchEvents",
"assertTrue",
"isShootWithAF",
"assertTrue",
"isShootWithNoAF",
"assertTrue",
"isShootWithV0",
"assertTrue",
"isWaitForItemDownloadEvent",
"assertFalse",
"isPresent",
"getFilename",
"assertFalse",
"isPresent",
"getFolderDestination",
"assertTrue",
"isPresent",
"getSaveTo",
"assertEquals",
"get",
"getSaveTo"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void defaultValuesAreUnChanged()",
"testcase": true
} | {
"fields": [
{
"declarator": "shootAttemptCount = 5",
"modifier": "private",
"original_string": "private int shootAttemptCount = 5;",
"type": "int",
"var_name": "shootAttemptCount"
},
{
"declarator": "checkLiveViewState = false",
"modifier": "private",
"original_string": "private boolean checkLiveViewState = false;",
"type": "boolean",
"var_name": "checkLiveViewState"
},
{
"declarator": "shootWithV0 = true",
"modifier": "private",
"original_string": "private boolean shootWithV0 = true;",
"type": "boolean",
"var_name": "shootWithV0"
},
{
"declarator": "shootWithNoAF = true",
"modifier": "private",
"original_string": "private boolean shootWithNoAF = true;",
"type": "boolean",
"var_name": "shootWithNoAF"
},
{
"declarator": "shootWithAF = true",
"modifier": "private",
"original_string": "private boolean shootWithAF = true;",
"type": "boolean",
"var_name": "shootWithAF"
},
{
"declarator": "saveTo = EdsSaveTo.kEdsSaveTo_Both",
"modifier": "private",
"original_string": "private EdsSaveTo saveTo = EdsSaveTo.kEdsSaveTo_Both;",
"type": "EdsSaveTo",
"var_name": "saveTo"
},
{
"declarator": "waitForItemDownloadEvent = true",
"modifier": "private",
"original_string": "private boolean waitForItemDownloadEvent = true;",
"type": "boolean",
"var_name": "waitForItemDownloadEvent"
},
{
"declarator": "busyWaitMillis = 200",
"modifier": "private",
"original_string": "private long busyWaitMillis = 200;",
"type": "long",
"var_name": "busyWaitMillis"
},
{
"declarator": "fetchEvents = true",
"modifier": "private",
"original_string": "private boolean fetchEvents = true;",
"type": "boolean",
"var_name": "fetchEvents"
},
{
"declarator": "folderDestination = null",
"modifier": "private",
"original_string": "private File folderDestination = null;",
"type": "File",
"var_name": "folderDestination"
},
{
"declarator": "filename = null",
"modifier": "private",
"original_string": "private String filename = null;",
"type": "String",
"var_name": "filename"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilder.java",
"identifier": "ShootOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "ShootOptionBuilder.setShootAttemptCount(final int shootAttemptCount)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)",
"identifier": "setShootAttemptCount",
"modifiers": "public",
"parameters": "(final int shootAttemptCount)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setCheckLiveViewState(final boolean checkLiveViewState)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)",
"identifier": "setCheckLiveViewState",
"modifiers": "public",
"parameters": "(final boolean checkLiveViewState)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setShootWithV0(final boolean shootWithV0)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootWithV0(final boolean shootWithV0)",
"identifier": "setShootWithV0",
"modifiers": "public",
"parameters": "(final boolean shootWithV0)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootWithV0(final boolean shootWithV0)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setShootWithNoAF(final boolean shootWithNoAF)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)",
"identifier": "setShootWithNoAF",
"modifiers": "public",
"parameters": "(final boolean shootWithNoAF)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setShootWithAF(final boolean shootWithAF)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setShootWithAF(final boolean shootWithAF)",
"identifier": "setShootWithAF",
"modifiers": "public",
"parameters": "(final boolean shootWithAF)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setShootWithAF(final boolean shootWithAF)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setSaveTo(final EdsSaveTo saveTo)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)",
"identifier": "setSaveTo",
"modifiers": "public",
"parameters": "(final EdsSaveTo saveTo)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)",
"identifier": "setWaitForItemDownloadEvent",
"modifiers": "public",
"parameters": "(final boolean waitForItemDownloadEvent)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setBusyWaitMillis(final long busyWaitMillis)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)",
"identifier": "setBusyWaitMillis",
"modifiers": "public",
"parameters": "(final long busyWaitMillis)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setFetchEvents(final boolean fetchEvents)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setFetchEvents(final boolean fetchEvents)",
"identifier": "setFetchEvents",
"modifiers": "public",
"parameters": "(final boolean fetchEvents)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setFetchEvents(final boolean fetchEvents)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setFolderDestination(final File folderDestination)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setFolderDestination(final File folderDestination)",
"identifier": "setFolderDestination",
"modifiers": "public",
"parameters": "(final File folderDestination)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setFolderDestination(final File folderDestination)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.setFilename(final String filename)",
"constructor": false,
"full_signature": "public ShootOptionBuilder setFilename(final String filename)",
"identifier": "setFilename",
"modifiers": "public",
"parameters": "(final String filename)",
"return": "ShootOptionBuilder",
"signature": "ShootOptionBuilder setFilename(final String filename)",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.build()",
"constructor": false,
"full_signature": "public ShootOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "ShootOption",
"signature": "ShootOption build()",
"testcase": false
},
{
"class_method_signature": "ShootOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public ShootOption build() {\n validate();\n return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename);\n }",
"class_method_signature": "ShootOptionBuilder.build()",
"constructor": false,
"full_signature": "public ShootOption build()",
"identifier": "build",
"invocations": [
"validate"
],
"modifiers": "public",
"parameters": "()",
"return": "ShootOption",
"signature": "ShootOption build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_12 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/LibraryFieldUtilTest.java",
"identifier": "LibraryFieldUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void countClassField() {\n }",
"class_method_signature": "LibraryFieldUtilTest.countClassField()",
"constructor": false,
"full_signature": "@Test void countClassField()",
"identifier": "countClassField",
"invocations": [],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void countClassField()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(LibraryFieldUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(LibraryFieldUtil.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/LibraryFieldUtil.java",
"identifier": "LibraryFieldUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "LibraryFieldUtil.getNativeIntValue(final Class klass, final String fieldName)",
"constructor": false,
"full_signature": "public static int getNativeIntValue(final Class klass, final String fieldName)",
"identifier": "getNativeIntValue",
"modifiers": "public static",
"parameters": "(final Class klass, final String fieldName)",
"return": "int",
"signature": "int getNativeIntValue(final Class klass, final String fieldName)",
"testcase": false
},
{
"class_method_signature": "LibraryFieldUtil.countClassField(final Class klass)",
"constructor": false,
"full_signature": "public static int countClassField(final Class klass)",
"identifier": "countClassField",
"modifiers": "public static",
"parameters": "(final Class klass)",
"return": "int",
"signature": "int countClassField(final Class klass)",
"testcase": false
},
{
"class_method_signature": "LibraryFieldUtil.LibraryFieldUtil()",
"constructor": true,
"full_signature": "private LibraryFieldUtil()",
"identifier": "LibraryFieldUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " LibraryFieldUtil()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static int countClassField(final Class klass) {\n return klass.getDeclaredFields().length;\n }",
"class_method_signature": "LibraryFieldUtil.countClassField(final Class klass)",
"constructor": false,
"full_signature": "public static int countClassField(final Class klass)",
"identifier": "countClassField",
"invocations": [
"getDeclaredFields"
],
"modifiers": "public static",
"parameters": "(final Class klass)",
"return": "int",
"signature": "int countClassField(final Class klass)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_45 | {
"fields": [
{
"declarator": "command",
"modifier": "private",
"original_string": "private GenericCommand<String> command;",
"type": "GenericCommand<String>",
"var_name": "command"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/impl/TimeoutCommandDecoratorTest.java",
"identifier": "TimeoutCommandDecoratorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getTimeout() {\n final TimeoutCommandDecorator<String> decorator = new TimeoutCommandDecorator<>(command, Duration.ofSeconds(5));\n\n Assertions.assertTrue(decorator.getTimeout().isPresent());\n Assertions.assertEquals(Duration.ofSeconds(5), decorator.getTimeout().get());\n }",
"class_method_signature": "TimeoutCommandDecoratorTest.getTimeout()",
"constructor": false,
"full_signature": "@Test void getTimeout()",
"identifier": "getTimeout",
"invocations": [
"ofSeconds",
"assertTrue",
"isPresent",
"getTimeout",
"assertEquals",
"ofSeconds",
"get",
"getTimeout"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getTimeout()",
"testcase": true
} | {
"fields": [
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/impl/TimeoutCommandDecorator.java",
"identifier": "TimeoutCommandDecorator",
"interfaces": "",
"methods": [
{
"class_method_signature": "TimeoutCommandDecorator.TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout)",
"constructor": true,
"full_signature": "public TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout)",
"identifier": "TimeoutCommandDecorator",
"modifiers": "public",
"parameters": "(final CanonCommand<R> delegate, final Duration timeout)",
"return": "",
"signature": " TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "TimeoutCommandDecorator.TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"constructor": true,
"full_signature": "public TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"identifier": "TimeoutCommandDecorator",
"modifiers": "public",
"parameters": "(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"return": "",
"signature": " TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "TimeoutCommandDecorator.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "TimeoutCommandDecorator.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
}
],
"superclass": "extends AbstractDecoratorCommand<R>"
} | {
"body": "@Override\n public Optional<Duration> getTimeout() {\n return Optional.of(timeout);\n }",
"class_method_signature": "TimeoutCommandDecorator.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"invocations": [
"of"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_53 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private CloseSessionOptionBuilder builder;",
"type": "CloseSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilderTest.java",
"identifier": "CloseSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setCamera() {\n final CloseSessionOption option = builder\n .setCameraRef(cameraRef)\n .setCamera(null)\n .build();\n Assertions.assertNotNull(option.getCameraRef());\n Assertions.assertFalse(option.getCamera().isPresent());\n final CloseSessionOption option1 = builder\n .setCameraRef(cameraRef)\n .setCamera(new CanonCamera())\n .build();\n Assertions.assertNotNull(option1.getCameraRef());\n Assertions.assertTrue(option1.getCamera().isPresent());\n Assertions.assertNotEquals(option, option1);\n Assertions.assertNotEquals(option.hashCode(), option1.hashCode());\n }",
"class_method_signature": "CloseSessionOptionBuilderTest.setCamera()",
"constructor": false,
"full_signature": "@Test void setCamera()",
"identifier": "setCamera",
"invocations": [
"build",
"setCamera",
"setCameraRef",
"assertNotNull",
"getCameraRef",
"assertFalse",
"isPresent",
"getCamera",
"build",
"setCamera",
"setCameraRef",
"assertNotNull",
"getCameraRef",
"assertTrue",
"isPresent",
"getCamera",
"assertNotEquals",
"assertNotEquals",
"hashCode",
"hashCode"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setCamera()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "releaseCameraRef = true",
"modifier": "private",
"original_string": "private boolean releaseCameraRef = true;",
"type": "boolean",
"var_name": "releaseCameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilder.java",
"identifier": "CloseSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setReleaseCameraRef(final boolean releaseCameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"identifier": "setReleaseCameraRef",
"modifiers": "public",
"parameters": "(final boolean releaseCameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public CloseSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionOption",
"signature": "CloseSessionOption build()",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera) {\n this.camera = camera;\n return this;\n }",
"class_method_signature": "CloseSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"invocations": [],
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_90 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getCanonFactory() {\n final CanonFactory canonFactory = CanonFactory.getCanonFactory();\n assertNotNull(canonFactory);\n }",
"class_method_signature": "CanonFactoryTest.getCanonFactory()",
"constructor": false,
"full_signature": "@Test void getCanonFactory()",
"identifier": "getCanonFactory",
"invocations": [
"getCanonFactory",
"assertNotNull"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getCanonFactory()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static CanonFactory getCanonFactory() {\n return canonFactory;\n }",
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"invocations": [],
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_28 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getCreateTime() {\n Assertions.assertNotNull(doNothingCommand.getCreateTime());\n }",
"class_method_signature": "AbstractCanonCommandTest.getCreateTime()",
"constructor": false,
"full_signature": "@Test void getCreateTime()",
"identifier": "getCreateTime",
"invocations": [
"assertNotNull",
"getCreateTime"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getCreateTime()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public Instant getCreateTime() {\n return createTime;\n }",
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_69 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/TargetRefAccessTypeTest.java",
"identifier": "TargetRefAccessTypeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void hasRead() {\n Assertions.assertFalse(CAMERA_WRITE.hasRead());\n Assertions.assertFalse(IMAGE_WRITE.hasRead());\n\n Assertions.assertTrue(CAMERA_READ.hasRead());\n Assertions.assertTrue(IMAGE_READ.hasRead());\n Assertions.assertTrue(EVF_IMAGE_READ.hasRead());\n Assertions.assertTrue(IMAGE_READ_WRITE.hasRead());\n Assertions.assertTrue(CAMERA_READ_WRITE.hasRead());\n }",
"class_method_signature": "TargetRefAccessTypeTest.hasRead()",
"constructor": false,
"full_signature": "@Test void hasRead()",
"identifier": "hasRead",
"invocations": [
"assertFalse",
"hasRead",
"assertFalse",
"hasRead",
"assertTrue",
"hasRead",
"assertTrue",
"hasRead",
"assertTrue",
"hasRead",
"assertTrue",
"hasRead",
"assertTrue",
"hasRead"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void hasRead()",
"testcase": true
} | {
"fields": [
{
"declarator": "CAMERA_READ = new TargetRefAccessType(CAMERA, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_READ = new TargetRefAccessType(CAMERA, true, false);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_READ"
},
{
"declarator": "CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_READ_WRITE"
},
{
"declarator": "CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true);",
"type": "TargetRefAccessType",
"var_name": "CAMERA_WRITE"
},
{
"declarator": "IMAGE_READ = new TargetRefAccessType(IMAGE, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_READ = new TargetRefAccessType(IMAGE, true, false);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_READ"
},
{
"declarator": "IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_READ_WRITE"
},
{
"declarator": "IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true);",
"type": "TargetRefAccessType",
"var_name": "IMAGE_WRITE"
},
{
"declarator": "EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false)",
"modifier": "public static final",
"original_string": "public static final TargetRefAccessType EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false);",
"type": "TargetRefAccessType",
"var_name": "EVF_IMAGE_READ"
},
{
"declarator": "GROUP_NONE = Collections.emptySet()",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_NONE = Collections.emptySet();",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_NONE"
},
{
"declarator": "GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE"
},
{
"declarator": "GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_READ"
},
{
"declarator": "GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_READ_WRITE"
},
{
"declarator": "GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_IMAGE_WRITE"
},
{
"declarator": "GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_EVF_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ"
},
{
"declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE"
},
{
"declarator": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ)",
"modifier": "public static final",
"original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ);",
"type": "Set<TargetRefAccessType>",
"var_name": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ"
},
{
"declarator": "targetRefType",
"modifier": "private final",
"original_string": "private final TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "read",
"modifier": "private final",
"original_string": "private final boolean read;",
"type": "boolean",
"var_name": "read"
},
{
"declarator": "write",
"modifier": "private final",
"original_string": "private final boolean write;",
"type": "boolean",
"var_name": "write"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/TargetRefAccessType.java",
"identifier": "TargetRefAccessType",
"interfaces": "",
"methods": [
{
"class_method_signature": "TargetRefAccessType.TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"constructor": true,
"full_signature": "private TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"identifier": "TargetRefAccessType",
"modifiers": "private",
"parameters": "(final TargetRefType targetRefType, final boolean read, final boolean write)",
"return": "",
"signature": " TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.getTargetRefType()",
"constructor": false,
"full_signature": "public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hasRead()",
"constructor": false,
"full_signature": "public boolean hasRead()",
"identifier": "hasRead",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasRead()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hasWrite()",
"constructor": false,
"full_signature": "public boolean hasWrite()",
"identifier": "hasWrite",
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasWrite()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.equals(final Object o)",
"constructor": false,
"full_signature": "@Override public boolean equals(final Object o)",
"identifier": "equals",
"modifiers": "@Override public",
"parameters": "(final Object o)",
"return": "boolean",
"signature": "boolean equals(final Object o)",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"modifiers": "@Override public",
"parameters": "()",
"return": "int",
"signature": "int hashCode()",
"testcase": false
},
{
"class_method_signature": "TargetRefAccessType.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public boolean hasRead() {\n return read;\n }",
"class_method_signature": "TargetRefAccessType.hasRead()",
"constructor": false,
"full_signature": "public boolean hasRead()",
"identifier": "hasRead",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasRead()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_86 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonLibraryImplTest.java",
"identifier": "CanonLibraryImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getLibPath() {\n final CanonLibraryImpl canonLibrary = (CanonLibraryImpl) CanonFactory.canonLibrary();\n if (Platform.is64Bit()) {\n Assertions.assertEquals(DllUtil.DEFAULT_LIB_64_PATH, canonLibrary.getLibPath().get());\n }\n\n canonLibrary.setArchLibraryToUse(CanonLibrary.ArchLibrary.FORCE_32);\n Assertions.assertEquals(DllUtil.DEFAULT_LIB_32_PATH, canonLibrary.getLibPath().get());\n\n canonLibrary.setArchLibraryToUse(CanonLibrary.ArchLibrary.FORCE_64);\n Assertions.assertEquals(DllUtil.DEFAULT_LIB_64_PATH, canonLibrary.getLibPath().get());\n\n System.setProperty(\"blackdread.cameraframework.library.path\", \"test\");\n Assertions.assertEquals(\"test\", canonLibrary.getLibPath().get());\n }",
"class_method_signature": "CanonLibraryImplTest.getLibPath()",
"constructor": false,
"full_signature": "@Test void getLibPath()",
"identifier": "getLibPath",
"invocations": [
"canonLibrary",
"is64Bit",
"assertEquals",
"get",
"getLibPath",
"setArchLibraryToUse",
"assertEquals",
"get",
"getLibPath",
"setArchLibraryToUse",
"assertEquals",
"get",
"getLibPath",
"setProperty",
"assertEquals",
"get",
"getLibPath"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getLibPath()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonLibraryImpl.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonLibraryImpl.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "LIBRARY_PATH_PROPERTY = \"blackdread.cameraframework.library.path\"",
"modifier": "private static final",
"original_string": "private static final String LIBRARY_PATH_PROPERTY = \"blackdread.cameraframework.library.path\";",
"type": "String",
"var_name": "LIBRARY_PATH_PROPERTY"
},
{
"declarator": "initLibraryLock = new Object()",
"modifier": "private final",
"original_string": "private final Object initLibraryLock = new Object();",
"type": "Object",
"var_name": "initLibraryLock"
},
{
"declarator": "EDSDK = null",
"modifier": "private volatile",
"original_string": "private volatile EdsdkLibrary EDSDK = null;",
"type": "EdsdkLibrary",
"var_name": "EDSDK"
},
{
"declarator": "shutdownHookThread = null",
"modifier": "private",
"original_string": "private Thread shutdownHookThread = null;",
"type": "Thread",
"var_name": "shutdownHookThread"
},
{
"declarator": "archLibraryToUse = ArchLibrary.AUTO",
"modifier": "private",
"original_string": "private ArchLibrary archLibraryToUse = ArchLibrary.AUTO;",
"type": "ArchLibrary",
"var_name": "archLibraryToUse"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonLibraryImpl.java",
"identifier": "CanonLibraryImpl",
"interfaces": "implements CanonLibrary",
"methods": [
{
"class_method_signature": "CanonLibraryImpl.CanonLibraryImpl()",
"constructor": true,
"full_signature": " CanonLibraryImpl()",
"identifier": "CanonLibraryImpl",
"modifiers": "",
"parameters": "()",
"return": "",
"signature": " CanonLibraryImpl()",
"testcase": false
},
{
"class_method_signature": "CanonLibraryImpl.edsdkLibrary()",
"constructor": false,
"full_signature": "@Override public EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonLibraryImpl.getArchLibraryToUse()",
"constructor": false,
"full_signature": "@Override public ArchLibrary getArchLibraryToUse()",
"identifier": "getArchLibraryToUse",
"modifiers": "@Override public",
"parameters": "()",
"return": "ArchLibrary",
"signature": "ArchLibrary getArchLibraryToUse()",
"testcase": false
},
{
"class_method_signature": "CanonLibraryImpl.setArchLibraryToUse(final ArchLibrary archLibraryToUse)",
"constructor": false,
"full_signature": "@Override public void setArchLibraryToUse(final ArchLibrary archLibraryToUse)",
"identifier": "setArchLibraryToUse",
"modifiers": "@Override public",
"parameters": "(final ArchLibrary archLibraryToUse)",
"return": "void",
"signature": "void setArchLibraryToUse(final ArchLibrary archLibraryToUse)",
"testcase": false
},
{
"class_method_signature": "CanonLibraryImpl.getLibPath()",
"constructor": false,
"full_signature": "protected Optional<String> getLibPath()",
"identifier": "getLibPath",
"modifiers": "protected",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getLibPath()",
"testcase": false
},
{
"class_method_signature": "CanonLibraryImpl.initLibrary()",
"constructor": false,
"full_signature": "protected void initLibrary()",
"identifier": "initLibrary",
"modifiers": "protected",
"parameters": "()",
"return": "void",
"signature": "void initLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonLibraryImpl.registerCanonShutdownHook()",
"constructor": false,
"full_signature": "private void registerCanonShutdownHook()",
"identifier": "registerCanonShutdownHook",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void registerCanonShutdownHook()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "protected Optional<String> getLibPath() {\n final String jnaPath = System.getProperty(LIBRARY_PATH_PROPERTY);\n if (jnaPath != null) {\n // user has specified himself the path, we follow what he gave\n return Optional.of(jnaPath);\n }\n\n switch (archLibraryToUse) {\n case AUTO:\n // is64Bit() already checks java runtime with \"sun.arch.data.model\" for 32 or 64\n if (Platform.is64Bit()) {\n log.info(\"Dll auto selected to 64 bit\");\n return Optional.of(DllUtil.DEFAULT_LIB_64_PATH);\n }\n log.info(\"Dll auto selected to 32 bit\");\n return Optional.of(DllUtil.DEFAULT_LIB_32_PATH);\n case FORCE_32:\n log.info(\"Dll forced to 32 bit\");\n return Optional.of(DllUtil.DEFAULT_LIB_32_PATH);\n case FORCE_64:\n log.info(\"Dll forced to 64 bit\");\n return Optional.of(DllUtil.DEFAULT_LIB_64_PATH);\n default:\n throw new IllegalStateException(\"Enum unknown: \" + archLibraryToUse);\n }\n }",
"class_method_signature": "CanonLibraryImpl.getLibPath()",
"constructor": false,
"full_signature": "protected Optional<String> getLibPath()",
"identifier": "getLibPath",
"invocations": [
"getProperty",
"of",
"is64Bit",
"info",
"of",
"info",
"of",
"info",
"of",
"info",
"of"
],
"modifiers": "protected",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getLibPath()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_5 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined countOnly;",
"type": "NameToBeDefined",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined throwRuntime;",
"type": "NameToBeDefined",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined throwBusy;",
"type": "NameToBeDefined",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined throwCommUsbBus;",
"type": "NameToBeDefined",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Runnable runOnError = countRunOnError::incrementAndGet;",
"type": "Runnable",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefinedTest.java",
"identifier": "NameToBeDefinedTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void handle() {\n final AtomicBoolean bo = new AtomicBoolean(false);\n throwRuntime\n .handle(throwable -> {\n bo.set(true);\n });\n\n Assertions.assertTrue(bo.get());\n\n countOnly\n .handle(throwable -> {\n bo.set(false);\n });\n\n Assertions.assertTrue(bo.get());\n }",
"class_method_signature": "NameToBeDefinedTest.handle()",
"constructor": false,
"full_signature": "@Test void handle()",
"identifier": "handle",
"invocations": [
"handle",
"set",
"assertTrue",
"get",
"handle",
"set",
"assertTrue",
"get"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void handle()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "runnable",
"modifier": "private final",
"original_string": "private final Runnable runnable;",
"type": "Runnable",
"var_name": "runnable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined.java",
"identifier": "NameToBeDefined",
"interfaces": "implements Runnable",
"methods": [
{
"class_method_signature": "NameToBeDefined.wrap(final Runnable runnableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined wrap(final Runnable runnableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Runnable runnableToDecorate)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined wrap(final Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.NameToBeDefined(Runnable runnableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined(Runnable runnableToDecorate)",
"identifier": "NameToBeDefined",
"modifiers": "protected",
"parameters": "(Runnable runnableToDecorate)",
"return": "",
"signature": " NameToBeDefined(Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError error)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.run()",
"constructor": false,
"full_signature": "@Override public void run()",
"identifier": "run",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Function<Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(Function<Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, R> function)",
"return": "R",
"signature": "R handle(Function<Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void handle(Consumer<Throwable> consumer) {\n try {\n runnable.run();\n } catch (Throwable t) {\n consumer.accept(t);\n }\n }",
"class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"invocations": [
"run",
"accept"
],
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_62 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setRegisterPropertyEvent() {\n final OpenSessionOption option = builder\n .setCamera(canonCamera)\n .setCameraBySerialNumber(\"adawda\")\n .setRegisterPropertyEvent(true)\n .build();\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.setRegisterPropertyEvent()",
"constructor": false,
"full_signature": "@Test void setRegisterPropertyEvent()",
"identifier": "setRegisterPropertyEvent",
"invocations": [
"build",
"setRegisterPropertyEvent",
"setCameraBySerialNumber",
"setCamera"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setRegisterPropertyEvent()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent) {\n this.registerPropertyEvent = registerPropertyEvent;\n return this;\n }",
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"invocations": [],
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_35 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getExecutionDurationSinceNow() {\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.getExecutionDurationSinceNow());\n\n doNothingCommand.run();\n\n final Duration duration = doNothingCommand.getExecutionDurationSinceNow();\n\n Assertions.assertNotNull(duration);\n }",
"class_method_signature": "AbstractCanonCommandTest.getExecutionDurationSinceNow()",
"constructor": false,
"full_signature": "@Test void getExecutionDurationSinceNow()",
"identifier": "getExecutionDurationSinceNow",
"invocations": [
"assertThrows",
"getExecutionDurationSinceNow",
"run",
"getExecutionDurationSinceNow",
"assertNotNull"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getExecutionDurationSinceNow()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public final void run() {\n throwIfRunAlreadyCalled();\n executionStartTime = currentInstant();\n try {\n // no timeout here, the dispatcher takes care of that\n result = runInternal();\n } catch (InterruptedException e) {\n resultException = e;\n } catch (Exception e) {\n // same as interrupted catch for now\n resultException = e;\n } finally {\n executionEndTime = currentInstant();\n resultBlocker.countDown();\n }\n }",
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"invocations": [
"throwIfRunAlreadyCalled",
"currentInstant",
"runInternal",
"currentInstant",
"countDown"
],
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_101 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getLiveViewLogic() {\n final LiveViewLogic liveViewLogic = CanonFactory.getCanonFactory().getLiveViewLogic();\n assertNotNull(liveViewLogic);\n\n final LiveViewLogic shortcut = CanonFactory.liveViewLogic();\n assertSame(liveViewLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getLiveViewLogic()",
"constructor": false,
"full_signature": "@Test void getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"invocations": [
"getLiveViewLogic",
"getCanonFactory",
"assertNotNull",
"liveViewLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getLiveViewLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public LiveViewLogic getLiveViewLogic() {\n return liveViewLogic;\n }",
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_23 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setTargetRefThrowsOnUnhandled() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> doNothingCommand.setTargetRef(new EdsdkLibrary.EdsBaseRef()));\n }",
"class_method_signature": "AbstractCanonCommandTest.setTargetRefThrowsOnUnhandled()",
"constructor": false,
"full_signature": "@Test void setTargetRefThrowsOnUnhandled()",
"identifier": "setTargetRefThrowsOnUnhandled",
"invocations": [
"assertThrows",
"setTargetRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setTargetRefThrowsOnUnhandled()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef) {\n throwIfRunAlreadyCalled();\n this.targetRef = Objects.requireNonNull(targetRef);\n\n if (targetRef instanceof EdsCameraRef) {\n this.targetRefType = TargetRefType.CAMERA;\n } else if (targetRef instanceof EdsImageRef) {\n this.targetRefType = TargetRefType.IMAGE;\n } else if (targetRef instanceof EdsEvfImageRef) {\n this.targetRefType = TargetRefType.EVF_IMAGE;\n } else if (targetRef instanceof EdsVolumeRef) {\n this.targetRefType = TargetRefType.VOLUME;\n } else if (targetRef instanceof EdsDirectoryItemRef) {\n this.targetRefType = TargetRefType.DIRECTORY_ITEM;\n } else {\n throw new IllegalArgumentException(\"Target ref not supported\");\n }\n return this;\n }",
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"invocations": [
"throwIfRunAlreadyCalled",
"requireNonNull"
],
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_117 | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(ConstantUtilTest.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(ConstantUtilTest.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/constant/ConstantUtilTest.java",
"identifier": "ConstantUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getNativeEnumClassesManuallyIsSameInstance() {\n final Set<? extends Class<? extends NativeEnum>> nativeEnumClassesManually = ConstantUtil.getNativeEnumClassesManually();\n final Set<? extends Class<? extends NativeEnum>> nativeEnumClassesManually2 = ConstantUtil.getNativeEnumClassesManually();\n\n Assertions.assertSame(nativeEnumClassesManually, nativeEnumClassesManually2);\n }",
"class_method_signature": "ConstantUtilTest.getNativeEnumClassesManuallyIsSameInstance()",
"constructor": false,
"full_signature": "@Test void getNativeEnumClassesManuallyIsSameInstance()",
"identifier": "getNativeEnumClassesManuallyIsSameInstance",
"invocations": [
"getNativeEnumClassesManually",
"getNativeEnumClassesManually",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getNativeEnumClassesManuallyIsSameInstance()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(ConstantUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(ConstantUtil.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "NATIVE_ENUM_PACKAGE = EdsAccess.class.getPackage().getName()",
"modifier": "private static final",
"original_string": "private static final String NATIVE_ENUM_PACKAGE = EdsAccess.class.getPackage().getName();",
"type": "String",
"var_name": "NATIVE_ENUM_PACKAGE"
},
{
"declarator": "enumsByValue = new HashMap<>(50)",
"modifier": "private static final",
"original_string": "private static final Map<Class<? extends NativeEnum<Integer>>, Map<Integer, NativeEnum<Integer>>> enumsByValue = new HashMap<>(50);",
"type": "Map<Class<? extends NativeEnum<Integer>>, Map<Integer, NativeEnum<Integer>>>",
"var_name": "enumsByValue"
},
{
"declarator": "NATIVE_ENUM_CLASSES = ImmutableSet.of(\n EdsPropertyEvent.class,\n EdsSeekOrigin.class,\n EdsBracket.class,\n EdsDataType.class,\n EdsTv.class,\n EdsBatteryQuality.class,\n EdsStateEvent.class,\n EdsColorSpace.class,\n EdsStroboMode.class,\n EdsEvfDriveLens.class,\n EdsTargetImageType.class,\n EdsStorageType.class,\n EdsSaveTo.class,\n EdsWhiteBalance.class,\n EdsImageSource.class,\n EdsObjectEvent.class,\n EdsBatteryLevel2.class,\n EdsTonigEffect.class,\n EdsAFMode.class,\n EdsISOSpeed.class,\n EdsCustomFunction.class,\n EdsEvfHistogramStatus.class,\n EdsCameraStatusCommand.class,\n EdsImageQualityForLegacy.class,\n EdsMeteringMode.class,\n EdsAEMode.class,\n EdsEvfAFMode.class,\n EdsAEModeSelect.class,\n EdsFileAttributes.class,\n EdsShutterButton.class,\n EdsETTL2Mode.class,\n EdsFileCreateDisposition.class,\n EdsPhotoEffect.class,\n EdsImageSize.class,\n EdsdkError.class,\n EdsConstant.class,\n EdsExposureCompensation.class,\n EdsColorMatrix.class,\n EdsTransferOption.class,\n EdsEvfDepthOfFieldPreview.class,\n EdsImageType.class,\n EdsAccess.class,\n EdsPropertyID.class,\n EdsDriveMode.class,\n EdsEvfZoom.class,\n EdsProgressOption.class,\n EdsPictureStyle.class,\n EdsFilterEffect.class,\n EdsCompressQuality.class,\n EdsEvfAf.class,\n EdsAv.class,\n EdsEvfOutputDevice.class,\n EdsImageQuality.class,\n EdsCameraCommand.class,\n EdsDcStrobe.class,\n EdsDcLensBarrelState.class,\n EdsDcRemoteShootingMode.class\n )",
"modifier": "private static final",
"original_string": "private static final Set<? extends Class<? extends NativeEnum>> NATIVE_ENUM_CLASSES = ImmutableSet.of(\n EdsPropertyEvent.class,\n EdsSeekOrigin.class,\n EdsBracket.class,\n EdsDataType.class,\n EdsTv.class,\n EdsBatteryQuality.class,\n EdsStateEvent.class,\n EdsColorSpace.class,\n EdsStroboMode.class,\n EdsEvfDriveLens.class,\n EdsTargetImageType.class,\n EdsStorageType.class,\n EdsSaveTo.class,\n EdsWhiteBalance.class,\n EdsImageSource.class,\n EdsObjectEvent.class,\n EdsBatteryLevel2.class,\n EdsTonigEffect.class,\n EdsAFMode.class,\n EdsISOSpeed.class,\n EdsCustomFunction.class,\n EdsEvfHistogramStatus.class,\n EdsCameraStatusCommand.class,\n EdsImageQualityForLegacy.class,\n EdsMeteringMode.class,\n EdsAEMode.class,\n EdsEvfAFMode.class,\n EdsAEModeSelect.class,\n EdsFileAttributes.class,\n EdsShutterButton.class,\n EdsETTL2Mode.class,\n EdsFileCreateDisposition.class,\n EdsPhotoEffect.class,\n EdsImageSize.class,\n EdsdkError.class,\n EdsConstant.class,\n EdsExposureCompensation.class,\n EdsColorMatrix.class,\n EdsTransferOption.class,\n EdsEvfDepthOfFieldPreview.class,\n EdsImageType.class,\n EdsAccess.class,\n EdsPropertyID.class,\n EdsDriveMode.class,\n EdsEvfZoom.class,\n EdsProgressOption.class,\n EdsPictureStyle.class,\n EdsFilterEffect.class,\n EdsCompressQuality.class,\n EdsEvfAf.class,\n EdsAv.class,\n EdsEvfOutputDevice.class,\n EdsImageQuality.class,\n EdsCameraCommand.class,\n EdsDcStrobe.class,\n EdsDcLensBarrelState.class,\n EdsDcRemoteShootingMode.class\n );",
"type": "Set<? extends Class<? extends NativeEnum>>",
"var_name": "NATIVE_ENUM_CLASSES"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/constant/ConstantUtil.java",
"identifier": "ConstantUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "ConstantUtil.ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") // static NativeEnum<Integer> ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value) { static T ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"identifier": "ofValue",
"modifiers": "@SuppressWarnings(\"unchecked\") // static NativeEnum<Integer> ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value) { static",
"parameters": "(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"return": "T",
"signature": "T ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.getNativeEnums()",
"constructor": false,
"full_signature": "static List<NativeEnum> getNativeEnums()",
"identifier": "getNativeEnums",
"modifiers": "static",
"parameters": "()",
"return": "List<NativeEnum>",
"signature": "List<NativeEnum> getNativeEnums()",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.getNativeEnumClasses()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Deprecated static Set<? extends Class<? extends NativeEnum>> getNativeEnumClasses()",
"identifier": "getNativeEnumClasses",
"modifiers": "@SuppressWarnings(\"unchecked\") @Deprecated static",
"parameters": "()",
"return": "Set<? extends Class<? extends NativeEnum>>",
"signature": "Set<? extends Class<? extends NativeEnum>> getNativeEnumClasses()",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.getNativeEnumClassesManually()",
"constructor": false,
"full_signature": "static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"identifier": "getNativeEnumClassesManually",
"modifiers": "static",
"parameters": "()",
"return": "Set<? extends Class<? extends NativeEnum>>",
"signature": "Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.ConstantUtil()",
"constructor": true,
"full_signature": "private ConstantUtil()",
"identifier": "ConstantUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " ConstantUtil()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually() {\n return NATIVE_ENUM_CLASSES;\n }",
"class_method_signature": "ConstantUtil.getNativeEnumClassesManually()",
"constructor": false,
"full_signature": "static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"identifier": "getNativeEnumClassesManually",
"invocations": [],
"modifiers": "static",
"parameters": "()",
"return": "Set<? extends Class<? extends NativeEnum>>",
"signature": "Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_74 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setCameraRef() {\n final EdsdkLibrary.EdsCameraRef edsCameraRef = new EdsdkLibrary.EdsCameraRef();\n cameraDefaultConstructor.setCameraRef(edsCameraRef);\n cameraWithSerialNumber.setCameraRef(edsCameraRef);\n Assertions.assertTrue(cameraDefaultConstructor.getCameraRef().isPresent());\n Assertions.assertTrue(cameraWithSerialNumber.getCameraRef().isPresent());\n\n final EdsdkLibrary.EdsCameraRef edsCameraRef2 = new EdsdkLibrary.EdsCameraRef();\n cameraDefaultConstructor.setCameraRef(edsCameraRef2);\n cameraWithSerialNumber.setCameraRef(edsCameraRef2);\n }",
"class_method_signature": "CanonCameraTest.setCameraRef()",
"constructor": false,
"full_signature": "@Test void setCameraRef()",
"identifier": "setCameraRef",
"invocations": [
"setCameraRef",
"setCameraRef",
"assertTrue",
"isPresent",
"getCameraRef",
"assertTrue",
"isPresent",
"getCameraRef",
"setCameraRef",
"setCameraRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setCameraRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef) {\n this.cameraRef.set(cameraRef);\n return this;\n }",
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"invocations": [
"set"
],
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_58 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setOpenSessionOnly() {\n final OpenSessionOption option = builder\n .setOpenSessionOnly(true)\n .setRegisterObjectEvent(false)\n .setRegisterPropertyEvent(false)\n .setRegisterStateEvent(false)\n .setCameraRef(cameraRef)\n .build();\n Assertions.assertTrue(option.isOpenSessionOnly());\n Assertions.assertTrue(option.getCameraRef().isPresent());\n Assertions.assertFalse(option.getCamera().isPresent());\n Assertions.assertFalse(option.isRegisterObjectEvent());\n Assertions.assertFalse(option.isRegisterPropertyEvent());\n Assertions.assertFalse(option.isRegisterStateEvent());\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.setOpenSessionOnly()",
"constructor": false,
"full_signature": "@Test void setOpenSessionOnly()",
"identifier": "setOpenSessionOnly",
"invocations": [
"build",
"setCameraRef",
"setRegisterStateEvent",
"setRegisterPropertyEvent",
"setRegisterObjectEvent",
"setOpenSessionOnly",
"assertTrue",
"isOpenSessionOnly",
"assertTrue",
"isPresent",
"getCameraRef",
"assertFalse",
"isPresent",
"getCamera",
"assertFalse",
"isRegisterObjectEvent",
"assertFalse",
"isRegisterPropertyEvent",
"assertFalse",
"isRegisterStateEvent"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setOpenSessionOnly()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly) {\n this.openSessionOnly = openSessionOnly;\n return this;\n }",
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"invocations": [],
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_19 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void handleWithReturnValue() {\n final Boolean handle = (Boolean) throwRuntime\n .handle(throwable -> true);\n\n Assertions.assertTrue(handle);\n\n final int count = (int) countOnly\n .handle(throwable -> true);\n\n Assertions.assertEquals(this.count.get() - 1, count);\n }",
"class_method_signature": "NameToBeDefined2Test.handleWithReturnValue()",
"constructor": false,
"full_signature": "@Test void handleWithReturnValue()",
"identifier": "handleWithReturnValue",
"invocations": [
"handle",
"assertTrue",
"handle",
"assertEquals",
"get"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void handleWithReturnValue()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void handle(Consumer<Throwable> consumer) {\n try {\n callable.call();\n } catch (Throwable t) {\n consumer.accept(t);\n }\n }",
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"invocations": [
"call",
"accept"
],
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_2 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined countOnly;",
"type": "NameToBeDefined",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined throwRuntime;",
"type": "NameToBeDefined",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined throwBusy;",
"type": "NameToBeDefined",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined throwCommUsbBus;",
"type": "NameToBeDefined",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Runnable runOnError = countRunOnError::incrementAndGet;",
"type": "Runnable",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefinedTest.java",
"identifier": "NameToBeDefinedTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnError() {\n countOnly.retryOnError(10, EdsdkError.EDS_ERR_DEVICE_BUSY)\n .run();\n assertCounts(1, 0);\n\n\n countOnly.retryOnError(10, EdsdkError.EDS_ERR_DEVICE_BUSY, EdsdkError.EDS_ERR_DEVICE_DISK_ERROR)\n .run();\n assertCounts(2, 0);\n\n\n countOnly.retryOnError(5, 2, EdsdkError.EDS_ERR_DEVICE_BUSY, EdsdkError.EDS_ERR_DEVICE_DISK_ERROR)\n .run();\n assertCounts(3, 0);\n\n\n countOnly.retryOnError(5, 2, EdsdkError.EDS_ERR_DEVICE_DISK_ERROR)\n .run();\n assertCounts(4, 0);\n }",
"class_method_signature": "NameToBeDefinedTest.retryOnError()",
"constructor": false,
"full_signature": "@Test void retryOnError()",
"identifier": "retryOnError",
"invocations": [
"run",
"retryOnError",
"assertCounts",
"run",
"retryOnError",
"assertCounts",
"run",
"retryOnError",
"assertCounts",
"run",
"retryOnError",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnError()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "runnable",
"modifier": "private final",
"original_string": "private final Runnable runnable;",
"type": "Runnable",
"var_name": "runnable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined.java",
"identifier": "NameToBeDefined",
"interfaces": "implements Runnable",
"methods": [
{
"class_method_signature": "NameToBeDefined.wrap(final Runnable runnableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined wrap(final Runnable runnableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Runnable runnableToDecorate)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined wrap(final Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.NameToBeDefined(Runnable runnableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined(Runnable runnableToDecorate)",
"identifier": "NameToBeDefined",
"modifiers": "protected",
"parameters": "(Runnable runnableToDecorate)",
"return": "",
"signature": " NameToBeDefined(Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError error)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.run()",
"constructor": false,
"full_signature": "@Override public void run()",
"identifier": "run",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Function<Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(Function<Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, R> function)",
"return": "R",
"signature": "R handle(Function<Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors) {\n return retryOnError(delayMillis, 0, Collections.singletonList(errors));\n }",
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"invocations": [
"retryOnError",
"singletonList"
],
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_81 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getEvent() {\n Assertions.assertNotNull(cameraDefaultConstructor.getEvent());\n Assertions.assertNotNull(cameraWithSerialNumber.getEvent());\n }",
"class_method_signature": "CanonCameraTest.getEvent()",
"constructor": false,
"full_signature": "@Test void getEvent()",
"identifier": "getEvent",
"invocations": [
"assertNotNull",
"getEvent",
"assertNotNull",
"getEvent"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getEvent()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Event getEvent() {\n return event;\n }",
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_39 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getTimeout() {\n Assertions.assertTrue(doNothingCommand.getTimeout().isPresent());\n }",
"class_method_signature": "AbstractCanonCommandTest.getTimeout()",
"constructor": false,
"full_signature": "@Test void getTimeout()",
"identifier": "getTimeout",
"invocations": [
"assertTrue",
"isPresent",
"getTimeout"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getTimeout()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public Optional<Duration> getTimeout() {\n // TODO get default timeout from global settings\n if (timeout == null) {\n return Optional.of(DEFAULT_TIMEOUT);\n }\n return Optional.of(timeout);\n }",
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"invocations": [
"of",
"of"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_78 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setCommandBuilderReusable() {\n final CommandBuilderReusable.ReusableBuilder<Object> builder = new CommandBuilderReusable.ReusableBuilder<>();\n cameraDefaultConstructor.setCommandBuilderReusable(builder);\n cameraWithSerialNumber.setCommandBuilderReusable(builder);\n Assertions.assertTrue(cameraDefaultConstructor.getCommandBuilderReusable().isPresent());\n Assertions.assertTrue(cameraWithSerialNumber.getCommandBuilderReusable().isPresent());\n }",
"class_method_signature": "CanonCameraTest.setCommandBuilderReusable()",
"constructor": false,
"full_signature": "@Test void setCommandBuilderReusable()",
"identifier": "setCommandBuilderReusable",
"invocations": [
"setCommandBuilderReusable",
"setCommandBuilderReusable",
"assertTrue",
"isPresent",
"getCommandBuilderReusable",
"assertTrue",
"isPresent",
"getCommandBuilderReusable"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setCommandBuilderReusable()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable) {\n this.commandBuilderReusable = commandBuilderReusable;\n }",
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"invocations": [],
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_97 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getPropertyDescShortcutLogic() {\n final PropertyDescShortcutLogic descShortcutLogic = CanonFactory.getCanonFactory().getPropertyDescShortcutLogic();\n assertNotNull(descShortcutLogic);\n\n final PropertyDescShortcutLogic shortcut = CanonFactory.propertyDescShortcutLogic();\n assertSame(descShortcutLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "@Test void getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"invocations": [
"getPropertyDescShortcutLogic",
"getCanonFactory",
"assertNotNull",
"propertyDescShortcutLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getPropertyDescShortcutLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic() {\n return propertyDescShortcutLogic;\n }",
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_54 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private CloseSessionOptionBuilder builder;",
"type": "CloseSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilderTest.java",
"identifier": "CloseSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void build() {\n final CloseSessionOption option = builder\n .setCameraRef(cameraRef)\n .build();\n final String l = option.toString();\n\n }",
"class_method_signature": "CloseSessionOptionBuilderTest.build()",
"constructor": false,
"full_signature": "@Test void build()",
"identifier": "build",
"invocations": [
"build",
"setCameraRef",
"toString"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void build()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "releaseCameraRef = true",
"modifier": "private",
"original_string": "private boolean releaseCameraRef = true;",
"type": "boolean",
"var_name": "releaseCameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilder.java",
"identifier": "CloseSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setReleaseCameraRef(final boolean releaseCameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"identifier": "setReleaseCameraRef",
"modifiers": "public",
"parameters": "(final boolean releaseCameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public CloseSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionOption",
"signature": "CloseSessionOption build()",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CloseSessionOption build() {\n validate();\n return new CloseSessionOption(cameraRef, releaseCameraRef, camera);\n }",
"class_method_signature": "CloseSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public CloseSessionOption build()",
"identifier": "build",
"invocations": [
"validate"
],
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionOption",
"signature": "CloseSessionOption build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_42 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/builder/CommandBuilderReusableTest.java",
"identifier": "CommandBuilderReusableTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void afterBuildRequireToSetAgainCommand() {\n final CommandBuilderReusable.ReusableBuilder<String> builder = new CommandBuilderReusable.ReusableBuilder<>(new DoNothingCommand());\n final CanonCommand<String> canonCommand = builder.build();\n assertNotNull(canonCommand);\n assertThrows(IllegalStateException.class, builder::build);\n }",
"class_method_signature": "CommandBuilderReusableTest.afterBuildRequireToSetAgainCommand()",
"constructor": false,
"full_signature": "@Test void afterBuildRequireToSetAgainCommand()",
"identifier": "afterBuildRequireToSetAgainCommand",
"invocations": [
"build",
"assertNotNull",
"assertThrows"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void afterBuildRequireToSetAgainCommand()",
"testcase": true
} | {
"fields": [
{
"declarator": "canonCommand",
"modifier": "private",
"original_string": "private CanonCommand<R> canonCommand;",
"type": "CanonCommand<R>",
"var_name": "canonCommand"
},
{
"declarator": "decoratedCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratedCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratedCommand"
},
{
"declarator": "decorators = new ArrayList<>(5)",
"modifier": "private final",
"original_string": "private final List<Supplier<DecoratorCommand<R>>> decorators = new ArrayList<>(5);",
"type": "List<Supplier<DecoratorCommand<R>>>",
"var_name": "decorators"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/builder/CommandBuilderReusable.java",
"identifier": "CommandBuilderReusable",
"interfaces": "",
"methods": [
{
"class_method_signature": "CommandBuilderReusable.CommandBuilderReusable()",
"constructor": true,
"full_signature": "public CommandBuilderReusable()",
"identifier": "CommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.CommandBuilderReusable(final CanonCommand<R> canonCommand)",
"constructor": true,
"full_signature": "public CommandBuilderReusable(final CanonCommand<R> canonCommand)",
"identifier": "CommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CanonCommand<R> canonCommand)",
"return": "",
"signature": " CommandBuilderReusable(final CanonCommand<R> canonCommand)",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.getCommandToDecorate()",
"constructor": false,
"full_signature": "protected final CanonCommand<R> getCommandToDecorate()",
"identifier": "getCommandToDecorate",
"modifiers": "protected final",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> getCommandToDecorate()",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.getDecorators()",
"constructor": false,
"full_signature": "protected final List<Supplier<DecoratorCommand<R>>> getDecorators()",
"identifier": "getDecorators",
"modifiers": "protected final",
"parameters": "()",
"return": "List<Supplier<DecoratorCommand<R>>>",
"signature": "List<Supplier<DecoratorCommand<R>>> getDecorators()",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.setCanonCommand(final CanonCommand<R> canonCommand)",
"constructor": false,
"full_signature": "public T setCanonCommand(final CanonCommand<R> canonCommand)",
"identifier": "setCanonCommand",
"modifiers": "public",
"parameters": "(final CanonCommand<R> canonCommand)",
"return": "T",
"signature": "T setCanonCommand(final CanonCommand<R> canonCommand)",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.timeout(final Duration timeout)",
"constructor": false,
"full_signature": "public T timeout(final Duration timeout)",
"identifier": "timeout",
"modifiers": "public",
"parameters": "(final Duration timeout)",
"return": "T",
"signature": "T timeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.withDefaultOnException(final R defaultValue)",
"constructor": false,
"full_signature": "public T withDefaultOnException(final R defaultValue)",
"identifier": "withDefaultOnException",
"modifiers": "public",
"parameters": "(final R defaultValue)",
"return": "T",
"signature": "T withDefaultOnException(final R defaultValue)",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.build()",
"constructor": false,
"full_signature": "public CanonCommand<R> build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> build()",
"testcase": false
},
{
"class_method_signature": "CommandBuilderReusable.self()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected final T self()",
"identifier": "self",
"modifiers": "@SuppressWarnings(\"unchecked\") protected final",
"parameters": "()",
"return": "T",
"signature": "T self()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CanonCommand<R> build() {\n if (canonCommand == null)\n throw new IllegalStateException(\"Canon command must be set\");\n try {\n final List<Supplier<DecoratorCommand<R>>> localDecorators = getDecorators();\n if (localDecorators.isEmpty())\n return canonCommand;\n for (final Supplier<DecoratorCommand<R>> decoratorSupplier : localDecorators) {\n decoratedCommand = decoratorSupplier.get();\n }\n return decoratedCommand;\n } finally {\n canonCommand = null;\n decoratedCommand = null;\n }\n }",
"class_method_signature": "CommandBuilderReusable.build()",
"constructor": false,
"full_signature": "public CanonCommand<R> build()",
"identifier": "build",
"invocations": [
"getDecorators",
"isEmpty",
"get"
],
"modifiers": "public",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_15 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnError() throws Exception {\n countOnly.retryOnError(10, EdsdkError.EDS_ERR_DEVICE_BUSY)\n .call();\n assertCounts(1, 0);\n\n\n countOnly.retryOnError(10, EdsdkError.EDS_ERR_DEVICE_BUSY, EdsdkError.EDS_ERR_DEVICE_DISK_ERROR)\n .call();\n assertCounts(2, 0);\n\n\n countOnly.retryOnError(5, 2, EdsdkError.EDS_ERR_DEVICE_BUSY, EdsdkError.EDS_ERR_DEVICE_DISK_ERROR)\n .call();\n assertCounts(3, 0);\n\n\n countOnly.retryOnError(5, 2, EdsdkError.EDS_ERR_DEVICE_DISK_ERROR)\n .call();\n assertCounts(4, 0);\n }",
"class_method_signature": "NameToBeDefined2Test.retryOnError()",
"constructor": false,
"full_signature": "@Test void retryOnError()",
"identifier": "retryOnError",
"invocations": [
"call",
"retryOnError",
"assertCounts",
"call",
"retryOnError",
"assertCounts",
"call",
"retryOnError",
"assertCounts",
"call",
"retryOnError",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnError()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors) {\n return retryOnError(delayMillis, 0, Collections.singletonList(errors));\n }",
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"invocations": [
"retryOnError",
"singletonList"
],
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_14 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnBusyThrowsOnBadParams() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnBusy(-1, 4));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnBusy(1, -1));\n\n assertCounts(0, 0);\n }",
"class_method_signature": "NameToBeDefined2Test.retryOnBusyThrowsOnBadParams()",
"constructor": false,
"full_signature": "@Test void retryOnBusyThrowsOnBadParams()",
"identifier": "retryOnBusyThrowsOnBadParams",
"invocations": [
"assertThrows",
"retryOnBusy",
"assertThrows",
"retryOnBusy",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnBusyThrowsOnBadParams()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined2<V> retryOnBusy() {\n // can be called many times to add many retries\n return retryOnBusy(DEFAULT_DELAY_MILLIS, 0);\n }",
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"invocations": [
"retryOnBusy"
],
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_43 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/builder/CommandBuilderTest.java",
"identifier": "CommandBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void builderIsNotReusable() {\n final CommandBuilder.SimpleBuilder<String> builder = new CommandBuilder.SimpleBuilder<>(new DoNothingCommand());\n final CanonCommand<String> canonCommand = builder.build();\n assertNotNull(canonCommand);\n assertThrows(IllegalStateException.class, builder::build);\n }",
"class_method_signature": "CommandBuilderTest.builderIsNotReusable()",
"constructor": false,
"full_signature": "@Test void builderIsNotReusable()",
"identifier": "builderIsNotReusable",
"invocations": [
"build",
"assertNotNull",
"assertThrows"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void builderIsNotReusable()",
"testcase": true
} | {
"fields": [
{
"declarator": "canonCommand",
"modifier": "private final",
"original_string": "private final CanonCommand<R> canonCommand;",
"type": "CanonCommand<R>",
"var_name": "canonCommand"
},
{
"declarator": "decoratedCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratedCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratedCommand"
},
{
"declarator": "wasBuilt = false",
"modifier": "private",
"original_string": "private boolean wasBuilt = false;",
"type": "boolean",
"var_name": "wasBuilt"
},
{
"declarator": "decorators = new ArrayList<>(5)",
"modifier": "private final",
"original_string": "private final List<Supplier<DecoratorCommand<R>>> decorators = new ArrayList<>(5);",
"type": "List<Supplier<DecoratorCommand<R>>>",
"var_name": "decorators"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/builder/CommandBuilder.java",
"identifier": "CommandBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "CommandBuilder.CommandBuilder(final CanonCommand<R> canonCommand)",
"constructor": true,
"full_signature": "public CommandBuilder(final CanonCommand<R> canonCommand)",
"identifier": "CommandBuilder",
"modifiers": "public",
"parameters": "(final CanonCommand<R> canonCommand)",
"return": "",
"signature": " CommandBuilder(final CanonCommand<R> canonCommand)",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.getCommandToDecorate()",
"constructor": false,
"full_signature": "protected final CanonCommand<R> getCommandToDecorate()",
"identifier": "getCommandToDecorate",
"modifiers": "protected final",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> getCommandToDecorate()",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.getDecorators()",
"constructor": false,
"full_signature": "protected final List<Supplier<DecoratorCommand<R>>> getDecorators()",
"identifier": "getDecorators",
"modifiers": "protected final",
"parameters": "()",
"return": "List<Supplier<DecoratorCommand<R>>>",
"signature": "List<Supplier<DecoratorCommand<R>>> getDecorators()",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.timeout(final Duration timeout)",
"constructor": false,
"full_signature": "public T timeout(final Duration timeout)",
"identifier": "timeout",
"modifiers": "public",
"parameters": "(final Duration timeout)",
"return": "T",
"signature": "T timeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.withDefaultOnException(final R defaultValue)",
"constructor": false,
"full_signature": "public T withDefaultOnException(final R defaultValue)",
"identifier": "withDefaultOnException",
"modifiers": "public",
"parameters": "(final R defaultValue)",
"return": "T",
"signature": "T withDefaultOnException(final R defaultValue)",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.build()",
"constructor": false,
"full_signature": "public CanonCommand<R> build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> build()",
"testcase": false
},
{
"class_method_signature": "CommandBuilder.self()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected final T self()",
"identifier": "self",
"modifiers": "@SuppressWarnings(\"unchecked\") protected final",
"parameters": "()",
"return": "T",
"signature": "T self()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CanonCommand<R> build() {\n if (wasBuilt)\n throw new IllegalStateException(\"Build has already been called\");\n wasBuilt = true;\n try {\n final List<Supplier<DecoratorCommand<R>>> localDecorators = getDecorators();\n if (localDecorators.isEmpty())\n return canonCommand;\n for (final Supplier<DecoratorCommand<R>> decoratorSupplier : localDecorators) {\n decoratedCommand = decoratorSupplier.get();\n }\n return decoratedCommand;\n } finally {\n decoratedCommand = null;\n decorators.clear();\n }\n }",
"class_method_signature": "CommandBuilder.build()",
"constructor": false,
"full_signature": "public CanonCommand<R> build()",
"identifier": "build",
"invocations": [
"getDecorators",
"isEmpty",
"get",
"clear"
],
"modifiers": "public",
"parameters": "()",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_55 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private CloseSessionOptionBuilder builder;",
"type": "CloseSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilderTest.java",
"identifier": "CloseSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void buildThrowsIfCameraRefNull() {\n Assertions.assertThrows(IllegalStateException.class, () -> builder.build());\n }",
"class_method_signature": "CloseSessionOptionBuilderTest.buildThrowsIfCameraRefNull()",
"constructor": false,
"full_signature": "@Test void buildThrowsIfCameraRefNull()",
"identifier": "buildThrowsIfCameraRefNull",
"invocations": [
"assertThrows",
"build"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void buildThrowsIfCameraRefNull()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "releaseCameraRef = true",
"modifier": "private",
"original_string": "private boolean releaseCameraRef = true;",
"type": "boolean",
"var_name": "releaseCameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilder.java",
"identifier": "CloseSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setReleaseCameraRef(final boolean releaseCameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"identifier": "setReleaseCameraRef",
"modifiers": "public",
"parameters": "(final boolean releaseCameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public CloseSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionOption",
"signature": "CloseSessionOption build()",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CloseSessionOption build() {\n validate();\n return new CloseSessionOption(cameraRef, releaseCameraRef, camera);\n }",
"class_method_signature": "CloseSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public CloseSessionOption build()",
"identifier": "build",
"invocations": [
"validate"
],
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionOption",
"signature": "CloseSessionOption build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_79 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getDefaultTimeout() {\n Assertions.assertFalse(cameraDefaultConstructor.getDefaultTimeout().isPresent());\n Assertions.assertFalse(cameraWithSerialNumber.getDefaultTimeout().isPresent());\n }",
"class_method_signature": "CanonCameraTest.getDefaultTimeout()",
"constructor": false,
"full_signature": "@Test void getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"invocations": [
"assertFalse",
"isPresent",
"getDefaultTimeout",
"assertFalse",
"isPresent",
"getDefaultTimeout"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getDefaultTimeout()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Optional<Duration> getDefaultTimeout() {\n return Optional.ofNullable(defaultTimeout);\n }",
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"invocations": [
"ofNullable"
],
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_96 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getPropertyDescLogic() {\n final PropertyDescLogic propertyDescLogic = CanonFactory.getCanonFactory().getPropertyDescLogic();\n assertNotNull(propertyDescLogic);\n\n final PropertyDescLogic shortcut = CanonFactory.propertyDescLogic();\n assertSame(propertyDescLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getPropertyDescLogic()",
"constructor": false,
"full_signature": "@Test void getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"invocations": [
"getPropertyDescLogic",
"getCanonFactory",
"assertNotNull",
"propertyDescLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getPropertyDescLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public PropertyDescLogic getPropertyDescLogic() {\n return propertyDescLogic;\n }",
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_38 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void get() throws ExecutionException, InterruptedException {\n final GenericCommand<String> command = new GenericCommand<>(() -> \"end\");\n\n command.run();\n\n final String s1 = command.get();\n final String s2 = command.get();\n\n Assertions.assertNotNull(s1);\n Assertions.assertEquals(s1, s2);\n }",
"class_method_signature": "AbstractCanonCommandTest.get()",
"constructor": false,
"full_signature": "@Test void get()",
"identifier": "get",
"invocations": [
"run",
"get",
"get",
"assertNotNull",
"assertEquals"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void get()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public R get() throws InterruptedException, ExecutionException {\n if (executionEndTime != null) {\n if (resultException != null) {\n throw new ExecutionException(resultException);\n }\n return result;\n } else {\n resultBlocker.await();\n if (resultException != null) {\n throw new ExecutionException(resultException);\n }\n return result;\n }\n }",
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"invocations": [
"await"
],
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_80 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setDefaultTimeout() {\n cameraDefaultConstructor.setDefaultTimeout(Duration.ofSeconds(30));\n cameraWithSerialNumber.setDefaultTimeout(Duration.ofSeconds(30));\n Assertions.assertTrue(cameraDefaultConstructor.getDefaultTimeout().isPresent());\n Assertions.assertTrue(cameraWithSerialNumber.getDefaultTimeout().isPresent());\n }",
"class_method_signature": "CanonCameraTest.setDefaultTimeout()",
"constructor": false,
"full_signature": "@Test void setDefaultTimeout()",
"identifier": "setDefaultTimeout",
"invocations": [
"setDefaultTimeout",
"ofSeconds",
"setDefaultTimeout",
"ofSeconds",
"assertTrue",
"isPresent",
"getDefaultTimeout",
"assertTrue",
"isPresent",
"getDefaultTimeout"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setDefaultTimeout()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout) {\n this.defaultTimeout = defaultTimeout;\n return this;\n }",
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"invocations": [],
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_3 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined countOnly;",
"type": "NameToBeDefined",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined throwRuntime;",
"type": "NameToBeDefined",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined throwBusy;",
"type": "NameToBeDefined",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined throwCommUsbBus;",
"type": "NameToBeDefined",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Runnable runOnError = countRunOnError::incrementAndGet;",
"type": "Runnable",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefinedTest.java",
"identifier": "NameToBeDefinedTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnErrorThrowsOnBadParams() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnError(-1, 4));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnError(1, -1));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnError(1, 1, Lists.newArrayList((EdsdkError) null)));\n\n assertCounts(0, 0);\n }",
"class_method_signature": "NameToBeDefinedTest.retryOnErrorThrowsOnBadParams()",
"constructor": false,
"full_signature": "@Test void retryOnErrorThrowsOnBadParams()",
"identifier": "retryOnErrorThrowsOnBadParams",
"invocations": [
"assertThrows",
"retryOnError",
"assertThrows",
"retryOnError",
"assertThrows",
"retryOnError",
"newArrayList",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnErrorThrowsOnBadParams()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "runnable",
"modifier": "private final",
"original_string": "private final Runnable runnable;",
"type": "Runnable",
"var_name": "runnable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined.java",
"identifier": "NameToBeDefined",
"interfaces": "implements Runnable",
"methods": [
{
"class_method_signature": "NameToBeDefined.wrap(final Runnable runnableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined wrap(final Runnable runnableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Runnable runnableToDecorate)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined wrap(final Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.NameToBeDefined(Runnable runnableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined(Runnable runnableToDecorate)",
"identifier": "NameToBeDefined",
"modifiers": "protected",
"parameters": "(Runnable runnableToDecorate)",
"return": "",
"signature": " NameToBeDefined(Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError error)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.run()",
"constructor": false,
"full_signature": "@Override public void run()",
"identifier": "run",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Function<Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(Function<Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, R> function)",
"return": "R",
"signature": "R handle(Function<Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors) {\n return retryOnError(delayMillis, 0, Collections.singletonList(errors));\n }",
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"invocations": [
"retryOnError",
"singletonList"
],
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_18 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void handle() {\n final AtomicBoolean bo = new AtomicBoolean(false);\n throwRuntime\n .handle(throwable -> {\n bo.set(true);\n });\n\n Assertions.assertTrue(bo.get());\n\n countOnly\n .handle(throwable -> {\n bo.set(false);\n });\n\n Assertions.assertTrue(bo.get());\n }",
"class_method_signature": "NameToBeDefined2Test.handle()",
"constructor": false,
"full_signature": "@Test void handle()",
"identifier": "handle",
"invocations": [
"handle",
"set",
"assertTrue",
"get",
"handle",
"set",
"assertTrue",
"get"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void handle()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void handle(Consumer<Throwable> consumer) {\n try {\n callable.call();\n } catch (Throwable t) {\n consumer.accept(t);\n }\n }",
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"invocations": [
"call",
"accept"
],
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_59 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setCameraByIndex() {\n final OpenSessionOption option = builder\n .setCameraBySerialNumber(\"adawda\")\n .setCameraByIndex(5)\n .build();\n Assertions.assertFalse(option.getCameraBySerialNumber().isPresent());\n Assertions.assertTrue(option.getCameraByIndex().isPresent());\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.setCameraByIndex()",
"constructor": false,
"full_signature": "@Test void setCameraByIndex()",
"identifier": "setCameraByIndex",
"invocations": [
"build",
"setCameraByIndex",
"setCameraBySerialNumber",
"assertFalse",
"isPresent",
"getCameraBySerialNumber",
"assertTrue",
"isPresent",
"getCameraByIndex"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setCameraByIndex()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex) {\n this.cameraByIndex = cameraByIndex;\n this.cameraBySerialNumber = null;\n return this;\n }",
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"invocations": [],
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_75 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getSerialNumber() {\n Assertions.assertFalse(cameraDefaultConstructor.getSerialNumber().isPresent());\n Assertions.assertTrue(cameraWithSerialNumber.getSerialNumber().isPresent());\n }",
"class_method_signature": "CanonCameraTest.getSerialNumber()",
"constructor": false,
"full_signature": "@Test void getSerialNumber()",
"identifier": "getSerialNumber",
"invocations": [
"assertFalse",
"isPresent",
"getSerialNumber",
"assertTrue",
"isPresent",
"getSerialNumber"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getSerialNumber()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Optional<String> getSerialNumber() {\n return Optional.ofNullable(serialNumber);\n }",
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"invocations": [
"ofNullable"
],
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_22 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setTargetRef() {\n Assertions.assertThrows(NullPointerException.class, () -> doNothingCommand.setTargetRef(null));\n\n doNothingCommand.setTargetRef(new EdsdkLibrary.EdsCameraRef());\n Assertions.assertEquals(TargetRefType.CAMERA, doNothingCommand.getTargetRefType());\n\n doNothingCommand.setTargetRef(new EdsdkLibrary.EdsImageRef());\n Assertions.assertEquals(TargetRefType.IMAGE, doNothingCommand.getTargetRefType());\n\n doNothingCommand.setTargetRef(new EdsdkLibrary.EdsEvfImageRef());\n Assertions.assertEquals(TargetRefType.EVF_IMAGE, doNothingCommand.getTargetRefType());\n\n doNothingCommand.setTargetRef(new EdsdkLibrary.EdsVolumeRef());\n Assertions.assertEquals(TargetRefType.VOLUME, doNothingCommand.getTargetRefType());\n\n doNothingCommand.setTargetRef(new EdsdkLibrary.EdsDirectoryItemRef());\n Assertions.assertEquals(TargetRefType.DIRECTORY_ITEM, doNothingCommand.getTargetRefType());\n\n Assertions.assertTrue(doNothingCommand.getTargetRef().isPresent());\n }",
"class_method_signature": "AbstractCanonCommandTest.setTargetRef()",
"constructor": false,
"full_signature": "@Test void setTargetRef()",
"identifier": "setTargetRef",
"invocations": [
"assertThrows",
"setTargetRef",
"setTargetRef",
"assertEquals",
"getTargetRefType",
"setTargetRef",
"assertEquals",
"getTargetRefType",
"setTargetRef",
"assertEquals",
"getTargetRefType",
"setTargetRef",
"assertEquals",
"getTargetRefType",
"setTargetRef",
"assertEquals",
"getTargetRefType",
"assertTrue",
"isPresent",
"getTargetRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setTargetRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef) {\n throwIfRunAlreadyCalled();\n this.targetRef = Objects.requireNonNull(targetRef);\n\n if (targetRef instanceof EdsCameraRef) {\n this.targetRefType = TargetRefType.CAMERA;\n } else if (targetRef instanceof EdsImageRef) {\n this.targetRefType = TargetRefType.IMAGE;\n } else if (targetRef instanceof EdsEvfImageRef) {\n this.targetRefType = TargetRefType.EVF_IMAGE;\n } else if (targetRef instanceof EdsVolumeRef) {\n this.targetRefType = TargetRefType.VOLUME;\n } else if (targetRef instanceof EdsDirectoryItemRef) {\n this.targetRefType = TargetRefType.DIRECTORY_ITEM;\n } else {\n throw new IllegalArgumentException(\"Target ref not supported\");\n }\n return this;\n }",
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"invocations": [
"throwIfRunAlreadyCalled",
"requireNonNull"
],
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_116 | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(ConstantUtilTest.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(ConstantUtilTest.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/constant/ConstantUtilTest.java",
"identifier": "ConstantUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getNativeEnumClassesManuallyIsImmutable() {\n final Set<? extends Class<? extends NativeEnum>> nativeEnumClassesManually = ConstantUtil.getNativeEnumClassesManually();\n Assertions.assertThrows(UnsupportedOperationException.class, () -> nativeEnumClassesManually.add(null));\n Assertions.assertThrows(UnsupportedOperationException.class, () -> nativeEnumClassesManually.removeIf(o -> true));\n }",
"class_method_signature": "ConstantUtilTest.getNativeEnumClassesManuallyIsImmutable()",
"constructor": false,
"full_signature": "@Test void getNativeEnumClassesManuallyIsImmutable()",
"identifier": "getNativeEnumClassesManuallyIsImmutable",
"invocations": [
"getNativeEnumClassesManually",
"assertThrows",
"add",
"assertThrows",
"removeIf"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getNativeEnumClassesManuallyIsImmutable()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(ConstantUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(ConstantUtil.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "NATIVE_ENUM_PACKAGE = EdsAccess.class.getPackage().getName()",
"modifier": "private static final",
"original_string": "private static final String NATIVE_ENUM_PACKAGE = EdsAccess.class.getPackage().getName();",
"type": "String",
"var_name": "NATIVE_ENUM_PACKAGE"
},
{
"declarator": "enumsByValue = new HashMap<>(50)",
"modifier": "private static final",
"original_string": "private static final Map<Class<? extends NativeEnum<Integer>>, Map<Integer, NativeEnum<Integer>>> enumsByValue = new HashMap<>(50);",
"type": "Map<Class<? extends NativeEnum<Integer>>, Map<Integer, NativeEnum<Integer>>>",
"var_name": "enumsByValue"
},
{
"declarator": "NATIVE_ENUM_CLASSES = ImmutableSet.of(\n EdsPropertyEvent.class,\n EdsSeekOrigin.class,\n EdsBracket.class,\n EdsDataType.class,\n EdsTv.class,\n EdsBatteryQuality.class,\n EdsStateEvent.class,\n EdsColorSpace.class,\n EdsStroboMode.class,\n EdsEvfDriveLens.class,\n EdsTargetImageType.class,\n EdsStorageType.class,\n EdsSaveTo.class,\n EdsWhiteBalance.class,\n EdsImageSource.class,\n EdsObjectEvent.class,\n EdsBatteryLevel2.class,\n EdsTonigEffect.class,\n EdsAFMode.class,\n EdsISOSpeed.class,\n EdsCustomFunction.class,\n EdsEvfHistogramStatus.class,\n EdsCameraStatusCommand.class,\n EdsImageQualityForLegacy.class,\n EdsMeteringMode.class,\n EdsAEMode.class,\n EdsEvfAFMode.class,\n EdsAEModeSelect.class,\n EdsFileAttributes.class,\n EdsShutterButton.class,\n EdsETTL2Mode.class,\n EdsFileCreateDisposition.class,\n EdsPhotoEffect.class,\n EdsImageSize.class,\n EdsdkError.class,\n EdsConstant.class,\n EdsExposureCompensation.class,\n EdsColorMatrix.class,\n EdsTransferOption.class,\n EdsEvfDepthOfFieldPreview.class,\n EdsImageType.class,\n EdsAccess.class,\n EdsPropertyID.class,\n EdsDriveMode.class,\n EdsEvfZoom.class,\n EdsProgressOption.class,\n EdsPictureStyle.class,\n EdsFilterEffect.class,\n EdsCompressQuality.class,\n EdsEvfAf.class,\n EdsAv.class,\n EdsEvfOutputDevice.class,\n EdsImageQuality.class,\n EdsCameraCommand.class,\n EdsDcStrobe.class,\n EdsDcLensBarrelState.class,\n EdsDcRemoteShootingMode.class\n )",
"modifier": "private static final",
"original_string": "private static final Set<? extends Class<? extends NativeEnum>> NATIVE_ENUM_CLASSES = ImmutableSet.of(\n EdsPropertyEvent.class,\n EdsSeekOrigin.class,\n EdsBracket.class,\n EdsDataType.class,\n EdsTv.class,\n EdsBatteryQuality.class,\n EdsStateEvent.class,\n EdsColorSpace.class,\n EdsStroboMode.class,\n EdsEvfDriveLens.class,\n EdsTargetImageType.class,\n EdsStorageType.class,\n EdsSaveTo.class,\n EdsWhiteBalance.class,\n EdsImageSource.class,\n EdsObjectEvent.class,\n EdsBatteryLevel2.class,\n EdsTonigEffect.class,\n EdsAFMode.class,\n EdsISOSpeed.class,\n EdsCustomFunction.class,\n EdsEvfHistogramStatus.class,\n EdsCameraStatusCommand.class,\n EdsImageQualityForLegacy.class,\n EdsMeteringMode.class,\n EdsAEMode.class,\n EdsEvfAFMode.class,\n EdsAEModeSelect.class,\n EdsFileAttributes.class,\n EdsShutterButton.class,\n EdsETTL2Mode.class,\n EdsFileCreateDisposition.class,\n EdsPhotoEffect.class,\n EdsImageSize.class,\n EdsdkError.class,\n EdsConstant.class,\n EdsExposureCompensation.class,\n EdsColorMatrix.class,\n EdsTransferOption.class,\n EdsEvfDepthOfFieldPreview.class,\n EdsImageType.class,\n EdsAccess.class,\n EdsPropertyID.class,\n EdsDriveMode.class,\n EdsEvfZoom.class,\n EdsProgressOption.class,\n EdsPictureStyle.class,\n EdsFilterEffect.class,\n EdsCompressQuality.class,\n EdsEvfAf.class,\n EdsAv.class,\n EdsEvfOutputDevice.class,\n EdsImageQuality.class,\n EdsCameraCommand.class,\n EdsDcStrobe.class,\n EdsDcLensBarrelState.class,\n EdsDcRemoteShootingMode.class\n );",
"type": "Set<? extends Class<? extends NativeEnum>>",
"var_name": "NATIVE_ENUM_CLASSES"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/constant/ConstantUtil.java",
"identifier": "ConstantUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "ConstantUtil.ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") // static NativeEnum<Integer> ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value) { static T ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"identifier": "ofValue",
"modifiers": "@SuppressWarnings(\"unchecked\") // static NativeEnum<Integer> ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value) { static",
"parameters": "(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"return": "T",
"signature": "T ofValue(final Class<? extends NativeEnum<Integer>> klass, final Integer value)",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.getNativeEnums()",
"constructor": false,
"full_signature": "static List<NativeEnum> getNativeEnums()",
"identifier": "getNativeEnums",
"modifiers": "static",
"parameters": "()",
"return": "List<NativeEnum>",
"signature": "List<NativeEnum> getNativeEnums()",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.getNativeEnumClasses()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Deprecated static Set<? extends Class<? extends NativeEnum>> getNativeEnumClasses()",
"identifier": "getNativeEnumClasses",
"modifiers": "@SuppressWarnings(\"unchecked\") @Deprecated static",
"parameters": "()",
"return": "Set<? extends Class<? extends NativeEnum>>",
"signature": "Set<? extends Class<? extends NativeEnum>> getNativeEnumClasses()",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.getNativeEnumClassesManually()",
"constructor": false,
"full_signature": "static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"identifier": "getNativeEnumClassesManually",
"modifiers": "static",
"parameters": "()",
"return": "Set<? extends Class<? extends NativeEnum>>",
"signature": "Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"testcase": false
},
{
"class_method_signature": "ConstantUtil.ConstantUtil()",
"constructor": true,
"full_signature": "private ConstantUtil()",
"identifier": "ConstantUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " ConstantUtil()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually() {\n return NATIVE_ENUM_CLASSES;\n }",
"class_method_signature": "ConstantUtil.getNativeEnumClassesManually()",
"constructor": false,
"full_signature": "static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"identifier": "getNativeEnumClassesManually",
"invocations": [],
"modifiers": "static",
"parameters": "()",
"return": "Set<? extends Class<? extends NativeEnum>>",
"signature": "Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_34 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void hasExecutionEnded() {\n Assertions.assertFalse(doNothingCommand.hasExecutionEnded());\n\n doNothingCommand.run();\n\n Assertions.assertTrue(doNothingCommand.hasExecutionEnded());\n }",
"class_method_signature": "AbstractCanonCommandTest.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Test void hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"invocations": [
"assertFalse",
"hasExecutionEnded",
"run",
"assertTrue",
"hasExecutionEnded"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void hasExecutionEnded()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public boolean hasExecutionEnded() {\n return executionEndTime != null;\n }",
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_100 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getPropertyGetShortcutLogic() {\n final PropertyGetShortcutLogic getShortcutLogic = CanonFactory.getCanonFactory().getPropertyGetShortcutLogic();\n assertNotNull(getShortcutLogic);\n\n final PropertyGetShortcutLogic shortcut = CanonFactory.propertyGetShortcutLogic();\n assertSame(getShortcutLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "@Test void getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"invocations": [
"getPropertyGetShortcutLogic",
"getCanonFactory",
"assertNotNull",
"propertyGetShortcutLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getPropertyGetShortcutLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic() {\n return propertyGetShortcutLogic;\n }",
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_63 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setRegisterStateEvent() {\n final OpenSessionOption option = builder\n .setCamera(canonCamera)\n .setCameraBySerialNumber(\"adawda\")\n .setRegisterStateEvent(true)\n .build();\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.setRegisterStateEvent()",
"constructor": false,
"full_signature": "@Test void setRegisterStateEvent()",
"identifier": "setRegisterStateEvent",
"invocations": [
"build",
"setRegisterStateEvent",
"setCameraBySerialNumber",
"setCamera"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setRegisterStateEvent()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent) {\n this.registerStateEvent = registerStateEvent;\n return this;\n }",
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"invocations": [],
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_99 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getPropertyGetLogic() {\n final PropertyGetLogic getLogic = CanonFactory.getCanonFactory().getPropertyGetLogic();\n assertNotNull(getLogic);\n\n final PropertyGetLogic shortcut = CanonFactory.propertyGetLogic();\n assertSame(getLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getPropertyGetLogic()",
"constructor": false,
"full_signature": "@Test void getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"invocations": [
"getPropertyGetLogic",
"getCanonFactory",
"assertNotNull",
"propertyGetLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getPropertyGetLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public PropertyGetLogic getPropertyGetLogic() {\n return propertyGetLogic;\n }",
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_76 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setSerialNumber() {\n cameraDefaultConstructor.setSerialNumber(\"adwd16\");\n\n Assertions.assertThrows(IllegalStateException.class, () -> cameraWithSerialNumber.setSerialNumber(\"adwd16\"));\n\n // Cannot change once set\n Assertions.assertThrows(IllegalStateException.class, () -> cameraDefaultConstructor.setSerialNumber(\"adwd16\"));\n }",
"class_method_signature": "CanonCameraTest.setSerialNumber()",
"constructor": false,
"full_signature": "@Test void setSerialNumber()",
"identifier": "setSerialNumber",
"invocations": [
"setSerialNumber",
"assertThrows",
"setSerialNumber",
"assertThrows",
"setSerialNumber"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setSerialNumber()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void setSerialNumber(final String serialNumber) {\n if (this.serialNumber != null) {\n throw new IllegalStateException(\"Serial number is already set, it may not be changed\");\n }\n this.serialNumber = Objects.requireNonNull(serialNumber);\n }",
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"invocations": [
"requireNonNull"
],
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_115 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "stateEvent",
"modifier": "private",
"original_string": "private EdsStateEvent stateEvent;",
"type": "EdsStateEvent",
"var_name": "stateEvent"
},
{
"declarator": "eventData",
"modifier": "private",
"original_string": "private Long eventData;",
"type": "Long",
"var_name": "eventData"
},
{
"declarator": "canonStateEvent",
"modifier": "private",
"original_string": "private CanonStateEventImpl canonStateEvent;",
"type": "CanonStateEventImpl",
"var_name": "canonStateEvent"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImplTest.java",
"identifier": "CanonStateEventImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void toStringOk() {\n Assertions.assertNotNull(canonStateEvent.toString());\n }",
"class_method_signature": "CanonStateEventImplTest.toStringOk()",
"constructor": false,
"full_signature": "@Test void toStringOk()",
"identifier": "toStringOk",
"invocations": [
"assertNotNull",
"toString"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void toStringOk()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private final",
"original_string": "private final EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "stateEvent",
"modifier": "private final",
"original_string": "private final EdsStateEvent stateEvent;",
"type": "EdsStateEvent",
"var_name": "stateEvent"
},
{
"declarator": "inEventData",
"modifier": "private final",
"original_string": "private final long inEventData;",
"type": "long",
"var_name": "inEventData"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImpl.java",
"identifier": "CanonStateEventImpl",
"interfaces": "implements CanonStateEvent",
"methods": [
{
"class_method_signature": "CanonStateEventImpl.CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"constructor": true,
"full_signature": "public CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"identifier": "CanonStateEventImpl",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"return": "",
"signature": " CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.getStateEvent()",
"constructor": false,
"full_signature": "@Override public EdsStateEvent getStateEvent()",
"identifier": "getStateEvent",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsStateEvent",
"signature": "EdsStateEvent getStateEvent()",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.getEventData()",
"constructor": false,
"full_signature": "@Override public long getEventData()",
"identifier": "getEventData",
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getEventData()",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public String toString() {\n return \"CanonStateEventImpl{\" +\n \"cameraRef=\" + cameraRef +\n \", stateEvent=\" + stateEvent +\n \", inEventData=\" + inEventData +\n '}';\n }",
"class_method_signature": "CanonStateEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_21 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void runThrowsOnMultipleCall() {\n doNothingCommand.run();\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.run());\n }",
"class_method_signature": "AbstractCanonCommandTest.runThrowsOnMultipleCall()",
"constructor": false,
"full_signature": "@Test void runThrowsOnMultipleCall()",
"identifier": "runThrowsOnMultipleCall",
"invocations": [
"run",
"assertThrows",
"run"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void runThrowsOnMultipleCall()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public final void run() {\n throwIfRunAlreadyCalled();\n executionStartTime = currentInstant();\n try {\n // no timeout here, the dispatcher takes care of that\n result = runInternal();\n } catch (InterruptedException e) {\n resultException = e;\n } catch (Exception e) {\n // same as interrupted catch for now\n resultException = e;\n } finally {\n executionEndTime = currentInstant();\n resultBlocker.countDown();\n }\n }",
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"invocations": [
"throwIfRunAlreadyCalled",
"currentInstant",
"runInternal",
"currentInstant",
"countDown"
],
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_103 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "propertyEvent",
"modifier": "private",
"original_string": "private EdsPropertyEvent propertyEvent;",
"type": "EdsPropertyEvent",
"var_name": "propertyEvent"
},
{
"declarator": "propertyID",
"modifier": "private",
"original_string": "private EdsPropertyID propertyID;",
"type": "EdsPropertyID",
"var_name": "propertyID"
},
{
"declarator": "inParam",
"modifier": "private",
"original_string": "private Long inParam;",
"type": "Long",
"var_name": "inParam"
},
{
"declarator": "canonPropertyEvent",
"modifier": "private",
"original_string": "private CanonPropertyEventImpl canonPropertyEvent;",
"type": "CanonPropertyEventImpl",
"var_name": "canonPropertyEvent"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImplTest.java",
"identifier": "CanonPropertyEventImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getCameraRef() {\n final EdsCameraRef ref = canonPropertyEvent.getCameraRef();\n Assertions.assertNotNull(ref);\n Assertions.assertEquals(cameraRef, ref);\n Assertions.assertSame(cameraRef, canonPropertyEvent.getCameraRef());\n }",
"class_method_signature": "CanonPropertyEventImplTest.getCameraRef()",
"constructor": false,
"full_signature": "@Test void getCameraRef()",
"identifier": "getCameraRef",
"invocations": [
"getCameraRef",
"assertNotNull",
"assertEquals",
"assertSame",
"getCameraRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getCameraRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private final",
"original_string": "private final EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "propertyEvent",
"modifier": "private final",
"original_string": "private final EdsPropertyEvent propertyEvent;",
"type": "EdsPropertyEvent",
"var_name": "propertyEvent"
},
{
"declarator": "propertyID",
"modifier": "private final",
"original_string": "private final EdsPropertyID propertyID;",
"type": "EdsPropertyID",
"var_name": "propertyID"
},
{
"declarator": "inParam",
"modifier": "private final",
"original_string": "private final long inParam;",
"type": "long",
"var_name": "inParam"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImpl.java",
"identifier": "CanonPropertyEventImpl",
"interfaces": "implements CanonPropertyEvent",
"methods": [
{
"class_method_signature": "CanonPropertyEventImpl.CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"constructor": true,
"full_signature": "public CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"identifier": "CanonPropertyEventImpl",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"return": "",
"signature": " CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getPropertyEvent()",
"constructor": false,
"full_signature": "@Override public EdsPropertyEvent getPropertyEvent()",
"identifier": "getPropertyEvent",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsPropertyEvent",
"signature": "EdsPropertyEvent getPropertyEvent()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getPropertyId()",
"constructor": false,
"full_signature": "@Override public EdsPropertyID getPropertyId()",
"identifier": "getPropertyId",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsPropertyID",
"signature": "EdsPropertyID getPropertyId()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.getInParam()",
"constructor": false,
"full_signature": "@Override public long getInParam()",
"identifier": "getInParam",
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getInParam()",
"testcase": false
},
{
"class_method_signature": "CanonPropertyEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public EdsCameraRef getCameraRef() {\n return cameraRef;\n }",
"class_method_signature": "CanonPropertyEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_37 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getExecutionDurationTotal() {\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.getExecutionDurationTotal());\n\n doNothingCommand.run();\n\n final Duration duration = doNothingCommand.getExecutionDurationTotal();\n\n Assertions.assertNotNull(duration);\n\n }",
"class_method_signature": "AbstractCanonCommandTest.getExecutionDurationTotal()",
"constructor": false,
"full_signature": "@Test void getExecutionDurationTotal()",
"identifier": "getExecutionDurationTotal",
"invocations": [
"assertThrows",
"getExecutionDurationTotal",
"run",
"getExecutionDurationTotal",
"assertNotNull"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getExecutionDurationTotal()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public final void run() {\n throwIfRunAlreadyCalled();\n executionStartTime = currentInstant();\n try {\n // no timeout here, the dispatcher takes care of that\n result = runInternal();\n } catch (InterruptedException e) {\n resultException = e;\n } catch (Exception e) {\n // same as interrupted catch for now\n resultException = e;\n } finally {\n executionEndTime = currentInstant();\n resultBlocker.countDown();\n }\n }",
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"invocations": [
"throwIfRunAlreadyCalled",
"currentInstant",
"runInternal",
"currentInstant",
"countDown"
],
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_60 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setCameraBySerialNumber() {\n final OpenSessionOption option = builder\n .setCameraByIndex(5)\n .setCameraBySerialNumber(\"adawda\")\n .build();\n Assertions.assertTrue(option.getCameraBySerialNumber().isPresent());\n Assertions.assertFalse(option.getCameraByIndex().isPresent());\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.setCameraBySerialNumber()",
"constructor": false,
"full_signature": "@Test void setCameraBySerialNumber()",
"identifier": "setCameraBySerialNumber",
"invocations": [
"build",
"setCameraBySerialNumber",
"setCameraByIndex",
"assertTrue",
"isPresent",
"getCameraBySerialNumber",
"assertFalse",
"isPresent",
"getCameraByIndex"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setCameraBySerialNumber()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber) {\n this.cameraBySerialNumber = cameraBySerialNumber;\n this.cameraByIndex = null;\n return this;\n }",
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"invocations": [],
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_17 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void runOnErrorThrowsOnBadParams() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.runOnError(null, EdsdkError.EDS_ERR_COMM_USB_BUS_ERR));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.runOnError(runOnError, Lists.newArrayList((EdsdkError) null)));\n\n assertCounts(0, 0);\n }",
"class_method_signature": "NameToBeDefined2Test.runOnErrorThrowsOnBadParams()",
"constructor": false,
"full_signature": "@Test void runOnErrorThrowsOnBadParams()",
"identifier": "runOnErrorThrowsOnBadParams",
"invocations": [
"assertThrows",
"runOnError",
"assertThrows",
"runOnError",
"newArrayList",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void runOnErrorThrowsOnBadParams()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error) {\n // can be called many times to add different handlers\n return runOnError(runOnError, Collections.singletonList(error));\n }",
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"invocations": [
"runOnError",
"singletonList"
],
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_40 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setTimeout() {\n final Duration duration = Duration.ofSeconds(5);\n doNothingCommand.setTimeout(duration);\n\n Assertions.assertEquals(duration, doNothingCommand.getTimeout().get());\n Assertions.assertEquals(duration, doNothingCommand.getTimeoutInternal());\n }",
"class_method_signature": "AbstractCanonCommandTest.setTimeout()",
"constructor": false,
"full_signature": "@Test void setTimeout()",
"identifier": "setTimeout",
"invocations": [
"ofSeconds",
"setTimeout",
"assertEquals",
"get",
"getTimeout",
"assertEquals",
"getTimeoutInternal"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setTimeout()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public CanonCommand<R> setTimeout(final Duration timeout) {\n this.timeout = timeout;\n return this;\n }",
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"invocations": [],
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_56 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void buildOkNoChanges() {\n builder.build();\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.buildOkNoChanges()",
"constructor": false,
"full_signature": "@Test void buildOkNoChanges()",
"identifier": "buildOkNoChanges",
"invocations": [
"build"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void buildOkNoChanges()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOption build() {\n// This should be set explicitly by user\n// if (camera != null && cameraRef == null) {\n// camera.getCameraRef().ifPresent(this::setCameraRef);\n// }\n validate();\n return new OpenSessionOption(openSessionOnly, cameraRef, camera, cameraByIndex, cameraBySerialNumber, registerObjectEvent, registerPropertyEvent, registerStateEvent);\n }",
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"invocations": [
"validate"
],
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_95 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getPropertyLogic() {\n final PropertyLogic propertyLogic = CanonFactory.getCanonFactory().getPropertyLogic();\n assertNotNull(propertyLogic);\n\n final PropertyLogic shortcut = CanonFactory.propertyLogic();\n assertSame(propertyLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getPropertyLogic()",
"constructor": false,
"full_signature": "@Test void getPropertyLogic()",
"identifier": "getPropertyLogic",
"invocations": [
"getPropertyLogic",
"getCanonFactory",
"assertNotNull",
"propertyLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getPropertyLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public PropertyLogic getPropertyLogic() {\n return propertyLogic;\n }",
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_83 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getLiveView() {\n Assertions.assertNotNull(cameraDefaultConstructor.getLiveView());\n Assertions.assertNotNull(cameraWithSerialNumber.getLiveView());\n }",
"class_method_signature": "CanonCameraTest.getLiveView()",
"constructor": false,
"full_signature": "@Test void getLiveView()",
"identifier": "getLiveView",
"invocations": [
"assertNotNull",
"getLiveView",
"assertNotNull",
"getLiveView"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getLiveView()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public LiveView getLiveView() {\n return liveView;\n }",
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_0 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined countOnly;",
"type": "NameToBeDefined",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined throwRuntime;",
"type": "NameToBeDefined",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined throwBusy;",
"type": "NameToBeDefined",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined throwCommUsbBus;",
"type": "NameToBeDefined",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Runnable runOnError = countRunOnError::incrementAndGet;",
"type": "Runnable",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefinedTest.java",
"identifier": "NameToBeDefinedTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnBusy() {\n countOnly.retryOnBusy()\n .run();\n assertCounts(1, 0);\n }",
"class_method_signature": "NameToBeDefinedTest.retryOnBusy()",
"constructor": false,
"full_signature": "@Test void retryOnBusy()",
"identifier": "retryOnBusy",
"invocations": [
"run",
"retryOnBusy",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnBusy()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "runnable",
"modifier": "private final",
"original_string": "private final Runnable runnable;",
"type": "Runnable",
"var_name": "runnable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined.java",
"identifier": "NameToBeDefined",
"interfaces": "implements Runnable",
"methods": [
{
"class_method_signature": "NameToBeDefined.wrap(final Runnable runnableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined wrap(final Runnable runnableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Runnable runnableToDecorate)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined wrap(final Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.NameToBeDefined(Runnable runnableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined(Runnable runnableToDecorate)",
"identifier": "NameToBeDefined",
"modifiers": "protected",
"parameters": "(Runnable runnableToDecorate)",
"return": "",
"signature": " NameToBeDefined(Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError error)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.run()",
"constructor": false,
"full_signature": "@Override public void run()",
"identifier": "run",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Function<Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(Function<Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, R> function)",
"return": "R",
"signature": "R handle(Function<Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined retryOnBusy() {\n // can be called many times to add many retries\n return retryOnBusy(DEFAULT_DELAY_MILLIS, 0);\n }",
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"invocations": [
"retryOnBusy"
],
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_1 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined countOnly;",
"type": "NameToBeDefined",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined throwRuntime;",
"type": "NameToBeDefined",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined throwBusy;",
"type": "NameToBeDefined",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined throwCommUsbBus;",
"type": "NameToBeDefined",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Runnable runOnError = countRunOnError::incrementAndGet;",
"type": "Runnable",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefinedTest.java",
"identifier": "NameToBeDefinedTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnBusyThrowsOnBadParams() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnBusy(-1, 4));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnBusy(1, -1));\n\n assertCounts(0, 0);\n }",
"class_method_signature": "NameToBeDefinedTest.retryOnBusyThrowsOnBadParams()",
"constructor": false,
"full_signature": "@Test void retryOnBusyThrowsOnBadParams()",
"identifier": "retryOnBusyThrowsOnBadParams",
"invocations": [
"assertThrows",
"retryOnBusy",
"assertThrows",
"retryOnBusy",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnBusyThrowsOnBadParams()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "runnable",
"modifier": "private final",
"original_string": "private final Runnable runnable;",
"type": "Runnable",
"var_name": "runnable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined.java",
"identifier": "NameToBeDefined",
"interfaces": "implements Runnable",
"methods": [
{
"class_method_signature": "NameToBeDefined.wrap(final Runnable runnableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined wrap(final Runnable runnableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Runnable runnableToDecorate)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined wrap(final Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.NameToBeDefined(Runnable runnableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined(Runnable runnableToDecorate)",
"identifier": "NameToBeDefined",
"modifiers": "protected",
"parameters": "(Runnable runnableToDecorate)",
"return": "",
"signature": " NameToBeDefined(Runnable runnableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError error)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Runnable runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined",
"signature": "NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.run()",
"constructor": false,
"full_signature": "@Override public void run()",
"identifier": "run",
"modifiers": "@Override public",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.handle(Function<Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(Function<Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, R> function)",
"return": "R",
"signature": "R handle(Function<Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined retryOnBusy() {\n // can be called many times to add many retries\n return retryOnBusy(DEFAULT_DELAY_MILLIS, 0);\n }",
"class_method_signature": "NameToBeDefined.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined retryOnBusy()",
"identifier": "retryOnBusy",
"invocations": [
"retryOnBusy"
],
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined",
"signature": "NameToBeDefined retryOnBusy()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_82 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getShoot() {\n Assertions.assertNotNull(cameraDefaultConstructor.getShoot());\n Assertions.assertNotNull(cameraWithSerialNumber.getShoot());\n }",
"class_method_signature": "CanonCameraTest.getShoot()",
"constructor": false,
"full_signature": "@Test void getShoot()",
"identifier": "getShoot",
"invocations": [
"assertNotNull",
"getShoot",
"assertNotNull",
"getShoot"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getShoot()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Shoot getShoot() {\n return shoot;\n }",
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_94 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getCameraLogic() {\n final CameraLogic cameraLogic = CanonFactory.getCanonFactory().getCameraLogic();\n assertNotNull(cameraLogic);\n\n final CameraLogic shortcut = CanonFactory.cameraLogic();\n assertSame(cameraLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getCameraLogic()",
"constructor": false,
"full_signature": "@Test void getCameraLogic()",
"identifier": "getCameraLogic",
"invocations": [
"getCameraLogic",
"getCanonFactory",
"assertNotNull",
"cameraLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getCameraLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CameraLogic getCameraLogic() {\n return cameraLogic;\n }",
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_57 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void defaultValuesAreUnChanged() {\n final OpenSessionOption option = builder.build();\n\n Assertions.assertFalse(option.isOpenSessionOnly());\n Assertions.assertTrue(option.isRegisterStateEvent());\n Assertions.assertTrue(option.isRegisterPropertyEvent());\n Assertions.assertTrue(option.isRegisterObjectEvent());\n Assertions.assertFalse(option.getCamera().isPresent());\n Assertions.assertFalse(option.getCameraRef().isPresent());\n Assertions.assertTrue(option.getCameraByIndex().isPresent());\n Assertions.assertFalse(option.getCameraBySerialNumber().isPresent());\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.defaultValuesAreUnChanged()",
"constructor": false,
"full_signature": "@Test void defaultValuesAreUnChanged()",
"identifier": "defaultValuesAreUnChanged",
"invocations": [
"build",
"assertFalse",
"isOpenSessionOnly",
"assertTrue",
"isRegisterStateEvent",
"assertTrue",
"isRegisterPropertyEvent",
"assertTrue",
"isRegisterObjectEvent",
"assertFalse",
"isPresent",
"getCamera",
"assertFalse",
"isPresent",
"getCameraRef",
"assertTrue",
"isPresent",
"getCameraByIndex",
"assertFalse",
"isPresent",
"getCameraBySerialNumber"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void defaultValuesAreUnChanged()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOption build() {\n// This should be set explicitly by user\n// if (camera != null && cameraRef == null) {\n// camera.getCameraRef().ifPresent(this::setCameraRef);\n// }\n validate();\n return new OpenSessionOption(openSessionOnly, cameraRef, camera, cameraByIndex, cameraBySerialNumber, registerObjectEvent, registerPropertyEvent, registerStateEvent);\n }",
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"invocations": [
"validate"
],
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_41 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getTimeoutInternal() {\n Assertions.assertNotNull(doNothingCommand.getTimeoutInternal());\n }",
"class_method_signature": "AbstractCanonCommandTest.getTimeoutInternal()",
"constructor": false,
"full_signature": "@Test void getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"invocations": [
"assertNotNull",
"getTimeoutInternal"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getTimeoutInternal()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "protected Duration getTimeoutInternal() {\n // TODO get the default timeout from global settings\n if (decoratorCommand == null) {\n return getTimeout()\n .orElse(DEFAULT_TIMEOUT);\n }\n return decoratorCommand.getTimeout()\n .orElse(DEFAULT_TIMEOUT);\n }",
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"invocations": [
"orElse",
"getTimeout",
"orElse",
"getTimeout"
],
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_16 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void retryOnErrorThrowsOnBadParams() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnError(-1, 4));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnError(1, -1));\n Assertions.assertThrows(IllegalArgumentException.class, () -> countOnly.retryOnError(1, 1, Lists.newArrayList((EdsdkError) null)));\n\n assertCounts(0, 0);\n }",
"class_method_signature": "NameToBeDefined2Test.retryOnErrorThrowsOnBadParams()",
"constructor": false,
"full_signature": "@Test void retryOnErrorThrowsOnBadParams()",
"identifier": "retryOnErrorThrowsOnBadParams",
"invocations": [
"assertThrows",
"retryOnError",
"assertThrows",
"retryOnError",
"assertThrows",
"retryOnError",
"newArrayList",
"assertCounts"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void retryOnErrorThrowsOnBadParams()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors) {\n return retryOnError(delayMillis, 0, Collections.singletonList(errors));\n }",
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"invocations": [
"retryOnError",
"singletonList"
],
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_61 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "canonCamera",
"modifier": "private",
"original_string": "private CanonCamera canonCamera;",
"type": "CanonCamera",
"var_name": "canonCamera"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private OpenSessionOptionBuilder builder;",
"type": "OpenSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilderTest.java",
"identifier": "OpenSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setRegisterObjectEvent() {\n final OpenSessionOption option = builder\n .setCamera(canonCamera)\n .setCameraBySerialNumber(\"adawda\")\n .setRegisterObjectEvent(true)\n .build();\n }",
"class_method_signature": "OpenSessionOptionBuilderTest.setRegisterObjectEvent()",
"constructor": false,
"full_signature": "@Test void setRegisterObjectEvent()",
"identifier": "setRegisterObjectEvent",
"invocations": [
"build",
"setRegisterObjectEvent",
"setCameraBySerialNumber",
"setCamera"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setRegisterObjectEvent()",
"testcase": true
} | {
"fields": [
{
"declarator": "openSessionOnly = false",
"modifier": "private",
"original_string": "private boolean openSessionOnly = false;",
"type": "boolean",
"var_name": "openSessionOnly"
},
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
},
{
"declarator": "cameraByIndex = 0",
"modifier": "private",
"original_string": "private Integer cameraByIndex = 0;",
"type": "Integer",
"var_name": "cameraByIndex"
},
{
"declarator": "cameraBySerialNumber",
"modifier": "private",
"original_string": "private String cameraBySerialNumber;",
"type": "String",
"var_name": "cameraBySerialNumber"
},
{
"declarator": "registerObjectEvent = true",
"modifier": "private",
"original_string": "private boolean registerObjectEvent = true;",
"type": "boolean",
"var_name": "registerObjectEvent"
},
{
"declarator": "registerPropertyEvent = true",
"modifier": "private",
"original_string": "private boolean registerPropertyEvent = true;",
"type": "boolean",
"var_name": "registerPropertyEvent"
},
{
"declarator": "registerStateEvent = true",
"modifier": "private",
"original_string": "private boolean registerStateEvent = true;",
"type": "boolean",
"var_name": "registerStateEvent"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/OpenSessionOptionBuilder.java",
"identifier": "OpenSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "OpenSessionOptionBuilder.setOpenSessionOnly(final boolean openSessionOnly)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"identifier": "setOpenSessionOnly",
"modifiers": "public",
"parameters": "(final boolean openSessionOnly)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraByIndex(final Integer cameraByIndex)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"identifier": "setCameraByIndex",
"modifiers": "public",
"parameters": "(final Integer cameraByIndex)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setCameraBySerialNumber(final String cameraBySerialNumber)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"identifier": "setCameraBySerialNumber",
"modifiers": "public",
"parameters": "(final String cameraBySerialNumber)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"identifier": "setRegisterPropertyEvent",
"modifiers": "public",
"parameters": "(final boolean registerPropertyEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.setRegisterStateEvent(final boolean registerStateEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"identifier": "setRegisterStateEvent",
"modifiers": "public",
"parameters": "(final boolean registerStateEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent)",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public OpenSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionOption",
"signature": "OpenSessionOption build()",
"testcase": false
},
{
"class_method_signature": "OpenSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent) {\n this.registerObjectEvent = registerObjectEvent;\n return this;\n }",
"class_method_signature": "OpenSessionOptionBuilder.setRegisterObjectEvent(final boolean registerObjectEvent)",
"constructor": false,
"full_signature": "public OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"identifier": "setRegisterObjectEvent",
"invocations": [],
"modifiers": "public",
"parameters": "(final boolean registerObjectEvent)",
"return": "OpenSessionOptionBuilder",
"signature": "OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_102 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getShootLogic() {\n final ShootLogic shootLogic = CanonFactory.getCanonFactory().getShootLogic();\n assertNotNull(shootLogic);\n\n final ShootLogic shortcut = CanonFactory.shootLogic();\n assertSame(shootLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getShootLogic()",
"constructor": false,
"full_signature": "@Test void getShootLogic()",
"identifier": "getShootLogic",
"invocations": [
"getShootLogic",
"getCanonFactory",
"assertNotNull",
"shootLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getShootLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public ShootLogic getShootLogic() {\n return shootLogic;\n }",
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_36 | {
"fields": [
{
"declarator": "doNothingCommand",
"modifier": "private",
"original_string": "private DoNothingCommand doNothingCommand;",
"type": "DoNothingCommand",
"var_name": "doNothingCommand"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java",
"identifier": "AbstractCanonCommandTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getExecutionDuration() {\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.getExecutionDuration());\n\n doNothingCommand.run();\n\n final Duration duration = doNothingCommand.getExecutionDuration();\n\n Assertions.assertNotNull(duration);\n }",
"class_method_signature": "AbstractCanonCommandTest.getExecutionDuration()",
"constructor": false,
"full_signature": "@Test void getExecutionDuration()",
"identifier": "getExecutionDuration",
"invocations": [
"assertThrows",
"getExecutionDuration",
"run",
"getExecutionDuration",
"assertNotNull"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getExecutionDuration()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)",
"modifier": "protected final",
"original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)",
"modifier": "private static final",
"original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);",
"type": "Duration",
"var_name": "DEFAULT_TIMEOUT"
},
{
"declarator": "createTime = currentInstant()",
"modifier": "private final",
"original_string": "private final Instant createTime = currentInstant();",
"type": "Instant",
"var_name": "createTime"
},
{
"declarator": "executionStartTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionStartTime = null;",
"type": "Instant",
"var_name": "executionStartTime"
},
{
"declarator": "executionEndTime = null",
"modifier": "private volatile",
"original_string": "private volatile Instant executionEndTime = null;",
"type": "Instant",
"var_name": "executionEndTime"
},
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
},
{
"declarator": "targetRef",
"modifier": "private",
"original_string": "private EdsBaseRef targetRef;",
"type": "EdsBaseRef",
"var_name": "targetRef"
},
{
"declarator": "targetRefType",
"modifier": "private",
"original_string": "private TargetRefType targetRefType;",
"type": "TargetRefType",
"var_name": "targetRefType"
},
{
"declarator": "decoratorCommand",
"modifier": "private",
"original_string": "private DecoratorCommand<R> decoratorCommand;",
"type": "DecoratorCommand<R>",
"var_name": "decoratorCommand"
},
{
"declarator": "resultBlocker = new CountDownLatch(1)",
"modifier": "private final",
"original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);",
"type": "CountDownLatch",
"var_name": "resultBlocker"
},
{
"declarator": "result",
"modifier": "private volatile",
"original_string": "private volatile R result;",
"type": "R",
"var_name": "result"
},
{
"declarator": "resultException",
"modifier": "private volatile",
"original_string": "private volatile Throwable resultException;",
"type": "Throwable",
"var_name": "resultException"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java",
"identifier": "AbstractCanonCommand",
"interfaces": "implements CanonCommand<R>, TargetRefCommand<R>",
"methods": [
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()",
"constructor": true,
"full_signature": "protected AbstractCanonCommand()",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " AbstractCanonCommand()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"constructor": true,
"full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"identifier": "AbstractCanonCommand",
"modifiers": "protected",
"parameters": "(final AbstractCanonCommand<R> toCopy)",
"return": "",
"signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.copy()",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()",
"identifier": "copy",
"modifiers": "@SuppressWarnings(\"unchecked\") @Override public",
"parameters": "()",
"return": "AbstractCanonCommand<R>",
"signature": "AbstractCanonCommand<R> copy()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.runInternal()",
"constructor": false,
"full_signature": "protected abstract R runInternal()",
"identifier": "runInternal",
"modifiers": "protected abstract",
"parameters": "()",
"return": "R",
"signature": "R runInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()",
"constructor": false,
"full_signature": "private void throwIfRunAlreadyCalled()",
"identifier": "throwIfRunAlreadyCalled",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void throwIfRunAlreadyCalled()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"identifier": "setTargetRef",
"modifiers": "@Override public",
"parameters": "(final EdsBaseRef targetRef)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRef()",
"constructor": false,
"full_signature": "public final Optional<EdsBaseRef> getTargetRef()",
"identifier": "getTargetRef",
"modifiers": "public final",
"parameters": "()",
"return": "Optional<EdsBaseRef>",
"signature": "Optional<EdsBaseRef> getTargetRef()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefType()",
"constructor": false,
"full_signature": "@Override public TargetRefType getTargetRefType()",
"identifier": "getTargetRefType",
"modifiers": "@Override public",
"parameters": "()",
"return": "TargetRefType",
"signature": "TargetRefType getTargetRefType()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTargetRefInternal()",
"constructor": false,
"full_signature": "protected final EdsBaseRef getTargetRefInternal()",
"identifier": "getTargetRefInternal",
"modifiers": "protected final",
"parameters": "()",
"return": "EdsBaseRef",
"signature": "EdsBaseRef getTargetRefInternal()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getCreateTime()",
"constructor": false,
"full_signature": "@Override public Instant getCreateTime()",
"identifier": "getCreateTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getCreateTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionStartTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionStartTime()",
"identifier": "getExecutionStartTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionStartTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionStarted()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionStarted()",
"identifier": "hasExecutionStarted",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionStarted()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getExecutionEndTime()",
"constructor": false,
"full_signature": "@Override public Instant getExecutionEndTime()",
"identifier": "getExecutionEndTime",
"modifiers": "@Override public",
"parameters": "()",
"return": "Instant",
"signature": "Instant getExecutionEndTime()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.hasExecutionEnded()",
"constructor": false,
"full_signature": "@Override public boolean hasExecutionEnded()",
"identifier": "hasExecutionEnded",
"modifiers": "@Override public",
"parameters": "()",
"return": "boolean",
"signature": "boolean hasExecutionEnded()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.get()",
"constructor": false,
"full_signature": "@Override public R get()",
"identifier": "get",
"modifiers": "@Override public",
"parameters": "()",
"return": "R",
"signature": "R get()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "AbstractCanonCommand.getTimeoutInternal()",
"constructor": false,
"full_signature": "protected Duration getTimeoutInternal()",
"identifier": "getTimeoutInternal",
"modifiers": "protected",
"parameters": "()",
"return": "Duration",
"signature": "Duration getTimeoutInternal()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public final void run() {\n throwIfRunAlreadyCalled();\n executionStartTime = currentInstant();\n try {\n // no timeout here, the dispatcher takes care of that\n result = runInternal();\n } catch (InterruptedException e) {\n resultException = e;\n } catch (Exception e) {\n // same as interrupted catch for now\n resultException = e;\n } finally {\n executionEndTime = currentInstant();\n resultBlocker.countDown();\n }\n }",
"class_method_signature": "AbstractCanonCommand.run()",
"constructor": false,
"full_signature": "@Override public final void run()",
"identifier": "run",
"invocations": [
"throwIfRunAlreadyCalled",
"currentInstant",
"runInternal",
"currentInstant",
"countDown"
],
"modifiers": "@Override public final",
"parameters": "()",
"return": "void",
"signature": "void run()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_114 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "stateEvent",
"modifier": "private",
"original_string": "private EdsStateEvent stateEvent;",
"type": "EdsStateEvent",
"var_name": "stateEvent"
},
{
"declarator": "eventData",
"modifier": "private",
"original_string": "private Long eventData;",
"type": "Long",
"var_name": "eventData"
},
{
"declarator": "canonStateEvent",
"modifier": "private",
"original_string": "private CanonStateEventImpl canonStateEvent;",
"type": "CanonStateEventImpl",
"var_name": "canonStateEvent"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImplTest.java",
"identifier": "CanonStateEventImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getEventData() {\n final long data = canonStateEvent.getEventData();\n Assertions.assertEquals(eventData, data);\n }",
"class_method_signature": "CanonStateEventImplTest.getEventData()",
"constructor": false,
"full_signature": "@Test void getEventData()",
"identifier": "getEventData",
"invocations": [
"getEventData",
"assertEquals"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getEventData()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private final",
"original_string": "private final EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "stateEvent",
"modifier": "private final",
"original_string": "private final EdsStateEvent stateEvent;",
"type": "EdsStateEvent",
"var_name": "stateEvent"
},
{
"declarator": "inEventData",
"modifier": "private final",
"original_string": "private final long inEventData;",
"type": "long",
"var_name": "inEventData"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImpl.java",
"identifier": "CanonStateEventImpl",
"interfaces": "implements CanonStateEvent",
"methods": [
{
"class_method_signature": "CanonStateEventImpl.CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"constructor": true,
"full_signature": "public CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"identifier": "CanonStateEventImpl",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"return": "",
"signature": " CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.getCameraRef()",
"constructor": false,
"full_signature": "@Override public EdsCameraRef getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.getStateEvent()",
"constructor": false,
"full_signature": "@Override public EdsStateEvent getStateEvent()",
"identifier": "getStateEvent",
"modifiers": "@Override public",
"parameters": "()",
"return": "EdsStateEvent",
"signature": "EdsStateEvent getStateEvent()",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.getEventData()",
"constructor": false,
"full_signature": "@Override public long getEventData()",
"identifier": "getEventData",
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getEventData()",
"testcase": false
},
{
"class_method_signature": "CanonStateEventImpl.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "@Override\n public long getEventData() {\n return inEventData;\n }",
"class_method_signature": "CanonStateEventImpl.getEventData()",
"constructor": false,
"full_signature": "@Override public long getEventData()",
"identifier": "getEventData",
"invocations": [],
"modifiers": "@Override public",
"parameters": "()",
"return": "long",
"signature": "long getEventData()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_20 | {
"fields": [
{
"declarator": "countOnly",
"modifier": "private",
"original_string": "private NameToBeDefined2 countOnly;",
"type": "NameToBeDefined2",
"var_name": "countOnly"
},
{
"declarator": "throwRuntime",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwRuntime;",
"type": "NameToBeDefined2",
"var_name": "throwRuntime"
},
{
"declarator": "throwBusy",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwBusy;",
"type": "NameToBeDefined2",
"var_name": "throwBusy"
},
{
"declarator": "throwCommUsbBus",
"modifier": "private",
"original_string": "private NameToBeDefined2 throwCommUsbBus;",
"type": "NameToBeDefined2",
"var_name": "throwCommUsbBus"
},
{
"declarator": "count = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger count = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "count"
},
{
"declarator": "countThrows = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countThrows"
},
{
"declarator": "countRunOnError = new AtomicInteger(0)",
"modifier": "private final",
"original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "countRunOnError"
},
{
"declarator": "runOnError = countRunOnError::incrementAndGet",
"modifier": "private final",
"original_string": "private final Callable<Object> runOnError = countRunOnError::incrementAndGet;",
"type": "Callable<Object>",
"var_name": "runOnError"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefined2Test.java",
"identifier": "NameToBeDefined2Test",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void handleWithBiFunction() {\n final Boolean handle = (Boolean) countOnly\n .handle((value, throwable) -> false);\n\n Assertions.assertFalse(handle);\n\n final Boolean handle2 = (Boolean) throwRuntime\n .handle((value, throwable) -> true);\n\n Assertions.assertTrue(handle2);\n }",
"class_method_signature": "NameToBeDefined2Test.handleWithBiFunction()",
"constructor": false,
"full_signature": "@Test void handleWithBiFunction()",
"identifier": "handleWithBiFunction",
"invocations": [
"handle",
"assertFalse",
"handle",
"assertTrue"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void handleWithBiFunction()",
"testcase": true
} | {
"fields": [
{
"declarator": "DEFAULT_DELAY_MILLIS = 200",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;",
"type": "int",
"var_name": "DEFAULT_DELAY_MILLIS"
},
{
"declarator": "callable",
"modifier": "private final",
"original_string": "private final Callable<V> callable;",
"type": "Callable<V>",
"var_name": "callable"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined2.java",
"identifier": "NameToBeDefined2",
"interfaces": "implements Callable<V>",
"methods": [
{
"class_method_signature": "NameToBeDefined2.wrap(final Callable<V> callableToDecorate)",
"constructor": false,
"full_signature": "public static NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"identifier": "wrap",
"modifiers": "public static",
"parameters": "(final Callable<V> callableToDecorate)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> wrap(final Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.NameToBeDefined2(Callable<V> callableToDecorate)",
"constructor": true,
"full_signature": "protected NameToBeDefined2(Callable<V> callableToDecorate)",
"identifier": "NameToBeDefined2",
"modifiers": "protected",
"parameters": "(Callable<V> callableToDecorate)",
"return": "",
"signature": " NameToBeDefined2(Callable<V> callableToDecorate)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy()",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy()",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "()",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long... delayMillis)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long... delayMillis)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long... delayMillis)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnBusy(final long delayMillis, final int retryTimes)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"identifier": "retryOnBusy",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnBusy(final long delayMillis, final int retryTimes)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"identifier": "retryOnError",
"modifiers": "public",
"parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError error)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError error)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError error)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final EdsdkError... errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final EdsdkError... errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"constructor": false,
"full_signature": "public NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"identifier": "runOnError",
"modifiers": "public",
"parameters": "(final Callable<V> runOnError, final List<EdsdkError> errors)",
"return": "NameToBeDefined2<V>",
"signature": "NameToBeDefined2<V> runOnError(final Callable<V> runOnError, final List<EdsdkError> errors)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.call()",
"constructor": false,
"full_signature": "@Override public V call()",
"identifier": "call",
"modifiers": "@Override public",
"parameters": "()",
"return": "V",
"signature": "V call()",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(Function<Throwable, V> function)",
"constructor": false,
"full_signature": "public V handle(Function<Throwable, V> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(Function<Throwable, V> function)",
"return": "V",
"signature": "V handle(Function<Throwable, V> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.handle(BiFunction<V, Throwable, R> function)",
"constructor": false,
"full_signature": "public R handle(BiFunction<V, Throwable, R> function)",
"identifier": "handle",
"modifiers": "public",
"parameters": "(BiFunction<V, Throwable, R> function)",
"return": "R",
"signature": "R handle(BiFunction<V, Throwable, R> function)",
"testcase": false
},
{
"class_method_signature": "NameToBeDefined2.sleep(final long millis)",
"constructor": false,
"full_signature": "private boolean sleep(final long millis)",
"identifier": "sleep",
"modifiers": "private",
"parameters": "(final long millis)",
"return": "boolean",
"signature": "boolean sleep(final long millis)",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public void handle(Consumer<Throwable> consumer) {\n try {\n callable.call();\n } catch (Throwable t) {\n consumer.accept(t);\n }\n }",
"class_method_signature": "NameToBeDefined2.handle(Consumer<Throwable> consumer)",
"constructor": false,
"full_signature": "public void handle(Consumer<Throwable> consumer)",
"identifier": "handle",
"invocations": [
"call",
"accept"
],
"modifiers": "public",
"parameters": "(Consumer<Throwable> consumer)",
"return": "void",
"signature": "void handle(Consumer<Throwable> consumer)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_98 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java",
"identifier": "CanonFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getPropertySetLogic() {\n final PropertySetLogic setLogic = CanonFactory.getCanonFactory().getPropertySetLogic();\n assertNotNull(setLogic);\n\n final PropertySetLogic shortcut = CanonFactory.propertySetLogic();\n assertSame(setLogic, shortcut);\n }",
"class_method_signature": "CanonFactoryTest.getPropertySetLogic()",
"constructor": false,
"full_signature": "@Test void getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"invocations": [
"getPropertySetLogic",
"getCanonFactory",
"assertNotNull",
"propertySetLogic",
"assertSame"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getPropertySetLogic()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(CanonFactory.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);",
"type": "Logger",
"var_name": "log"
},
{
"declarator": "factoryChangedCount = new AtomicInteger(0)",
"modifier": "private static final",
"original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);",
"type": "AtomicInteger",
"var_name": "factoryChangedCount"
},
{
"declarator": "canonFactory = new CanonFactory()",
"modifier": "private static",
"original_string": "private static CanonFactory canonFactory = new CanonFactory();",
"type": "CanonFactory",
"var_name": "canonFactory"
},
{
"declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()",
"modifier": "private static final",
"original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();",
"type": "CommandDispatcher",
"var_name": "commandDispatcher"
},
{
"declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()",
"modifier": "private static final",
"original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();",
"type": "EventFetcherLogic",
"var_name": "eventFetcherLogic"
},
{
"declarator": "canonLibrary = new CanonLibraryImpl()",
"modifier": "private static final",
"original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();",
"type": "CanonLibrary",
"var_name": "canonLibrary"
},
{
"declarator": "cameraLogic = new CameraLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();",
"type": "CameraLogic",
"var_name": "cameraLogic"
},
{
"declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();",
"type": "CameraAddedEventLogic",
"var_name": "cameraAddedEventLogic"
},
{
"declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();",
"type": "CameraObjectEventLogic",
"var_name": "cameraObjectEventLogic"
},
{
"declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();",
"type": "CameraPropertyEventLogic",
"var_name": "cameraPropertyEventLogic"
},
{
"declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()",
"modifier": "private static final",
"original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();",
"type": "CameraStateEventLogic",
"var_name": "cameraStateEventLogic"
},
{
"declarator": "propertyLogic = new PropertyLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();",
"type": "PropertyLogic",
"var_name": "propertyLogic"
},
{
"declarator": "propertyDescLogic = new PropertyDescLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();",
"type": "PropertyDescLogic",
"var_name": "propertyDescLogic"
},
{
"declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();",
"type": "PropertyDescShortcutLogic",
"var_name": "propertyDescShortcutLogic"
},
{
"declarator": "propertyGetLogic = new PropertyGetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();",
"type": "PropertyGetLogic",
"var_name": "propertyGetLogic"
},
{
"declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();",
"type": "PropertyGetShortcutLogic",
"var_name": "propertyGetShortcutLogic"
},
{
"declarator": "propertySetLogic = new PropertySetLogicDefault()",
"modifier": "private static final",
"original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();",
"type": "PropertySetLogic",
"var_name": "propertySetLogic"
},
{
"declarator": "liveViewLogic = new LiveViewLogicDefault()",
"modifier": "private static final",
"original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();",
"type": "LiveViewLogic",
"var_name": "liveViewLogic"
},
{
"declarator": "shootLogic = new ShootLogicDefault()",
"modifier": "private static final",
"original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();",
"type": "ShootLogic",
"var_name": "shootLogic"
},
{
"declarator": "fileLogic = new FileLogicDefault()",
"modifier": "private static final",
"original_string": "private static final FileLogic fileLogic = new FileLogicDefault();",
"type": "FileLogic",
"var_name": "fileLogic"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java",
"identifier": "CanonFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonFactory.CanonFactory()",
"constructor": true,
"full_signature": "protected CanonFactory()",
"identifier": "CanonFactory",
"modifiers": "protected",
"parameters": "()",
"return": "",
"signature": " CanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonFactory()",
"constructor": false,
"full_signature": "public static CanonFactory getCanonFactory()",
"identifier": "getCanonFactory",
"modifiers": "public static",
"parameters": "()",
"return": "CanonFactory",
"signature": "CanonFactory getCanonFactory()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)",
"constructor": false,
"full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)",
"identifier": "setCanonFactory",
"modifiers": "public static",
"parameters": "(final CanonFactory canonFactory)",
"return": "void",
"signature": "void setCanonFactory(final CanonFactory canonFactory)",
"testcase": false
},
{
"class_method_signature": "CanonFactory.commandDispatcher()",
"constructor": false,
"full_signature": "public static CommandDispatcher commandDispatcher()",
"identifier": "commandDispatcher",
"modifiers": "public static",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher commandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.eventFetcherLogic()",
"constructor": false,
"full_signature": "public static EventFetcherLogic eventFetcherLogic()",
"identifier": "eventFetcherLogic",
"modifiers": "public static",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic eventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.edsdkLibrary()",
"constructor": false,
"full_signature": "public static EdsdkLibrary edsdkLibrary()",
"identifier": "edsdkLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "EdsdkLibrary",
"signature": "EdsdkLibrary edsdkLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.canonLibrary()",
"constructor": false,
"full_signature": "public static CanonLibrary canonLibrary()",
"identifier": "canonLibrary",
"modifiers": "public static",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary canonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraLogic()",
"constructor": false,
"full_signature": "public static CameraLogic cameraLogic()",
"identifier": "cameraLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic cameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraAddedEventLogic()",
"constructor": false,
"full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()",
"identifier": "cameraAddedEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic cameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraObjectEventLogic()",
"constructor": false,
"full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()",
"identifier": "cameraObjectEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic cameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()",
"identifier": "cameraPropertyEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic cameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.cameraStateEventLogic()",
"constructor": false,
"full_signature": "public static CameraStateEventLogic cameraStateEventLogic()",
"identifier": "cameraStateEventLogic",
"modifiers": "public static",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic cameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyLogic()",
"constructor": false,
"full_signature": "public static PropertyLogic propertyLogic()",
"identifier": "propertyLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic propertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescLogic()",
"constructor": false,
"full_signature": "public static PropertyDescLogic propertyDescLogic()",
"identifier": "propertyDescLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic propertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()",
"identifier": "propertyDescShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetLogic()",
"constructor": false,
"full_signature": "public static PropertyGetLogic propertyGetLogic()",
"identifier": "propertyGetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic propertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()",
"identifier": "propertyGetShortcutLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.propertySetLogic()",
"constructor": false,
"full_signature": "public static PropertySetLogic propertySetLogic()",
"identifier": "propertySetLogic",
"modifiers": "public static",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic propertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.liveViewLogic()",
"constructor": false,
"full_signature": "public static LiveViewLogic liveViewLogic()",
"identifier": "liveViewLogic",
"modifiers": "public static",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic liveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.shootLogic()",
"constructor": false,
"full_signature": "public static ShootLogic shootLogic()",
"identifier": "shootLogic",
"modifiers": "public static",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic shootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.fileLogic()",
"constructor": false,
"full_signature": "public static FileLogic fileLogic()",
"identifier": "fileLogic",
"modifiers": "public static",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic fileLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCommandDispatcher()",
"constructor": false,
"full_signature": "public CommandDispatcher getCommandDispatcher()",
"identifier": "getCommandDispatcher",
"modifiers": "public",
"parameters": "()",
"return": "CommandDispatcher",
"signature": "CommandDispatcher getCommandDispatcher()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getEventFetcherLogic()",
"constructor": false,
"full_signature": "public EventFetcherLogic getEventFetcherLogic()",
"identifier": "getEventFetcherLogic",
"modifiers": "public",
"parameters": "()",
"return": "EventFetcherLogic",
"signature": "EventFetcherLogic getEventFetcherLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCanonLibrary()",
"constructor": false,
"full_signature": "public CanonLibrary getCanonLibrary()",
"identifier": "getCanonLibrary",
"modifiers": "public",
"parameters": "()",
"return": "CanonLibrary",
"signature": "CanonLibrary getCanonLibrary()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraLogic()",
"constructor": false,
"full_signature": "public CameraLogic getCameraLogic()",
"identifier": "getCameraLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraLogic",
"signature": "CameraLogic getCameraLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraAddedEventLogic()",
"constructor": false,
"full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()",
"identifier": "getCameraAddedEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraAddedEventLogic",
"signature": "CameraAddedEventLogic getCameraAddedEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraObjectEventLogic()",
"constructor": false,
"full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()",
"identifier": "getCameraObjectEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraObjectEventLogic",
"signature": "CameraObjectEventLogic getCameraObjectEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraPropertyEventLogic()",
"constructor": false,
"full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()",
"identifier": "getCameraPropertyEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraPropertyEventLogic",
"signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getCameraStateEventLogic()",
"constructor": false,
"full_signature": "public CameraStateEventLogic getCameraStateEventLogic()",
"identifier": "getCameraStateEventLogic",
"modifiers": "public",
"parameters": "()",
"return": "CameraStateEventLogic",
"signature": "CameraStateEventLogic getCameraStateEventLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyLogic()",
"constructor": false,
"full_signature": "public PropertyLogic getPropertyLogic()",
"identifier": "getPropertyLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyLogic",
"signature": "PropertyLogic getPropertyLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescLogic()",
"constructor": false,
"full_signature": "public PropertyDescLogic getPropertyDescLogic()",
"identifier": "getPropertyDescLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescLogic",
"signature": "PropertyDescLogic getPropertyDescLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"identifier": "getPropertyDescShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyDescShortcutLogic",
"signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetLogic()",
"constructor": false,
"full_signature": "public PropertyGetLogic getPropertyGetLogic()",
"identifier": "getPropertyGetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetLogic",
"signature": "PropertyGetLogic getPropertyGetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()",
"constructor": false,
"full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"identifier": "getPropertyGetShortcutLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertyGetShortcutLogic",
"signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getLiveViewLogic()",
"constructor": false,
"full_signature": "public LiveViewLogic getLiveViewLogic()",
"identifier": "getLiveViewLogic",
"modifiers": "public",
"parameters": "()",
"return": "LiveViewLogic",
"signature": "LiveViewLogic getLiveViewLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getShootLogic()",
"constructor": false,
"full_signature": "public ShootLogic getShootLogic()",
"identifier": "getShootLogic",
"modifiers": "public",
"parameters": "()",
"return": "ShootLogic",
"signature": "ShootLogic getShootLogic()",
"testcase": false
},
{
"class_method_signature": "CanonFactory.getFileLogic()",
"constructor": false,
"full_signature": "public FileLogic getFileLogic()",
"identifier": "getFileLogic",
"modifiers": "public",
"parameters": "()",
"return": "FileLogic",
"signature": "FileLogic getFileLogic()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public PropertySetLogic getPropertySetLogic() {\n return propertySetLogic;\n }",
"class_method_signature": "CanonFactory.getPropertySetLogic()",
"constructor": false,
"full_signature": "public PropertySetLogic getPropertySetLogic()",
"identifier": "getPropertySetLogic",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "PropertySetLogic",
"signature": "PropertySetLogic getPropertySetLogic()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_77 | {
"fields": [
{
"declarator": "cameraDefaultConstructor",
"modifier": "private",
"original_string": "private CanonCamera cameraDefaultConstructor;",
"type": "CanonCamera",
"var_name": "cameraDefaultConstructor"
},
{
"declarator": "cameraWithSerialNumber",
"modifier": "private",
"original_string": "private CanonCamera cameraWithSerialNumber;",
"type": "CanonCamera",
"var_name": "cameraWithSerialNumber"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java",
"identifier": "CanonCameraTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getCommandBuilderReusable() {\n Assertions.assertFalse(cameraDefaultConstructor.getCommandBuilderReusable().isPresent());\n Assertions.assertFalse(cameraWithSerialNumber.getCommandBuilderReusable().isPresent());\n }",
"class_method_signature": "CanonCameraTest.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "@Test void getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"invocations": [
"assertFalse",
"isPresent",
"getCommandBuilderReusable",
"assertFalse",
"isPresent",
"getCommandBuilderReusable"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getCommandBuilderReusable()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef = new AtomicReference<>()",
"modifier": "private final",
"original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();",
"type": "AtomicReference<EdsCameraRef>",
"var_name": "cameraRef"
},
{
"declarator": "commandBuilderReusable",
"modifier": "private",
"original_string": "private CommandBuilderReusable commandBuilderReusable;",
"type": "CommandBuilderReusable",
"var_name": "commandBuilderReusable"
},
{
"declarator": "lockBuilderUse = new Object()",
"modifier": "private final",
"original_string": "private final Object lockBuilderUse = new Object();",
"type": "Object",
"var_name": "lockBuilderUse"
},
{
"declarator": "defaultTimeout",
"modifier": "private",
"original_string": "private Duration defaultTimeout;",
"type": "Duration",
"var_name": "defaultTimeout"
},
{
"declarator": "event = new Event()",
"modifier": "private final",
"original_string": "private final Event event = new Event();",
"type": "Event",
"var_name": "event"
},
{
"declarator": "shoot = new Shoot()",
"modifier": "private final",
"original_string": "private final Shoot shoot = new Shoot();",
"type": "Shoot",
"var_name": "shoot"
},
{
"declarator": "liveView = new LiveView()",
"modifier": "private final",
"original_string": "private final LiveView liveView = new LiveView();",
"type": "LiveView",
"var_name": "liveView"
},
{
"declarator": "property = new Property()",
"modifier": "private final",
"original_string": "private final Property property = new Property();",
"type": "Property",
"var_name": "property"
},
{
"declarator": "serialNumber",
"modifier": "private",
"original_string": "private String serialNumber;",
"type": "String",
"var_name": "serialNumber"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java",
"identifier": "CanonCamera",
"interfaces": "",
"methods": [
{
"class_method_signature": "CanonCamera.CanonCamera()",
"constructor": true,
"full_signature": "public CanonCamera()",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "()",
"return": "",
"signature": " CanonCamera()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)",
"constructor": true,
"full_signature": "public CanonCamera(final String serialNumber)",
"identifier": "CanonCamera",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "",
"signature": " CanonCamera(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyTarget(final T command)",
"constructor": false,
"full_signature": "protected T applyTarget(final T command)",
"identifier": "applyTarget",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyTarget(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyExtraOptions(final T command)",
"constructor": false,
"full_signature": "protected T applyExtraOptions(final T command)",
"identifier": "applyExtraOptions",
"modifiers": "protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyExtraOptions(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)",
"constructor": false,
"full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)",
"identifier": "applyDefaultCommandDecoration",
"modifiers": "@SuppressWarnings(\"unchecked\") protected",
"parameters": "(final T command)",
"return": "T",
"signature": "T applyDefaultCommandDecoration(final T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.dispatchCommand(T command)",
"constructor": false,
"full_signature": "public T dispatchCommand(T command)",
"identifier": "dispatchCommand",
"modifiers": "public",
"parameters": "(T command)",
"return": "T",
"signature": "T dispatchCommand(T command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRef()",
"constructor": false,
"full_signature": "public Optional<EdsCameraRef> getCameraRef()",
"identifier": "getCameraRef",
"modifiers": "public",
"parameters": "()",
"return": "Optional<EdsCameraRef>",
"signature": "Optional<EdsCameraRef> getCameraRef()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCameraRefInternal()",
"constructor": false,
"full_signature": "protected EdsCameraRef getCameraRefInternal()",
"identifier": "getCameraRefInternal",
"modifiers": "protected",
"parameters": "()",
"return": "EdsCameraRef",
"signature": "EdsCameraRef getCameraRefInternal()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CanonCamera",
"signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getSerialNumber()",
"constructor": false,
"full_signature": "public Optional<String> getSerialNumber()",
"identifier": "getSerialNumber",
"modifiers": "public",
"parameters": "()",
"return": "Optional<String>",
"signature": "Optional<String> getSerialNumber()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)",
"constructor": false,
"full_signature": "public void setSerialNumber(final String serialNumber)",
"identifier": "setSerialNumber",
"modifiers": "public",
"parameters": "(final String serialNumber)",
"return": "void",
"signature": "void setSerialNumber(final String serialNumber)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"constructor": false,
"full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"identifier": "setCommandBuilderReusable",
"modifiers": "public",
"parameters": "(final CommandBuilderReusable commandBuilderReusable)",
"return": "void",
"signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getDefaultTimeout()",
"constructor": false,
"full_signature": "public Optional<Duration> getDefaultTimeout()",
"identifier": "getDefaultTimeout",
"modifiers": "public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getDefaultTimeout()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)",
"constructor": false,
"full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"identifier": "setDefaultTimeout",
"modifiers": "public",
"parameters": "(final Duration defaultTimeout)",
"return": "CanonCamera",
"signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getEvent()",
"constructor": false,
"full_signature": "public Event getEvent()",
"identifier": "getEvent",
"modifiers": "public",
"parameters": "()",
"return": "Event",
"signature": "Event getEvent()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getShoot()",
"constructor": false,
"full_signature": "public Shoot getShoot()",
"identifier": "getShoot",
"modifiers": "public",
"parameters": "()",
"return": "Shoot",
"signature": "Shoot getShoot()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getLiveView()",
"constructor": false,
"full_signature": "public LiveView getLiveView()",
"identifier": "getLiveView",
"modifiers": "public",
"parameters": "()",
"return": "LiveView",
"signature": "LiveView getLiveView()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.getProperty()",
"constructor": false,
"full_signature": "public Property getProperty()",
"identifier": "getProperty",
"modifiers": "public",
"parameters": "()",
"return": "Property",
"signature": "Property getProperty()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final GenericCommand<R> command)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"constructor": false,
"full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"identifier": "sendGenericCommandAsync",
"modifiers": "public",
"parameters": "(final CallableCommand<R> callableCommand)",
"return": "GenericCommand<R>",
"signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"constructor": false,
"full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"identifier": "sendCameraCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraCommand cameraCommand, final long inParam)",
"return": "CameraCommand",
"signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"constructor": false,
"full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"identifier": "sendStatusCommandAsync",
"modifiers": "public",
"parameters": "(final EdsCameraStatusCommand statusCommand)",
"return": "StatusCommand",
"signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.isConnectedAsync()",
"constructor": false,
"full_signature": "public IsConnectedCommand isConnectedAsync()",
"identifier": "isConnectedAsync",
"modifiers": "public",
"parameters": "()",
"return": "IsConnectedCommand",
"signature": "IsConnectedCommand isConnectedAsync()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession()",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession()",
"identifier": "openSession",
"modifiers": "public",
"parameters": "()",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)",
"constructor": false,
"full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)",
"identifier": "openSession",
"modifiers": "public",
"parameters": "(final OpenSessionOption option)",
"return": "OpenSessionCommand",
"signature": "OpenSessionCommand openSession(final OpenSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession()",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession()",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession()",
"testcase": false
},
{
"class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)",
"constructor": false,
"full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)",
"identifier": "closeSession",
"modifiers": "public",
"parameters": "(final CloseSessionOption option)",
"return": "CloseSessionCommand",
"signature": "CloseSessionCommand closeSession(final CloseSessionOption option)",
"testcase": false
},
{
"class_method_signature": "CanonCamera.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier": "toString",
"modifiers": "@Override public",
"parameters": "()",
"return": "String",
"signature": "String toString()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public Optional<CommandBuilderReusable> getCommandBuilderReusable() {\n return Optional.ofNullable(commandBuilderReusable);\n }",
"class_method_signature": "CanonCamera.getCommandBuilderReusable()",
"constructor": false,
"full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"identifier": "getCommandBuilderReusable",
"invocations": [
"ofNullable"
],
"modifiers": "public",
"parameters": "()",
"return": "Optional<CommandBuilderReusable>",
"signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_11 | {
"fields": [],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/LibraryFieldUtilTest.java",
"identifier": "LibraryFieldUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getNativeIntValueThrowsOnNotFound() {\n Assertions.assertThrows(IllegalStateException.class, () -> LibraryFieldUtil.getNativeIntValue(EdsdkLibrary.EdsFileAttributes.class, \"doNoExist\"));\n }",
"class_method_signature": "LibraryFieldUtilTest.getNativeIntValueThrowsOnNotFound()",
"constructor": false,
"full_signature": "@Test void getNativeIntValueThrowsOnNotFound()",
"identifier": "getNativeIntValueThrowsOnNotFound",
"invocations": [
"assertThrows",
"getNativeIntValue"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void getNativeIntValueThrowsOnNotFound()",
"testcase": true
} | {
"fields": [
{
"declarator": "log = LoggerFactory.getLogger(LibraryFieldUtil.class)",
"modifier": "private static final",
"original_string": "private static final Logger log = LoggerFactory.getLogger(LibraryFieldUtil.class);",
"type": "Logger",
"var_name": "log"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/LibraryFieldUtil.java",
"identifier": "LibraryFieldUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "LibraryFieldUtil.getNativeIntValue(final Class klass, final String fieldName)",
"constructor": false,
"full_signature": "public static int getNativeIntValue(final Class klass, final String fieldName)",
"identifier": "getNativeIntValue",
"modifiers": "public static",
"parameters": "(final Class klass, final String fieldName)",
"return": "int",
"signature": "int getNativeIntValue(final Class klass, final String fieldName)",
"testcase": false
},
{
"class_method_signature": "LibraryFieldUtil.countClassField(final Class klass)",
"constructor": false,
"full_signature": "public static int countClassField(final Class klass)",
"identifier": "countClassField",
"modifiers": "public static",
"parameters": "(final Class klass)",
"return": "int",
"signature": "int countClassField(final Class klass)",
"testcase": false
},
{
"class_method_signature": "LibraryFieldUtil.LibraryFieldUtil()",
"constructor": true,
"full_signature": "private LibraryFieldUtil()",
"identifier": "LibraryFieldUtil",
"modifiers": "private",
"parameters": "()",
"return": "",
"signature": " LibraryFieldUtil()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public static int getNativeIntValue(final Class klass, final String fieldName) {\n try {\n final Field field = klass.getField(fieldName);\n return field.getInt(null);\n } catch (NoSuchFieldException | IllegalAccessException e) {\n log.error(\"Failed to get field value for '{}' in {}: {}\", fieldName, klass, e.getMessage());\n throw new IllegalStateException(\"Failed to get field value for '\" + fieldName + \"' from \" + klass.getCanonicalName(), e);\n }\n }",
"class_method_signature": "LibraryFieldUtil.getNativeIntValue(final Class klass, final String fieldName)",
"constructor": false,
"full_signature": "public static int getNativeIntValue(final Class klass, final String fieldName)",
"identifier": "getNativeIntValue",
"invocations": [
"getField",
"getInt",
"error",
"getMessage",
"getCanonicalName"
],
"modifiers": "public static",
"parameters": "(final Class klass, final String fieldName)",
"return": "int",
"signature": "int getNativeIntValue(final Class klass, final String fieldName)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_46 | {
"fields": [
{
"declarator": "command",
"modifier": "private",
"original_string": "private GenericCommand<String> command;",
"type": "GenericCommand<String>",
"var_name": "command"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/impl/TimeoutCommandDecoratorTest.java",
"identifier": "TimeoutCommandDecoratorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setTimeout() {\n final TimeoutCommandDecorator<String> decorator = new TimeoutCommandDecorator<>(command, Duration.ofSeconds(5));\n\n decorator.setTimeout(Duration.ofSeconds(50));\n\n Assertions.assertTrue(decorator.getTimeout().isPresent());\n Assertions.assertEquals(Duration.ofSeconds(50), decorator.getTimeout().get());\n }",
"class_method_signature": "TimeoutCommandDecoratorTest.setTimeout()",
"constructor": false,
"full_signature": "@Test void setTimeout()",
"identifier": "setTimeout",
"invocations": [
"ofSeconds",
"setTimeout",
"ofSeconds",
"assertTrue",
"isPresent",
"getTimeout",
"assertEquals",
"ofSeconds",
"get",
"getTimeout"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setTimeout()",
"testcase": true
} | {
"fields": [
{
"declarator": "timeout",
"modifier": "private",
"original_string": "private Duration timeout;",
"type": "Duration",
"var_name": "timeout"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/impl/TimeoutCommandDecorator.java",
"identifier": "TimeoutCommandDecorator",
"interfaces": "",
"methods": [
{
"class_method_signature": "TimeoutCommandDecorator.TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout)",
"constructor": true,
"full_signature": "public TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout)",
"identifier": "TimeoutCommandDecorator",
"modifiers": "public",
"parameters": "(final CanonCommand<R> delegate, final Duration timeout)",
"return": "",
"signature": " TimeoutCommandDecorator(final CanonCommand<R> delegate, final Duration timeout)",
"testcase": false
},
{
"class_method_signature": "TimeoutCommandDecorator.TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"constructor": true,
"full_signature": "public TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"identifier": "TimeoutCommandDecorator",
"modifiers": "public",
"parameters": "(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"return": "",
"signature": " TimeoutCommandDecorator(final FakeClassArgument fake, final TimeoutCommandDecorator<R> toCopy)",
"testcase": false
},
{
"class_method_signature": "TimeoutCommandDecorator.getTimeout()",
"constructor": false,
"full_signature": "@Override public Optional<Duration> getTimeout()",
"identifier": "getTimeout",
"modifiers": "@Override public",
"parameters": "()",
"return": "Optional<Duration>",
"signature": "Optional<Duration> getTimeout()",
"testcase": false
},
{
"class_method_signature": "TimeoutCommandDecorator.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
}
],
"superclass": "extends AbstractDecoratorCommand<R>"
} | {
"body": "@Override\n public CanonCommand<R> setTimeout(final Duration timeout) {\n this.timeout = Objects.requireNonNull(timeout);\n return this;\n }",
"class_method_signature": "TimeoutCommandDecorator.setTimeout(final Duration timeout)",
"constructor": false,
"full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)",
"identifier": "setTimeout",
"invocations": [
"requireNonNull"
],
"modifiers": "@Override public",
"parameters": "(final Duration timeout)",
"return": "CanonCommand<R>",
"signature": "CanonCommand<R> setTimeout(final Duration timeout)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
150677892_50 | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;",
"type": "EdsdkLibrary.EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "builder",
"modifier": "private",
"original_string": "private CloseSessionOptionBuilder builder;",
"type": "CloseSessionOptionBuilder",
"var_name": "builder"
}
],
"file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilderTest.java",
"identifier": "CloseSessionOptionBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void setCameraRef() {\n final CloseSessionOption option = builder\n .setCameraRef(cameraRef)\n .build();\n Assertions.assertNotNull(option.getCameraRef());\n Assertions.assertFalse(option.getCamera().isPresent());\n Assertions.assertTrue(option.isReleaseCameraRef());\n }",
"class_method_signature": "CloseSessionOptionBuilderTest.setCameraRef()",
"constructor": false,
"full_signature": "@Test void setCameraRef()",
"identifier": "setCameraRef",
"invocations": [
"build",
"setCameraRef",
"assertNotNull",
"getCameraRef",
"assertFalse",
"isPresent",
"getCamera",
"assertTrue",
"isReleaseCameraRef"
],
"modifiers": "@Test",
"parameters": "()",
"return": "void",
"signature": "void setCameraRef()",
"testcase": true
} | {
"fields": [
{
"declarator": "cameraRef",
"modifier": "private",
"original_string": "private EdsCameraRef cameraRef;",
"type": "EdsCameraRef",
"var_name": "cameraRef"
},
{
"declarator": "releaseCameraRef = true",
"modifier": "private",
"original_string": "private boolean releaseCameraRef = true;",
"type": "boolean",
"var_name": "releaseCameraRef"
},
{
"declarator": "camera",
"modifier": "private",
"original_string": "private CanonCamera camera;",
"type": "CanonCamera",
"var_name": "camera"
}
],
"file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilder.java",
"identifier": "CloseSessionOptionBuilder",
"interfaces": "",
"methods": [
{
"class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setReleaseCameraRef(final boolean releaseCameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"identifier": "setReleaseCameraRef",
"modifiers": "public",
"parameters": "(final boolean releaseCameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.setCamera(final CanonCamera camera)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"identifier": "setCamera",
"modifiers": "public",
"parameters": "(final CanonCamera camera)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCamera(final CanonCamera camera)",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.build()",
"constructor": false,
"full_signature": "public CloseSessionOption build()",
"identifier": "build",
"modifiers": "public",
"parameters": "()",
"return": "CloseSessionOption",
"signature": "CloseSessionOption build()",
"testcase": false
},
{
"class_method_signature": "CloseSessionOptionBuilder.validate()",
"constructor": false,
"full_signature": "private void validate()",
"identifier": "validate",
"modifiers": "private",
"parameters": "()",
"return": "void",
"signature": "void validate()",
"testcase": false
}
],
"superclass": ""
} | {
"body": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef) {\n this.cameraRef = Objects.requireNonNull(cameraRef);\n return this;\n }",
"class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)",
"constructor": false,
"full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"identifier": "setCameraRef",
"invocations": [
"requireNonNull"
],
"modifiers": "public",
"parameters": "(final EdsCameraRef cameraRef)",
"return": "CloseSessionOptionBuilder",
"signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)",
"testcase": false
} | {
"created": "9/28/2018 3:00:04 AM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 150677892,
"size": null,
"stargazer_count": null,
"stars": 37,
"updates": "2020-01-23T02:16:48+00:00",
"url": "https://github.com/Blackdread/canon-sdk-java"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.