id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
17505473_17
{ "fields": [ { "declarator": "processor = new JavaPropertyNameProcessor()", "modifier": "private", "original_string": "private JavaPropertyNameProcessor processor = new JavaPropertyNameProcessor();", "type": "JavaPropertyNameProcessor", "var_name": "processor" } ], "file": "...
{ "body": "@Test\n public void testProcessPropertyName() {\n assertEquals(null, processor.processPropertyName(null, null));\n assertEquals(\"\", processor.processPropertyName(null, \"\"));\n\n assertEquals(\"aaa\", processor.processPropertyName(null, \"aaa\"));\n assertEquals(\"aaaBbb\"...
{ "fields": [], "file": "auto-project/auto-zabbix/src/main/java/jp/primecloud/auto/zabbix/util/JavaPropertyNameProcessor.java", "identifier": "JavaPropertyNameProcessor", "interfaces": "implements PropertyNameProcessor", "methods": [ { "class_method_signature": "JavaPropertyNameProcessor.processProp...
{ "body": "@Override\n @SuppressWarnings(\"rawtypes\")\n public String processPropertyName(Class beanClass, String name) {\n if (name == null || name.length() == 0) {\n return name;\n }\n\n name = name.toLowerCase(Locale.ENGLISH);\n String[] array = name.split(\"_\");\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17505473, "size": 18077, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/primecloud-controller-org/primecloud-controller" }
17505473_6
{ "fields": [], "file": "auto-project/auto-common/src/test/java/jp/primecloud/auto/util/CommandUtilsTest.java", "identifier": "CommandUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void testExecute() {\n List<String> commands = new ArrayList<String>();\n commands.add(\"C:\\\\WINDOWS\\\\system32\\\\ping.exe\");\n commands.add(\"localhost\");\n\n CommandResult result = CommandUtils.execute(commands);\n\n assertEquals(0, ...
{ "fields": [], "file": "auto-project/auto-common/src/main/java/jp/primecloud/auto/util/CommandUtils.java", "identifier": "CommandUtils", "interfaces": "", "methods": [ { "class_method_signature": "CommandUtils.CommandUtils()", "constructor": true, "full_signature": "private CommandUtil...
{ "body": "public static CommandResult execute(List<String> commands) {\n return execute(commands, 10000);\n }", "class_method_signature": "CommandUtils.execute(List<String> commands)", "constructor": false, "full_signature": "public static CommandResult execute(List<String> commands)", "identifier"...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17505473, "size": 18077, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/primecloud-controller-org/primecloud-controller" }
17505473_56
{ "fields": [ { "declarator": "log = LogFactory.getLog(UsergroupClientTest.class)", "modifier": "private", "original_string": "private Log log = LogFactory.getLog(UsergroupClientTest.class);", "type": "Log", "var_name": "log" }, { "declarator": "client", "modifier...
{ "body": "@Test\n public void testUpdateIllegalArgument() {\n // usrgrpidを指定していない場合\n UsergroupUpdateParam param = new UsergroupUpdateParam();\n\n try {\n client.usergroup().update(param);\n fail();\n } catch (IllegalArgumentException ignore) {\n log.tr...
{ "fields": [ { "declarator": "accessor", "modifier": "protected", "original_string": "protected ZabbixAccessor accessor;", "type": "ZabbixAccessor", "var_name": "accessor" }, { "declarator": "defaultConfig", "modifier": "protected", "original_string": "prot...
{ "body": "@SuppressWarnings(\"unchecked\")\n public List<String> update(UsergroupUpdateParam param) {\n if (param.getUsrgrpid() == null || param.getUsrgrpid().length() == 0) {\n throw new IllegalArgumentException(\"usrgrpid is required.\");\n }\n\n JSONObject params = JSONObject.fr...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17505473, "size": 18077, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/primecloud-controller-org/primecloud-controller" }
17505473_21
{ "fields": [ { "declarator": "log = LogFactory.getLog(ItemClientTest.class)", "modifier": "private", "original_string": "private Log log = LogFactory.getLog(ItemClientTest.class);", "type": "Log", "var_name": "log" }, { "declarator": "client", "modifier": "privat...
{ "body": "@Test\n public void testGetAll() {\n // 全件取得\n ItemGetParam param = new ItemGetParam();\n param.setHostids(Arrays.asList(\"10001\"));\n param.setOutput(\"extend\");\n\n List<Item> items = client.item().get(param);\n for (Item item : items) {\n log.tra...
{ "fields": [ { "declarator": "accessor", "modifier": "protected", "original_string": "protected ZabbixAccessor accessor;", "type": "ZabbixAccessor", "var_name": "accessor" }, { "declarator": "defaultConfig", "modifier": "protected", "original_string": "prot...
{ "body": "@SuppressWarnings(\"unchecked\")\n public List<Item> get(ItemGetParam param) {\n JSONObject params = JSONObject.fromObject(param, defaultConfig);\n JSONArray result = (JSONArray) accessor.execute(\"item.get\", params);\n\n JsonConfig config = defaultConfig.copy();\n config.se...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17505473, "size": 18077, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/primecloud-controller-org/primecloud-controller" }
17505473_76
{ "fields": [ { "declarator": "client", "modifier": "private", "original_string": "private VmwareClient client;", "type": "VmwareClient", "var_name": "client" } ], "file": "auto-project/auto-vmware/src/test/java/jp/primecloud/auto/vmware/VmwareClientTest.java", "identifier"...
{ "body": "@Test\n @Ignore\n public void testSearch() {\n System.out.println(\"===== DataCenter =====\");\n ManagedEntity[] datacenters = client.searchByType(Datacenter.class);\n for (ManagedEntity entity : datacenters) {\n Datacenter datacenter = Datacenter.class.cast(entity);\n...
{ "fields": [ { "declarator": "url", "modifier": "private", "original_string": "private String url;", "type": "String", "var_name": "url" }, { "declarator": "username", "modifier": "private", "original_string": "private String username;", "type": "Stri...
{ "body": "public <T extends ManagedEntity> T search(Class<T> type, String name) {\n return search(getRootEntity(), type, name);\n }", "class_method_signature": "VmwareClient.search(Class<T> type, String name)", "constructor": false, "full_signature": "public T search(Class<T> type, String name)", "...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17505473, "size": 18077, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/primecloud-controller-org/primecloud-controller" }
17505473_60
{ "fields": [ { "declarator": "log = LogFactory.getLog(UsergroupClientTest.class)", "modifier": "private", "original_string": "private Log log = LogFactory.getLog(UsergroupClientTest.class);", "type": "Log", "var_name": "log" }, { "declarator": "client", "modifier...
{ "body": "@Test\n public void testMassAdd() {\n // 事前準備\n String userid;\n {\n UserCreateParam param = new UserCreateParam();\n param.setAlias(\"alias1\");\n param.setPasswd(\"passwd1\");\n Usergroup usergroup = new Usergroup();\n usergro...
{ "fields": [ { "declarator": "accessor", "modifier": "protected", "original_string": "protected ZabbixAccessor accessor;", "type": "ZabbixAccessor", "var_name": "accessor" }, { "declarator": "defaultConfig", "modifier": "protected", "original_string": "prot...
{ "body": "public List<String> massAdd(UsergroupMassAddParam param) {\n if (param.getUserids() == null || param.getUserids().isEmpty()) {\n throw new IllegalArgumentException(\"userids is required.\");\n }\n if (param.getUsrgrpids() == null || param.getUsrgrpids().isEmpty()) {\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17505473, "size": 18077, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/primecloud-controller-org/primecloud-controller" }
17505473_37
{ "fields": [ { "declarator": "log = LogFactory.getLog(TriggerClientTest.class)", "modifier": "private", "original_string": "private Log log = LogFactory.getLog(TriggerClientTest.class);", "type": "Log", "var_name": "log" }, { "declarator": "client", "modifier": "...
{ "body": "@Test\n public void testGet() {\n // itemidを指定して取得\n TriggerGetParam param = new TriggerGetParam();\n param.setTriggerids(Arrays.asList(\"10010\", \"10011\"));\n param.setOutput(\"extend\");\n\n List<Trigger> triggers = client.trigger().get(param);\n\n assertEqu...
{ "fields": [ { "declarator": "accessor", "modifier": "protected", "original_string": "protected ZabbixAccessor accessor;", "type": "ZabbixAccessor", "var_name": "accessor" }, { "declarator": "defaultConfig", "modifier": "protected", "original_string": "prot...
{ "body": "@SuppressWarnings(\"unchecked\")\n public List<Trigger> get(TriggerGetParam param) {\n JSONObject params = JSONObject.fromObject(param, defaultConfig);\n JSONArray result = (JSONArray) accessor.execute(\"trigger.get\", params);\n\n JsonConfig config = defaultConfig.copy();\n ...
{ "created": null, "fork": null, "fork_count": 14, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17505473, "size": 18077, "stargazer_count": 19, "stars": null, "updates": null, "url": "https://github.com/primecloud-controller-org/primecloud-controller" }
19169174_23
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testHead() {\n\t\tfinal Request<Void> request = Rest.all(RESOURCE_ROUTE_USERS)\n\t\t\t\t.head().request();\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.HEAD, request.getMethod());\n\t}", "class_method_signature": "RestTest.testHead()", "const...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_35
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetAllFromElement() {\n\t\tfinal Request<List<Object>> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.getList() // Transverse REST tree up to collection level\n\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t}...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_19
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetAll() {\n\t\tfinal Request<List<Object>> request = Rest.all(RESOURCE_ROUTE_USERS)\n\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.GET, request.getMethod());\n\t}", "class_method_signature": "RestTest.t...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_39
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetSingleChainingWithString() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS)\n\t\t\t\t.one(RESOURCE_ROUTE_USER_NAME, RESOURCE_VALUE_USER_NAME)\n\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_ROUTE_USER_NAME\n\t\t\t+ \...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_0
{ "fields": [ { "declarator": "imageLoader", "modifier": "private", "original_string": "private NullSafeImageLoader imageLoader;", "type": "NullSafeImageLoader", "var_name": "imageLoader" }, { "declarator": "queue", "modifier": "private", "original_string": ...
{ "body": "@Test\n\tpublic void testGetNull() {\n\t\tfinal ImageLoader.ImageListener listener = mock(ImageLoader.ImageListener.class);\n\n\t\timageLoader.get(null, listener, 0, 0);\n\n\t\tverify(listener).onResponse(any(ImageLoader.ImageContainer.class), eq(true));\n\t}", "class_method_signature": "NullSafeImageLoa...
{ "fields": [], "file": "volley-requests/src/main/java/com/monits/volleyrequests/network/NullSafeImageLoader.java", "identifier": "NullSafeImageLoader", "interfaces": "", "methods": [ { "class_method_signature": "NullSafeImageLoader.NullSafeImageLoader(@NonNull final RequestQueue queue,\n\t\t\t\t\t@...
{ "body": "@Override\n\tpublic ImageContainer get(@Nullable final String requestUrl,\n\t\t\t\t\t@NonNull final ImageListener imageListener,\n\t\t\t\t\tfinal int maxWidth, final int maxHeight) {\n\t\tif (requestUrl == null) {\n\t\t\tfinal ImageContainer container = new ImageContainer(null, null, null, null);\n\t\t\tim...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_15
{ "fields": [ { "declarator": "request", "modifier": "private", "original_string": "private Request<String> request;", "type": "Request<String>", "var_name": "request" }, { "declarator": "requestQueue", "modifier": "private", "original_string": "private Requ...
{ "body": "@Test\n\tpublic void testToString() {\n\t\tfinal Request<String> request = mock(GsonRequest.class);\n\t\tfinal RequestQueue requestQueue = mock(RequestQueue.class);\n\t\tfinal Context context = mock(Context.class);\n\t\tfinal RequestLoader<String> loader = new RequestLoader<>(context, request, requestQueue...
{ "fields": [ { "declarator": "request", "modifier": "private final", "original_string": "private final Request<D> request;", "type": "Request<D>", "var_name": "request" }, { "declarator": "queue", "modifier": "private final", "original_string": "private fin...
{ "body": "@Override\n\tpublic String toString() {\n\t\treturn \"RequestLoader for \" + request + \" with updateThrottle = \" + updateThrottle;\n\t}", "class_method_signature": "RequestLoader.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_42
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testGetAll() {\n\t\tfinal Request<List<Object>> request\n\t\t\t\t= restResource.getAll(null, new DummyListener<List<Object>>(), null);\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.GET, request.getMethod());\n\t}", "class_method_signature": "Res...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t@Nullable final Map<String, String> queryParams,\n\t\t\t\t\t@Nullable final Listener<List<T>> listener,\n\t\t\t\t\t@Nullable final ErrorListener errListener) {\n\t\treturn getAll(resourceParams, queryParams, liste...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_54
{ "fields": [ { "declarator": "DEFAULT_OBJECT = new Object()", "modifier": "private static final", "original_string": "private static final Object DEFAULT_OBJECT = new Object();", "type": "Object", "var_name": "DEFAULT_OBJECT" } ], "file": "volley-requests/src/test/java/com/a...
{ "body": "@Test\n\tpublic void testParseNetworkResponseWithCreatedStatus() {\n\t\tfinal NetworkResponse response = new NetworkResponse(HttpURLConnection.HTTP_CREATED, new byte[0],\n\t\t\t\tCollections.<String, String>emptyMap(), false);\n\t\tfinal Response<Object> r = decorator.parseNetworkResponse(response);\n\t\ta...
{ "fields": [ { "declarator": "object", "modifier": "private final", "original_string": "private final T object;", "type": "T", "var_name": "object" } ], "file": "volley-requests/src/main/java/com/android/volley/MaybeRequestDecorator.java", "identifier": "MaybeRequestDecora...
{ "body": "@Override\n\tprotected Response<T> parseNetworkResponse(final NetworkResponse response) {\n\t\tif (response.statusCode == HttpURLConnection.HTTP_CREATED) {\n\t\t\treturn Response.success(object,\n\t\t\t\t\tHttpHeaderParser.parseCacheHeaders(response));\n\t\t}\n\t\treturn super.parseNetworkResponse(response...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_55
{ "fields": [ { "declarator": "DEFAULT_OBJECT = new Object()", "modifier": "private static final", "original_string": "private static final Object DEFAULT_OBJECT = new Object();", "type": "Object", "var_name": "DEFAULT_OBJECT" } ], "file": "volley-requests/src/test/java/com/a...
{ "body": "@Test\n\tpublic void testGetObject() {\n\t\tassertEquals(DEFAULT_OBJECT, decorator.getObject());\n\t}", "class_method_signature": "MaybeRequestDecoratorTest.testGetObject()", "constructor": false, "full_signature": "@Test public void testGetObject()", "identifier": "testGetObject", "invocations":...
{ "fields": [ { "declarator": "object", "modifier": "private final", "original_string": "private final T object;", "type": "T", "var_name": "object" } ], "file": "volley-requests/src/main/java/com/android/volley/MaybeRequestDecorator.java", "identifier": "MaybeRequestDecora...
{ "body": "@NonNull\n\tpublic T getObject() {\n\t\treturn object;\n\t}", "class_method_signature": "MaybeRequestDecorator.getObject()", "constructor": false, "full_signature": "@NonNull public T getObject()", "identifier": "getObject", "invocations": [], "modifiers": "@NonNull public", "parameters": "()...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_43
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testGetAllWithQuery() {\n\t\tfinal Map<String, String> queryParams = new TreeMap<>();\t// We need a known order\n\t\tqueryParams.put(QUERY_PARAM_1, QUERY_VALUE_1);\n\t\tqueryParams.put(QUERY_PARAM_2, QUERY_VALUE_2);\n\n\t\tfinal Request<List<Object>> request\n\t\t\t\t= restResource.get...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<List<T>> getAll(@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t@Nullable final Map<String, String> queryParams,\n\t\t\t\t\t@Nullable final Listener<List<T>> listener,\n\t\t\t\t\t@Nullable final ErrorListener errListener) {\n\t\treturn getAll(resourceParams, queryParams, liste...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_14
{ "fields": [ { "declarator": "request", "modifier": "private", "original_string": "private Request<String> request;", "type": "Request<String>", "var_name": "request" }, { "declarator": "requestQueue", "modifier": "private", "original_string": "private Requ...
{ "body": "@Test\n\tpublic void testOnReset() {\n\t\tfinal ArgumentCaptor<Request> captor = ArgumentCaptor.forClass(Request.class);\n\n\t\tloader.onForceLoad();\n\t\tverify(requestQueue).add(captor.capture());\n\t\tfinal Request request = captor.getValue();\n\t\tloader.onReset();\n\t\tloader.onForceLoad();\n\t\tasser...
{ "fields": [ { "declarator": "request", "modifier": "private final", "original_string": "private final Request<D> request;", "type": "Request<D>", "var_name": "request" }, { "declarator": "queue", "modifier": "private final", "original_string": "private fin...
{ "body": "@Override\n\tprotected void onReset() {\n\t\tdispatchedRequest = null;\n\t\thandler.removeCallbacks(sender);\n\t\tsuper.onReset();\n\t}", "class_method_signature": "RequestLoader.onReset()", "constructor": false, "full_signature": "@Override protected void onReset()", "identifier": "onReset", "in...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_1
{ "fields": [ { "declarator": "imageLoader", "modifier": "private", "original_string": "private NullSafeImageLoader imageLoader;", "type": "NullSafeImageLoader", "var_name": "imageLoader" }, { "declarator": "queue", "modifier": "private", "original_string": ...
{ "body": "@Test\n\tpublic void testGetNonNull() {\n\t\tfinal ImageLoader.ImageListener listener = mock(ImageLoader.ImageListener.class);\n\n\t\timageLoader.get(\"http://i0.kym-cdn.com/photos/images/facebook/000/011/296/success_baby.jpg\",\n\t\t\t\tlistener, 0, 0);\n\n\t\tverify(queue).add(any(ImageRequest.class));\n...
{ "fields": [], "file": "volley-requests/src/main/java/com/monits/volleyrequests/network/NullSafeImageLoader.java", "identifier": "NullSafeImageLoader", "interfaces": "", "methods": [ { "class_method_signature": "NullSafeImageLoader.NullSafeImageLoader(@NonNull final RequestQueue queue,\n\t\t\t\t\t@...
{ "body": "@Override\n\tpublic ImageContainer get(@Nullable final String requestUrl,\n\t\t\t\t\t@NonNull final ImageListener imageListener,\n\t\t\t\t\tfinal int maxWidth, final int maxHeight) {\n\t\tif (requestUrl == null) {\n\t\t\tfinal ImageContainer container = new ImageContainer(null, null, null, null);\n\t\t\tim...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_38
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testPutWithoutObject() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.put(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request.Method.PUT, request...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_18
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testHeaders() throws AuthFailureError {\n\t\tfinal Map<String, String> headers = new HashMap<>();\n\t\theaders.put(HEADER_NAME_2, HEADER_VALUE_2);\n\n\t\tfinal Request<Void> request = Rest.all(RESOURCE_ROUTE_USERS).head()\n\t\t\t\t.header(HEADER_NAME_1, HEADER_VALUE_1) //Key-value meth...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_34
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testPutWithQuery() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.put(new Object()).query(QUERY_PARAM_1, QUERY_VALUE_1).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID + \"?\" + QUERY_PARAM_1 + \"=\" +...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_22
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testTrace() {\n\t\tfinal Request<Void> request = Rest.all(RESOURCE_ROUTE_USERS)\n\t\t\t\t.trace().request();\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.TRACE, request.getMethod());\n\t}", "class_method_signature": "RestTest.testTrace()", "c...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_29
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetSingleWithQuery() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.get(Object.class).query(QUERY_PARAM_1, QUERY_VALUE_1).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID + \"?\" + QUERY_PARAM_1 + \...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_6
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private final static", "original_string": "private final static String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testToString() {\n\t\tfinal String defaultToString = request.getClass().getName()\n\t\t\t\t+ '@' + Integer.toHexString(request.hashCode());\n\n\t\tassertThat(request.toString(), not(equalTo(defaultToString)));\n\t\tassertNotNull(request.toString());\n\t}", "class_method_signature": "...
{ "fields": [ { "declarator": "BOUNDARY = \"----------------------------1a4aa85bba8a\"", "modifier": "private static final", "original_string": "private static final String BOUNDARY = \"----------------------------1a4aa85bba8a\";", "type": "String", "var_name": "BOUNDARY" }, ...
{ "body": "@Override\n\tpublic String toString() {\n\t\treturn \"UploadBitmapRfcCompliantListenableRequest{ \"\n\t\t\t\t+ \"bitmap=\" + bitmap\n\t\t\t\t+ \", filename='\" + filename + '\\''\n\t\t\t\t+ \" }\";\n\t}", "class_method_signature": "UploadBitmapRfcCompliantListenableRequest.toString()", "constructor": f...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_13
{ "fields": [ { "declarator": "request", "modifier": "private", "original_string": "private Request<String> request;", "type": "Request<String>", "var_name": "request" }, { "declarator": "requestQueue", "modifier": "private", "original_string": "private Requ...
{ "body": "@Test\n\tpublic void testOnStopLoading() {\n\t\tfinal ArgumentCaptor<Request> captor = ArgumentCaptor.forClass(Request.class);\n\n\t\tloader.onForceLoad();\n\t\tverify(requestQueue).add(captor.capture());\n\t\tloader.onStopLoading();\n\n\t\tassertTrue(\"Failed to cancel request\", captor.getValue().isCance...
{ "fields": [ { "declarator": "request", "modifier": "private final", "original_string": "private final Request<D> request;", "type": "Request<D>", "var_name": "request" }, { "declarator": "queue", "modifier": "private final", "original_string": "private fin...
{ "body": "@Override\n\tprotected void onStopLoading() {\n\t\tdispatchedRequest.cancel();\n\t\thandler.removeCallbacks(sender);\n\t\tsuper.onStopLoading();\n\t}", "class_method_signature": "RequestLoader.onStopLoading()", "constructor": false, "full_signature": "@Override protected void onStopLoading()", "ide...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_44
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testGetMultipleParams() {\n\t\tfinal Map<String, String> resourceParams = new HashMap<>();\n\t\tresourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID);\n\t\tresourceParams.put(RESOURCE_PARAM_FIELD, RESOURCE_VALUE_FIELD);\n\n\t\tfinal Request<Object> request\n\t\t\t\t= restR...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> getObject(@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t@Nullable final Map<String, String> queryParams,\n\t\t\t\t\t@Nullable final Listener<T> listener,\n\t\t\t\t\t@Nullable final ErrorListener errListener) {\n\n\t\treturn getObject(resourceParams, queryParams, listener,...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_52
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testToString() {\n\n\t\tfinal String defaultToString = restResource.getClass().getName()\n\t\t\t\t+ '@' + Integer.toHexString(restResource.hashCode());\n\n\t\tassertThat(restResource.toString(), not(equalTo(defaultToString)));\n\t\tassertNotNull(restResource.toString());\n\t}", "clas...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "@Override\n\tpublic String toString() {\n\t\treturn \"RestResource{\"\n\t\t\t\t+ \"gson=\" + gson\n\t\t\t\t+ \", resource='\" + resource + '\\''\n\t\t\t\t+ \", clazz=\" + clazz\n\t\t\t\t+ \", hostAndPort='\" + hostAndPort + '\\''\n\t\t\t\t+ \", elementsKey='\" + elementsKey + '\\''\n\t\t\t\t+ \", listTypeT...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_25
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetAllWithQuery() {\n\t\tfinal Map<String, String> queryParams = new TreeMap<>();\n\t\tqueryParams.put(QUERY_PARAM_2, QUERY_VALUE_2);\n\n\t\tfinal Request<List<Object>> request = Rest.all(RESOURCE_ROUTE_USERS).get(Object.class)\n\t\t\t\t.query(QUERY_PARAM_1, QUERY_VALUE_1) // Use k...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_33
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testPatch() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.patch(new Object()).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request.Method.PATCH, request.getMet...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_48
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testDeleteSingle() {\n\t\tfinal Map<String, String> resourceParams = new HashMap<>();\n\t\tresourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID);\n\n\t\tfinal Request<Object> request = restResource.deleteObject(resourceParams,\n\t\t\t\tnew DummyListener<>(), null);\n\n\t\t...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> deleteObject(@Nullable final Listener<T> listener,\n\t\t\t\t\t@Nullable final ErrorListener errListener) {\n\t\treturn deleteObject(null, listener, errListener);\n\t}", "class_method_signature": "RestResource.deleteObject(@Nullable final Listener<T> listener,\n\t\t\t\t\t@Nullable final ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_49
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test(expected = IllegalArgumentException.class)\n\tpublic void testSaveIllegalMethod() {\n\t\tfinal Map<String, String> resourceParams = new HashMap<>();\n\t\tresourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID);\n\n\t\t// Suppress lint warnings for the issue tested\n\t\t//noinspection Resou...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> saveObject(@SaveMethod final int method,\n\t\t\t\t\t\t@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t\t@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,\n\t\t\t\t\t\t@NonNull final T object) {\n\t\treturn saveObject(method, resourceParams, nu...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_32
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testPost() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.post(new Object()).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request.Method.POST, request.getMethod...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_24
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testOptions() {\n\t\tfinal Request<Void> request = Rest.all(RESOURCE_ROUTE_USERS)\n\t\t\t\t.options().request();\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.OPTIONS, request.getMethod());\n\t}", "class_method_signature": "RestTest.testOptions(...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_53
{ "fields": [ { "declarator": "requeuePolicy", "modifier": "private", "original_string": "private RequeuePolicy requeuePolicy;", "type": "RequeuePolicy", "var_name": "requeuePolicy" } ], "file": "volley-requests/src/test/java/com/android/volley/RequeueAfterRequestDecoratorTes...
{ "body": "@Test\n\tpublic void testParseNetworkErrorCantRetry() throws VolleyError {\n\t\twhen(requeuePolicy.shouldRequeue(any(NetworkResponse.class))).thenReturn(Boolean.TRUE);\n\t\tfinal RetryPolicy retryPolicy = mock(RetryPolicy.class);\n\t\tdoThrow(VolleyError.class).when(retryPolicy).retry(any(VolleyError.class...
{ "fields": [ { "declarator": "requeuePolicy", "modifier": "private final", "original_string": "private final RequeuePolicy requeuePolicy;", "type": "RequeuePolicy", "var_name": "requeuePolicy" }, { "declarator": "queue", "modifier": "private", "original_str...
{ "body": "@Nullable\n\t@Override\n\tprotected VolleyError parseNetworkError(final VolleyError volleyError) {\n\t\tfinal NetworkResponse response = volleyError.networkResponse;\n\t\tif (requeuePolicy.shouldRequeue(response)) {\n\n\t\t\ttry {\n\t\t\t\twrapped.getRetryPolicy().retry(new VolleyError(\"Retry strategy dec...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_45
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testGetSingle() {\n\t\tfinal Map<String, String> resourceParams = new HashMap<>();\n\t\tresourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID);\n\n\t\tfinal Request<Object> request\n\t\t\t\t= restResource.getObject(resourceParams, new DummyListener<>(), null);\n\n\t\tassert...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> getObject(@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t@Nullable final Map<String, String> queryParams,\n\t\t\t\t\t@Nullable final Listener<T> listener,\n\t\t\t\t\t@Nullable final ErrorListener errListener) {\n\n\t\treturn getObject(resourceParams, queryParams, listener,...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_12
{ "fields": [ { "declarator": "request", "modifier": "private", "original_string": "private Request<String> request;", "type": "Request<String>", "var_name": "request" }, { "declarator": "requestQueue", "modifier": "private", "original_string": "private Requ...
{ "body": "@Test\n\tpublic void testSuperMarkDeliveredNeverCall() {\n\t\tfinal ArgumentCaptor<Request> captor = ArgumentCaptor.forClass(Request.class);\n\n\t\t// Do it\n\t\tloader.onForceLoad();\n\t\tverify(requestQueue).add(captor.capture());\n\n\t\t// check captured value\n\t\tfinal Request capturedRequest = captor...
{ "fields": [ { "declarator": "request", "modifier": "private final", "original_string": "private final Request<D> request;", "type": "Request<D>", "var_name": "request" }, { "declarator": "queue", "modifier": "private final", "original_string": "private fin...
{ "body": "@Override\n\tprotected void onForceLoad() {\n\t\tsuper.onForceLoad();\n\t\tstartLoading();\n\t}", "class_method_signature": "RequestLoader.onForceLoad()", "constructor": false, "full_signature": "@Override protected void onForceLoad()", "identifier": "onForceLoad", "invocations": [ "onForceLo...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_7
{ "fields": [], "file": "volley-requests/src/test/java/com/monits/volleyrequests/network/request/EmptyResponseRequestTest.java", "identifier": "EmptyResponseRequestTest", "interfaces": "", "superclass": "extends AbstractJsonRfcCompliantListenableRequestTest<Void, EmptyResponseRequest>" }
{ "body": "@Test\n\tpublic void testParseNetworkResponse() {\n\t\tfinal NetworkResponse networkResponse = new NetworkResponse(null);\n\t\tfinal Response<Void> response = request.parseNetworkResponse(networkResponse);\n\n\t\tassertNull(response.result);\n\t}", "class_method_signature": "EmptyResponseRequestTest.test...
{ "fields": [], "file": "volley-requests/src/main/java/com/monits/volleyrequests/network/request/EmptyResponseRequest.java", "identifier": "EmptyResponseRequest", "interfaces": "", "methods": [ { "class_method_signature": "EmptyResponseRequest.EmptyResponseRequest(final int method, @NonNull final St...
{ "body": "@Override\n\tprotected Response<Void> parseNetworkResponse(final NetworkResponse response) {\n\t\treturn Response.success(null, HttpHeaderParser.parseCacheHeaders(response));\n\t}", "class_method_signature": "EmptyResponseRequest.parseNetworkResponse(final NetworkResponse response)", "constructor": fal...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_28
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetSingleUrl() {\n\t\tfinal Request<Object> request =\n\t\t\t\tRest.oneUrl(Integer.toString(RESOURCE_VALUE_USER_ID), GET_ALL_URL)\n\t\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request....
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,\n\t\t\t@NonNull final String url) {\n\t\treturn oneUrl(route, url, gson);\n\t}", "class_method_signature": "Rest.oneUrl(@NonNull final String route,\n\t\t\t@NonNull final String url)", "constructor": false, "fu...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_50
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testSave() {\n\t\tfinal Map<String, String> resourceParams = new HashMap<>();\n\t\tresourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID);\n\n\t\tfinal Request<Object> request\n\t\t\t\t= restResource.saveObject(Request.Method.POST, resourceParams,\n\t\t\t\tnew DummyListener...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> saveObject(@SaveMethod final int method,\n\t\t\t\t\t\t@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t\t@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,\n\t\t\t\t\t\t@NonNull final T object) {\n\t\treturn saveObject(method, resourceParams, nu...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_46
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testGetSingleWithQuery() {\n\t\tfinal Map<String, String> resourceParams = new HashMap<>();\n\t\tresourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID);\n\n\t\tfinal Map<String, String> queryParams = new HashMap<>();\n\t\tqueryParams.put(QUERY_PARAM_1, QUERY_VALUE_1);\n\n\t...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> getObject(@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t@Nullable final Map<String, String> queryParams,\n\t\t\t\t\t@Nullable final Listener<T> listener,\n\t\t\t\t\t@Nullable final ErrorListener errListener) {\n\n\t\treturn getObject(resourceParams, queryParams, listener,...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_11
{ "fields": [ { "declarator": "request", "modifier": "private", "original_string": "private Request<String> request;", "type": "Request<String>", "var_name": "request" }, { "declarator": "requestQueue", "modifier": "private", "original_string": "private Requ...
{ "body": "@Test\n\tpublic void testSuperCancelNeverCall() {\n\t\tfinal ArgumentCaptor<Request> captor = ArgumentCaptor.forClass(Request.class);\n\n\t\tloader.onForceLoad();\n\t\tverify(requestQueue).add(captor.capture());\n\n\t\tfinal Request capturedRequest = captor.getValue();\n\n\t\tcapturedRequest.cancel();\n\t\...
{ "fields": [ { "declarator": "request", "modifier": "private final", "original_string": "private final Request<D> request;", "type": "Request<D>", "var_name": "request" }, { "declarator": "queue", "modifier": "private final", "original_string": "private fin...
{ "body": "@Override\n\tprotected void onForceLoad() {\n\t\tsuper.onForceLoad();\n\t\tstartLoading();\n\t}", "class_method_signature": "RequestLoader.onForceLoad()", "constructor": false, "full_signature": "@Override protected void onForceLoad()", "identifier": "onForceLoad", "invocations": [ "onForceLo...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_4
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private final static", "original_string": "private final static String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testParseNetworkResponse() throws UnsupportedEncodingException {\n\t\tfinal Map<String, String> headers = new HashMap<>();\n\t\theaders.put(CONTENT_TYPE, \"text/plain; charset=\" + CHARSET);\n\n\t\tfinal NetworkResponse networkResponse = new NetworkResponse(RESPONSE.getBytes(CHARSET), ...
{ "fields": [ { "declarator": "BOUNDARY = \"----------------------------1a4aa85bba8a\"", "modifier": "private static final", "original_string": "private static final String BOUNDARY = \"----------------------------1a4aa85bba8a\";", "type": "String", "var_name": "BOUNDARY" }, ...
{ "body": "@Override\n\tprotected Response<String> parseNetworkResponse(final NetworkResponse response) {\n\t\ttry {\n\t\t\tfinal String str = new String(response.data, HttpHeaderParser.parseCharset(response.headers));\n\t\t\treturn Response.success(str, HttpHeaderParser.parseCacheHeaders(response));\n\t\t} catch (fi...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_8
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private static final", "original_string": "private static final String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testParseNetworkResponse() {\n\t\t// This method is not delegated, but overridden by the decorator\n\t\tfinal SampleData data = newValidResponse();\n\t\tfinal String json = new Gson().toJson(data);\n\t\tfinal Map<String, String> headers = new HashMap<>();\n\t\theaders.put(CONTENT_TYPE,...
{ "fields": [ { "declarator": "gson", "modifier": "@SuppressFBWarnings(value = \"MISSING_FIELD_IN_TO_STRING\",\n\t\tjustification = \"No need to use in the toString\")\n\tprivate final", "original_string": "@SuppressFBWarnings(value = \"MISSING_FIELD_IN_TO_STRING\",\n\t\tjustification = \"No nee...
{ "body": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected Response<T> parseNetworkResponse(final NetworkResponse response) {\n\t\ttry {\n\t\t\tfinal String json = new String(response.data,\n\t\t\t\t\t\t\tHttpHeaderParser.parseCharset(response.headers));\n\t\t\treturn Response.success((T) gson.fromJson(jso...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_31
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testDeleteSingle() {\n\t\tfinal Request<Void> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.delete().request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request.Method.DELETE, request.getMethod()...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_27
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetSingleTopLevel() {\n\t\t// a single element response...\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS).get(Object.class).request();\n\n\t\t// ... with a top level URL\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.GET, req...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_26
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetSingle() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request.Method.GET, request.getMet...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_30
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testDeleteAll() {\n\t\tfinal Request<Void> request = Rest.all(RESOURCE_ROUTE_USERS).delete().request();\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.DELETE, request.getMethod());\n\t}", "class_method_signature": "RestTest.testDeleteAll()", "c...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_9
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private static final", "original_string": "private static final String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testParseNetworkResponseWithBadEncoding() {\n\t\t// This method is not delegated, but overridden by the decorator\n\t\tfinal SampleData data = newValidResponse();\n\t\tfinal String json = new Gson().toJson(data);\n\t\tfinal Map<String, String> headers = new HashMap<>();\n\t\theaders.pu...
{ "fields": [ { "declarator": "gson", "modifier": "@SuppressFBWarnings(value = \"MISSING_FIELD_IN_TO_STRING\",\n\t\tjustification = \"No need to use in the toString\")\n\tprivate final", "original_string": "@SuppressFBWarnings(value = \"MISSING_FIELD_IN_TO_STRING\",\n\t\tjustification = \"No nee...
{ "body": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected Response<T> parseNetworkResponse(final NetworkResponse response) {\n\t\ttry {\n\t\t\tfinal String json = new String(response.data,\n\t\t\t\t\t\t\tHttpHeaderParser.parseCharset(response.headers));\n\t\t\treturn Response.success((T) gson.fromJson(jso...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_5
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private final static", "original_string": "private final static String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testGetBody() throws AuthFailureError {\n\t\tfinal Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888);\n\t\trequest = new UploadBitmapRfcCompliantListenableRequest(Request.Method.GET,\n\t\t\t\t\"http://www.google.com/\", new DummyListener<String>(), null,\n\t\t\t\tb...
{ "fields": [ { "declarator": "BOUNDARY = \"----------------------------1a4aa85bba8a\"", "modifier": "private static final", "original_string": "private static final String BOUNDARY = \"----------------------------1a4aa85bba8a\";", "type": "String", "var_name": "BOUNDARY" }, ...
{ "body": "@SuppressWarnings(\"checkstyle:magicnumber\")\n\t@SuppressFBWarnings(value = { \"DM_DEFAULT_ENCODING\", \"MDM_STRING_BYTES_ENCODING\",\n\t\t\t\t\t\"VA_FORMAT_STRING_USES_NEWLINE\" },\n\t\t\t\t\tjustification = \"The encoding will be sent with the headers automatically.\"\n\t\t\t\t\t+ \" The protocol requir...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_10
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private static final", "original_string": "private static final String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testParseNetworkResponseWithBadJson() {\n\t\t// This method is not delegated, but overridden by the decorator\n\t\tfinal String json = \"{data: null\"; // Malformed json\n\t\tfinal Map<String, String> headers = new HashMap<>();\n\t\theaders.put(CONTENT_TYPE, \"application/javascript; c...
{ "fields": [ { "declarator": "gson", "modifier": "@SuppressFBWarnings(value = \"MISSING_FIELD_IN_TO_STRING\",\n\t\tjustification = \"No need to use in the toString\")\n\tprivate final", "original_string": "@SuppressFBWarnings(value = \"MISSING_FIELD_IN_TO_STRING\",\n\t\tjustification = \"No nee...
{ "body": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected Response<T> parseNetworkResponse(final NetworkResponse response) {\n\t\ttry {\n\t\t\tfinal String json = new String(response.data,\n\t\t\t\t\t\t\tHttpHeaderParser.parseCharset(response.headers));\n\t\t\treturn Response.success((T) gson.fromJson(jso...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_47
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testDeleteAll() {\n\t\tfinal Request<Object> request\n\t\t\t\t= restResource.deleteObject(new DummyListener<>(), null);\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.DELETE, request.getMethod());\n\t}", "class_method_signature": "RestResourceTes...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> deleteObject(@Nullable final Listener<T> listener,\n\t\t\t\t\t@Nullable final ErrorListener errListener) {\n\t\treturn deleteObject(null, listener, errListener);\n\t}", "class_method_signature": "RestResource.deleteObject(@Nullable final Listener<T> listener,\n\t\t\t\t\t@Nullable final ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_51
{ "fields": [ { "declarator": "GET_ALL_URL = \"http://test.domain.com/users\"", "modifier": "private static final", "original_string": "private static final String GET_ALL_URL = \"http://test.domain.com/users\";", "type": "String", "var_name": "GET_ALL_URL" }, { "declar...
{ "body": "@Test\n\tpublic void testSaveWithQuery() {\n\t\tfinal Map<String, String> resourceParams = new HashMap<>();\n\t\tresourceParams.put(RESOURCE_PARAM_USER_ID, RESOURCE_VALUE_USER_ID);\n\n\t\tfinal Map<String, String> queryParams = new HashMap<>();\n\t\tqueryParams.put(QUERY_PARAM_1, QUERY_VALUE_1);\n\n\t\tfin...
{ "fields": [ { "declarator": "PARAMETERS_REGEX = \"/(:([^/]+))\"", "modifier": "private static final", "original_string": "private static final String PARAMETERS_REGEX = \"/(:([^/]+))\";", "type": "String", "var_name": "PARAMETERS_REGEX" }, { "declarator": "REMOVE_MULT...
{ "body": "public Request<T> saveObject(@SaveMethod final int method,\n\t\t\t\t\t\t@Nullable final Map<String, String> resourceParams,\n\t\t\t\t\t\t@Nullable final Listener<T> listener, @Nullable final ErrorListener errListener,\n\t\t\t\t\t\t@NonNull final T object) {\n\t\treturn saveObject(method, resourceParams, nu...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_37
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testPatchWithoutObject() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.patch(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request.Method.PATCH, r...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_21
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetSeveral() {\n\t\tfinal Request<List<Object>> request = Rest.one(RESOURCE_ROUTE_LISTS, RESOURCE_VALUE_LIST_ID)\n\t\t\t\t.several(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID, RESOURCE_VALUE_OTHER_USER_ID)\n\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_SEVERAL_URL,...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_56
{ "fields": [ { "declarator": "ELEMENTS_KEY = \"elements\"", "modifier": "private static final", "original_string": "private static final String ELEMENTS_KEY = \"elements\";", "type": "String", "var_name": "ELEMENTS_KEY" }, { "declarator": "CHARSET = \"UTF-8\"", "...
{ "body": "@Test\n\tpublic void testParseNetworkResponseWithBadJson() {\n\t\tfinal Map<String, String> headers = new HashMap<>();\n\t\theaders.put(CONTENT_TYPE, \"application/javascript; charset=\" + CHARSET);\n\n\t\ttry {\n\t\t\tfinal NetworkResponse response = new NetworkResponse(\"{test: [1,2}\".getBytes(CHARSET),...
{ "fields": [ { "declarator": "elementsKey", "modifier": "private final", "original_string": "private final String elementsKey;", "type": "String", "var_name": "elementsKey" } ], "file": "volley-requests/src/main/java/com/android/volley/JSONArrayRequestDecorator.java", "ide...
{ "body": "@Override\n\tprotected Response<T> parseNetworkResponse(final NetworkResponse response) {\n\t\ttry {\n\t\t\tfinal String headersCharset = HttpHeaderParser.parseCharset(response.headers);\n\t\t\tfinal String json = new String(response.data, headersCharset);\n\t\t\tfinal JSONObject object = new JSONObject(js...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_40
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetSingleChainingWithInt() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS)\n\t\t\t\t.one(RESOURCE_ROUTE_USER_ID, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_ROUTE_USER_ID\n\t\t\t\t+ \"/\" + ...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_17
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testErrorListener() {\n\t\tfinal Response.ErrorListener error = mock(Response.ErrorListener.class);\n\n\t\tfinal Request<Void> request = Rest.all(RESOURCE_ROUTE_USERS).options()\n\t\t\t\t.onError(error).request();\n\n\t\tassertSame(error, request.getErrorListener());\n\t}", "class_me...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_2
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private final static", "original_string": "private final static String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testContentTypeIsMultipart() {\n\t\tassertTrue(\"Content type is not multipart\",\n\t\t\t\trequest.getBodyContentType().startsWith(\"multipart/form-data;\"));\n\t}", "class_method_signature": "UploadBitmapRfcCompliantListenableRequestTest.testContentTypeIsMultipart()", "constructor...
{ "fields": [ { "declarator": "BOUNDARY = \"----------------------------1a4aa85bba8a\"", "modifier": "private static final", "original_string": "private static final String BOUNDARY = \"----------------------------1a4aa85bba8a\";", "type": "String", "var_name": "BOUNDARY" }, ...
{ "body": "@Override\n\tpublic String getBodyContentType() {\n\t\treturn CONTENT_TYPE;\n\t}", "class_method_signature": "UploadBitmapRfcCompliantListenableRequest.getBodyContentType()", "constructor": false, "full_signature": "@Override public String getBodyContentType()", "identifier": "getBodyContentType", ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_3
{ "fields": [ { "declarator": "CONTENT_TYPE = \"Content-Type\"", "modifier": "private final static", "original_string": "private final static String CONTENT_TYPE = \"Content-Type\";", "type": "String", "var_name": "CONTENT_TYPE" }, { "declarator": "CHARSET = \"UTF-8\"",...
{ "body": "@Test\n\tpublic void testParseNetworkResponseIllegalCharset() throws UnsupportedEncodingException {\n\t\tfinal Map<String, String> headers = new HashMap<>();\n\t\theaders.put(CONTENT_TYPE, \"text/plain; charset=nonexistingcharset\");\n\n\t\tfinal NetworkResponse networkResponse = new NetworkResponse(RESPON...
{ "fields": [ { "declarator": "BOUNDARY = \"----------------------------1a4aa85bba8a\"", "modifier": "private static final", "original_string": "private static final String BOUNDARY = \"----------------------------1a4aa85bba8a\";", "type": "String", "var_name": "BOUNDARY" }, ...
{ "body": "@Override\n\tprotected Response<String> parseNetworkResponse(final NetworkResponse response) {\n\t\ttry {\n\t\t\tfinal String str = new String(response.data, HttpHeaderParser.parseCharset(response.headers));\n\t\t\treturn Response.success(str, HttpHeaderParser.parseCacheHeaders(response));\n\t\t} catch (fi...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_16
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetUrl() {\n\t\tassertEquals(GET_ALL_URL, Rest.all(RESOURCE_ROUTE_USERS).getUrl());\n\t}", "class_method_signature": "RestTest.testGetUrl()", "constructor": false, "full_signature": "@Test public void testGetUrl()", "identifier": "testGetUrl", "invocations": [ "assert...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) {\n\t\treturn all(route, gson);\n\t}", "class_method_signature": "Rest.all(@NonNull final String route)", "constructor": false, "full_signature": "@NonNull public static UrlBuilder.CollectionUrlBuilder all(@Non...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_41
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testOnCancel() {\n\t\tfinal ListenableRequest.CancelListener cancelListener = mock(ListenableRequest.CancelListener.class);\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.put(Object.class).onSuccess(mock(Response.Listener.class)).o...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_57
{ "fields": [ { "declarator": "ELEMENTS_KEY = \"elements\"", "modifier": "private static final", "original_string": "private static final String ELEMENTS_KEY = \"elements\";", "type": "String", "var_name": "ELEMENTS_KEY" }, { "declarator": "CHARSET = \"UTF-8\"", "...
{ "body": "@Test\n\tpublic void testGetElementsKey() {\n\t\tassertEquals(ELEMENTS_KEY, decorator.getElementsKey());\n\t}", "class_method_signature": "JSONArrayRequestDecoratorTest.testGetElementsKey()", "constructor": false, "full_signature": "@Test public void testGetElementsKey()", "identifier": "testGetEle...
{ "fields": [ { "declarator": "elementsKey", "modifier": "private final", "original_string": "private final String elementsKey;", "type": "String", "var_name": "elementsKey" } ], "file": "volley-requests/src/main/java/com/android/volley/JSONArrayRequestDecorator.java", "ide...
{ "body": "@NonNull\n\tpublic String getElementsKey() {\n\t\treturn elementsKey;\n\t}", "class_method_signature": "JSONArrayRequestDecorator.getElementsKey()", "constructor": false, "full_signature": "@NonNull public String getElementsKey()", "identifier": "getElementsKey", "invocations": [], "modifiers":...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_20
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testGetAllUrl() {\n\t\tfinal Request<List<Object>> request = Rest.allUrl(RESOURCE_ROUTE_USERS, BASE_URL)\n\t\t\t\t.get(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL, request.getUrl());\n\t\tassertEquals(Request.Method.GET, request.getMethod());\n\t}", "class_method_signatu...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,\n\t\t\t@NonNull final String url) {\n\t\treturn allUrl(route, url, gson);\n\t}", "class_method_signature": "Rest.allUrl(@NonNull final String route,\n\t\t\t@NonNull final String url)", "constructor": false, ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
19169174_36
{ "fields": [ { "declarator": "BASE_URL = \"http://test.domain.com\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://test.domain.com\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "QUERY_PARAM_1...
{ "body": "@Test\n\tpublic void testPostWithoutObject() {\n\t\tfinal Request<Object> request = Rest.one(RESOURCE_ROUTE_USERS, RESOURCE_VALUE_USER_ID)\n\t\t\t\t.post(Object.class).request();\n\n\t\tassertEquals(GET_ALL_URL + \"/\" + RESOURCE_VALUE_USER_ID, request.getUrl());\n\t\tassertEquals(Request.Method.POST, requ...
{ "fields": [ { "declarator": "interceptor", "modifier": "static", "original_string": "static RequestInterceptor interceptor;", "type": "RequestInterceptor", "var_name": "interceptor" }, { "declarator": "baseUrl", "modifier": "private static", "original_stri...
{ "body": "@NonNull\n\tpublic static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id) {\n\t\treturn one(route, Integer.toString(id));\n\t}", "class_method_signature": "Rest.one(@NonNull final String route, final int id)", "constructor": false, "full_signature": "@NonNull public static...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 19169174, "size": 4264, "stargazer_count": 21, "stars": null, "updates": null, "url": "https://github.com/Monits/volley-requests" }
40977450_6
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void noAttackersButExtraDefenderAndGoalkeeper() {\n Player[] players = new Player[] { buildPlayer(\"LB\"), buildPlayer(\"CB\"), buildPlayer(\"CB\"),\n buildPlayer(\"CB\"), buildPlayer(\"RB\"), buildPlayer(\"LM\"), buildPlayer(\"CM\"),\n buildPlayer(\"GK\"), buildPlayer(\"GK\")...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_12
{ "fields": [ { "declarator": "clubA = Club.create(1, \"Club A\").newWithWin(1)", "modifier": "private final", "original_string": "private final Club clubA = Club.create(1, \"Club A\").newWithWin(1);", "type": "Club", "var_name": "clubA" }, { "declarator": "clubB = Club...
{ "body": "@Test public void testExecute() {\n MatchResult result1 = MatchResult.builder()\n .awayGoals(Collections.emptyList())\n .homeGoals(Collections.singletonList(newGoal(10, clubA)))\n .build(clubA, clubB);\n\n MatchResult result2 = MatchResult.builder()\n .homeGoals(Collection...
{ "fields": [ { "declarator": "TAG = \"LeagueRoundExecutor\"", "modifier": "private static final", "original_string": "private static final String TAG = \"LeagueRoundExecutor\";", "type": "String", "var_name": "TAG" }, { "declarator": "persistenceService", "modifi...
{ "body": "public void execute(List<Match> matches) {\n for (Club club : FluentIterable.from(matches).transformAndConcat(this::filterClubsByResult)) {\n Log.d(TAG, \"Updating club \" + club.abbrev_name() + \" with stats \" + club.stats());\n persistenceService.update(club, club.id());\n }\n }", "cl...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_13
{ "fields": [ { "declarator": "clubA = Club.create(1, \"Club A\").newWithWin(1)", "modifier": "private final", "original_string": "private final Club clubA = Club.create(1, \"Club A\").newWithWin(1);", "type": "Club", "var_name": "clubA" }, { "declarator": "clubB = Club...
{ "body": "@Test public void testExecuteDraw() {\n MatchResult result1 = MatchResult.builder()\n .homeGoals(Collections.singletonList(newGoal(10, clubA)))\n .awayGoals(Collections.singletonList(newGoal(15, clubB)))\n .build(clubA, clubB);\n\n MatchResult result2 = MatchResult.builder()\n ...
{ "fields": [ { "declarator": "TAG = \"LeagueRoundExecutor\"", "modifier": "private static final", "original_string": "private static final String TAG = \"LeagueRoundExecutor\";", "type": "String", "var_name": "TAG" }, { "declarator": "persistenceService", "modifi...
{ "body": "public void execute(List<Match> matches) {\n for (Club club : FluentIterable.from(matches).transformAndConcat(this::filterClubsByResult)) {\n Log.d(TAG, \"Updating club \" + club.abbrev_name() + \" with stats \" + club.stats());\n persistenceService.update(club, club.id());\n }\n }", "cl...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_7
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void notEnoughDefendersButExtraMidfielders() {\n Player[] players = new Player[] { buildPlayer(\"LB\"), buildPlayer(\"CB\"), buildPlayer(\"CB\"),\n buildPlayer(\"CDM\"), buildPlayer(\"RW\"), buildPlayer(\"LM\"), buildPlayer(\"CM\"),\n buildPlayer(\"GK\"), buildPlayer(\"ST\"), ...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_0
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void throwIfNull() {\n try {\n ClubSquadBuilder builder = new ClubSquadBuilder(TestFixtures.GREMIO, null);\n builder.build();\n fail();\n } catch (NullPointerException ignored) {\n }\n }", "class_method_signature": "ClubSquadBuilderTest.throwIfNull()", "constructor...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_14
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "@Inject", "original_string": "@Inject Clu...
{ "body": "@Test public void testNewWithWin() {\n Club club = Club.builder().id(0).name(\"Sample\").build();\n ClubStats stats = club.newWithWin(2).stats();\n assertThat(stats.points()).isEqualTo(3);\n assertThat(stats.goals()).isEqualTo(2);\n assertThat(stats.losses()).isEqualTo(0);\n assertThat(st...
{ "fields": [], "file": "app/src/main/java/com/elifut/models/Club.java", "identifier": "Club", "interfaces": "implements Persistable", "methods": [ { "class_method_signature": "Club.name()", "constructor": false, "full_signature": "public abstract String name()", "identifier": "nam...
{ "body": "public Club newWithWin(int goalsDifferential) {\n if (goalsDifferential <= 0) {\n throw new IllegalArgumentException(\"Goals difference must be bigger than zero for wins.\");\n }\n return toBuilder()\n .stats(nonNullStats()\n .newWithWin(goalsDifferential))\n .build()...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_22
{ "fields": [ { "declarator": "clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL)", "modifier": "private final", "original_string": "private final List<Club> clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);", "type": "List<Club>", "var_name"...
{ "body": "@Test public void clubPosition() {\n when(mockPersistenceStore.query(AutoValueClasses.CLUB)).thenReturn(\n Arrays.asList(gremioWithWin, internacionalWithLoss, flamengoWithWin, fluminenseWithLoss));\n\n LeagueDetails leagueDetails = new LeagueDetails(mockPersistenceStore, clubDataStore,\n ...
{ "fields": [ { "declarator": "service", "modifier": "private final", "original_string": "private final ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "private final", "original_str...
{ "body": "public int clubPosition(Club club) {\n List<? extends Club> sortedClubs = clubsStandings();\n Optional<? extends Club> selectedClub = FluentIterable.from(sortedClubs)\n .firstMatch(c -> c.nameEquals(club));\n return selectedClub.isPresent() ? sortedClubs.indexOf(selectedClub.get()) : -1;\n ...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_18
{ "fields": [ { "declarator": "clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL)", "modifier": "private final", "original_string": "private final List<Club> clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);", "type": "List<Club>", "var_name"...
{ "body": "@Test public void testInitialize() {\n when(roundGenerator.generateRounds(clubs)).thenReturn(rounds);\n\n leagueDetails.initialize(clubs);\n\n assertThat(persistenceService.query(AutoValueClasses.CLUB)).isEqualTo(clubs);\n assertThat(leagueDetails.rounds()).isEqualTo(rounds);\n }", "class_me...
{ "fields": [ { "declarator": "service", "modifier": "private final", "original_string": "private final ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "private final", "original_str...
{ "body": "public void initialize(List<? extends Club> allClubs) {\n service.create(allClubs);\n service.create(leagueRoundGenerator.generateRounds(allClubs));\n }", "class_method_signature": "LeagueDetails.initialize(List<? extends Club> allClubs)", "constructor": false, "full_signature": "public void i...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_19
{ "fields": [ { "declarator": "clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL)", "modifier": "private final", "original_string": "private final List<Club> clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);", "type": "List<Club>", "var_name"...
{ "body": "@Test public void testNextRound() {\n when(roundGenerator.generateRounds(clubs)).thenReturn(rounds);\n\n leagueDetails.initialize(clubs);\n\n assertThat(leagueDetails.nextRound()).isEqualTo(round1);\n assertThat(leagueDetails.rounds()).isEqualTo(Collections.singletonList(round2));\n assertTh...
{ "fields": [ { "declarator": "service", "modifier": "private final", "original_string": "private final ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "private final", "original_str...
{ "body": "public LeagueRound nextRound() {\n if (!haveRoundsLeft()) {\n throw new IllegalStateException(\"No more rounds left\");\n }\n List<? extends LeagueRound> nextRounds = rounds();\n LeagueRound nextRound = nextRounds.remove(0);\n //noinspection ConstantConditions\n service.delete(nextRo...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_15
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "@Inject", "original_string": "@Inject Clu...
{ "body": "@Test public void testNewWithDraw() {\n Club club = Club.builder().id(0).name(\"Sample\").build();\n ClubStats stats = club.newWithDraw().stats();\n assertThat(stats.points()).isEqualTo(1);\n assertThat(stats.goals()).isEqualTo(0);\n assertThat(stats.losses()).isEqualTo(0);\n assertThat(s...
{ "fields": [], "file": "app/src/main/java/com/elifut/models/Club.java", "identifier": "Club", "interfaces": "implements Persistable", "methods": [ { "class_method_signature": "Club.name()", "constructor": false, "full_signature": "public abstract String name()", "identifier": "nam...
{ "body": "public Club newWithDraw() {\n return toBuilder()\n .stats(nonNullStats().newWithDraw())\n .build();\n }", "class_method_signature": "Club.newWithDraw()", "constructor": false, "full_signature": "public Club newWithDraw()", "identifier": "newWithDraw", "invocations": [ "build...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_1
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void throwIfNotEnoughPlayers() {\n try {\n ClubSquadBuilder builder = new ClubSquadBuilder(TestFixtures.GREMIO, Collections.emptyList());\n builder.build();\n fail();\n } catch (IllegalArgumentException ignored) {\n }\n }", "class_method_signature": "ClubSquadBuilder...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_16
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "@Inject", "original_string": "@Inject Clu...
{ "body": "@Test public void testNewWithLoss() {\n Club club = Club.builder().id(0).name(\"Sample\").build();\n ClubStats stats = club.newWithLoss(-3).stats();\n assertThat(stats.points()).isEqualTo(0);\n assertThat(stats.goals()).isEqualTo(-3);\n assertThat(stats.losses()).isEqualTo(1);\n assertTha...
{ "fields": [], "file": "app/src/main/java/com/elifut/models/Club.java", "identifier": "Club", "interfaces": "implements Persistable", "methods": [ { "class_method_signature": "Club.name()", "constructor": false, "full_signature": "public abstract String name()", "identifier": "nam...
{ "body": "public Club newWithLoss(int goalsDifferential) {\n if (goalsDifferential >= 0) {\n throw new IllegalArgumentException(\"Goals difference must be less than zero for losses.\");\n }\n return toBuilder()\n .stats(nonNullStats()\n .newWithLoss(goalsDifferential))\n .build...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_2
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void throwIfNotEnoughGoalkeepers() {\n try {\n List<Player> players = Arrays.asList(buildPlayer(\"LB\"), buildPlayer(\"CB\"), buildPlayer(\"CB\"),\n buildPlayer(\"RB\"), buildPlayer(\"LM\"), buildPlayer(\"CM\"), buildPlayer(\"CM\"),\n buildPlayer(\"CAM\"), buildPlayer...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_20
{ "fields": [ { "declarator": "clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL)", "modifier": "private final", "original_string": "private final List<Club> clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);", "type": "List<Club>", "var_name"...
{ "body": "@Test public void testExecuteRound() {\n Club gremio = TestFixtures.GREMIO;\n Club internacional = TestFixtures.INTERNACIONAL;\n MatchResultGenerator mockResultGenerator = mock(MatchResultGenerator.class);\n MatchResult fakeResult = MatchResult.builder()\n .homeGoals(Collections.singleto...
{ "fields": [ { "declarator": "service", "modifier": "private final", "original_string": "private final ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "private final", "original_str...
{ "body": "public LeagueRound executeRound(LeagueRound round) {\n List<Match> matchesWithResult = FluentIterable.from(round.matches())\n .transform(m -> Match.create(m.id(), m.home(), m.away(), resultFor(m)))\n .toList();\n return LeagueRound.create(round.id(), round.roundNumber(), matchesWithResu...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_21
{ "fields": [ { "declarator": "clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL)", "modifier": "private final", "original_string": "private final List<Club> clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);", "type": "List<Club>", "var_name"...
{ "body": "@Test public void clubsStandings() {\n when(mockPersistenceStore.query(AutoValueClasses.CLUB)).thenReturn(\n Arrays.asList(gremioWithWin, internacionalWithLoss, flamengoWithWin, fluminenseWithLoss));\n\n LeagueDetails leagueDetails = new LeagueDetails(mockPersistenceStore, clubDataStore,\n ...
{ "fields": [ { "declarator": "service", "modifier": "private final", "original_string": "private final ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "private final", "original_str...
{ "body": "List<? extends Club> clubsStandings() {\n return clubsStandings(clubs());\n }", "class_method_signature": "LeagueDetails.clubsStandings()", "constructor": false, "full_signature": " List<? extends Club> clubsStandings()", "identifier": "clubsStandings", "invocations": [ "clubsStandings", ...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_3
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void simpleSquad() {\n Player[] players = new Player[] { buildPlayer(\"LB\"), buildPlayer(\"CB\"), buildPlayer(\"CB\"),\n buildPlayer(\"RB\"), buildPlayer(\"LM\"), buildPlayer(\"CM\"), buildPlayer(\"GK\"),\n buildPlayer(\"CAM\"), buildPlayer(\"CDM\"), buildPlayer(\"ST\"), buil...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_17
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" }, { "declarator": "clubDataStore", "modifier": "@Inject", "original_string": "@Inject Clu...
{ "body": "@Test public void testSubstitutes() {\n Club club = Club.builder().id(0).name(\"Sample\").build();\n service.create(club);\n Player gornaldo = TestFixtures.GORNALDO.toBuilder().clubId(0).build();\n Player pele = TestFixtures.PELE.toBuilder().clubId(0).build();\n List<Player> players = Arrays...
{ "fields": [], "file": "app/src/main/java/com/elifut/models/Club.java", "identifier": "Club", "interfaces": "implements Persistable", "methods": [ { "class_method_signature": "Club.name()", "constructor": false, "full_signature": "public abstract String name()", "identifier": "nam...
{ "body": "public List<? extends Player> substitutes(ClubDataStore dataStore) {\n List<? extends Player> players = dataStore.allPlayers(this);\n ClubSquad clubSquad = dataStore.squad(this);\n // Exclude the players who are already on the team players from the list of all players, so we\n // get a list wit...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_8
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" } ], "file": "app/src/test/java/com/elifut/services/ElifutDataStoreTest.java", "identifier": "ElifutDataSt...
{ "body": "@Test public void testQueryEmptyData() {\n assertThat(service.query(AutoValueClasses.CLUB)).isEqualTo(Collections.emptyList());\n }", "class_method_signature": "ElifutDataStoreTest.testQueryEmptyData()", "constructor": false, "full_signature": "@Test public void testQueryEmptyData()", "identifi...
{ "fields": [ { "declarator": "db", "modifier": "private final", "original_string": "private final BriteDatabase db;", "type": "BriteDatabase", "var_name": "db" }, { "declarator": "converterMap = new HashMap<>()", "modifier": "private final", "original_strin...
{ "body": "public <T extends Persistable> List<T> query(Class<T> type) {\n Persistable.Converter<T> converter = converterForType(type);\n return rawQuery(converter, \"SELECT * FROM \" + converter.tableName());\n }", "class_method_signature": "ElifutDataStore.query(Class<T> type)", "constructor": false, "...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_10
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" } ], "file": "app/src/test/java/com/elifut/services/ElifutDataStoreTest.java", "identifier": "ElifutDataSt...
{ "body": "@Test public void testDelete() {\n List<Club> clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);\n service.create(clubs);\n assertThat(service.delete(TestFixtures.GREMIO, TestFixtures.GREMIO.id())).isEqualTo(1);\n assertThat(service.query(AutoValueClasses.CLUB))\n .i...
{ "fields": [ { "declarator": "db", "modifier": "private final", "original_string": "private final BriteDatabase db;", "type": "BriteDatabase", "var_name": "db" }, { "declarator": "converterMap = new HashMap<>()", "modifier": "private final", "original_strin...
{ "body": "public int delete(Persistable persistable, int id) {\n Persistable.Converter<Persistable> converter = converterFor(persistable);\n return db.delete(converter.tableName(), \"id = ?\", String.valueOf(id));\n }", "class_method_signature": "ElifutDataStore.delete(Persistable persistable, int id)", "...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_4
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void bigSquad() {\n Player[] players = new Player[] { buildPlayer(\"LB\"), buildPlayer(\"CB\"), buildPlayer(\"CB\"),\n buildPlayer(\"CB\"), buildPlayer(\"RB\"), buildPlayer(\"LM\"), buildPlayer(\"CM\"),\n buildPlayer(\"GK\"), buildPlayer(\"GK\"), buildPlayer(\"CAM\"), buildPla...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_5
{ "fields": [], "file": "app/src/test/java/com/elifut/services/ClubSquadBuilderTest.java", "identifier": "ClubSquadBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void noAttackersButExtraMidfielders() {\n Player[] players = new Player[] { buildPlayer(\"LB\"), buildPlayer(\"CB\"), buildPlayer(\"CB\"),\n buildPlayer(\"CM\"), buildPlayer(\"RB\"), buildPlayer(\"LM\"), buildPlayer(\"CM\"),\n buildPlayer(\"GK\"), buildPlayer(\"CM\"), buildPla...
{ "fields": [ { "declarator": "club", "modifier": "private final", "original_string": "private final Club club;", "type": "Club", "var_name": "club" }, { "declarator": "squad = new ArrayList<>(11)", "modifier": "private final", "original_string": "private fi...
{ "body": "public ClubSquad build() {\n squad.add(goalkeepers.remove(0));\n\n addToSquad(ClubSquad.TOTAL_DEFENDERS, asList(defenders, midfielders, attackers, goalkeepers));\n addToSquad(ClubSquad.TOTAL_MIDFIELDERS, asList(midfielders, attackers, defenders, goalkeepers));\n addToSquad(ClubSquad.TOTAL_ATTAC...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_11
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" } ], "file": "app/src/test/java/com/elifut/services/ElifutDataStoreTest.java", "identifier": "ElifutDataSt...
{ "body": "@Test public void testDeleteAll() {\n service.create(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);\n service.create(TestFixtures.GORNALDO, TestFixtures.PELE);\n\n service.deleteAll();\n\n List<? extends Club> clubs = service.query(AutoValueClasses.CLUB);\n List<? extends Player> players ...
{ "fields": [ { "declarator": "db", "modifier": "private final", "original_string": "private final BriteDatabase db;", "type": "BriteDatabase", "var_name": "db" }, { "declarator": "converterMap = new HashMap<>()", "modifier": "private final", "original_strin...
{ "body": "public void deleteAll() {\n for (Persistable.Converter<?> converter : converterMap.values()) {\n db.execute(\"DELETE FROM \" + converter.tableName());\n }\n }", "class_method_signature": "ElifutDataStore.deleteAll()", "constructor": false, "full_signature": "public void deleteAll()", "i...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
40977450_9
{ "fields": [ { "declarator": "service", "modifier": "@Inject", "original_string": "@Inject ElifutDataStore service;", "type": "ElifutDataStore", "var_name": "service" } ], "file": "app/src/test/java/com/elifut/services/ElifutDataStoreTest.java", "identifier": "ElifutDataSt...
{ "body": "@Test public void testUpdate() {\n List<Club> clubs = Arrays.asList(TestFixtures.GREMIO, TestFixtures.INTERNACIONAL);\n service.create(clubs);\n Club updatedGremio = TestFixtures.GREMIO.toBuilder().small_image(\"plimba\").build();\n assertThat(service.update(updatedGremio, updatedGremio.id()))....
{ "fields": [ { "declarator": "db", "modifier": "private final", "original_string": "private final BriteDatabase db;", "type": "BriteDatabase", "var_name": "db" }, { "declarator": "converterMap = new HashMap<>()", "modifier": "private final", "original_strin...
{ "body": "public int update(Persistable persistable, int id) {\n Persistable.Converter<Persistable> converter = converterFor(persistable);\n return db.update(converter.tableName(), converter.toContentValues(persistable, this),\n \"id = ?\", String.valueOf(id));\n }", "class_method_signature": "Elifut...
{ "created": null, "fork": null, "fork_count": 79, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 40977450, "size": 20969, "stargazer_count": 150, "stars": null, "updates": null, "url": "https://github.com/EliFUT/android" }
67934497_31
{ "fields": [ { "declarator": "server = TestServer.getInstance()", "modifier": "@ClassRule\n public static", "original_string": "@ClassRule\n public static TestServer server = TestServer.getInstance();", "type": "TestServer", "var_name": "server" }, { "declarator"...
{ "body": "@Test\n public void testDataGetHandlerTest() throws ClientException {\n\n final Http2Client client = Http2Client.getInstance();\n final CountDownLatch latch = new CountDownLatch(1);\n final ClientConnection connection;\n try {\n connection = client.connect(new URI(...
{ "fields": [ { "declarator": "CONFIG_NAME = \"api_a\"", "modifier": "static", "original_string": "static String CONFIG_NAME = \"api_a\";", "type": "String", "var_name": "CONFIG_NAME" }, { "declarator": "logger = LoggerFactory.getLogger(DataGetHandler.class)", "mo...
{ "body": "public DataGetHandler() {\n try {\n connectionB = client.connect(new URI(apibHost), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n connectionC = client.connect(new URI(apicHost), Http2Client.WORKER, H...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_41
{ "fields": [], "file": "eventuate/account-management/query/src/test/java/com/networknt/eventuate/queryservice/account/MoneyUtilTest.java", "identifier": "MoneyUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBigDecimal() {\n\n BigDecimal balance = new BigDecimal(\"1000.20\");\n System.out.println(\"result:\" + MoneyUtil.toIntegerRepr(balance));\n System.out.println(balance.longValue());\n\n }", "class_method_signature": "MoneyUtilTest.testBigDecimal()", "c...
{ "fields": [], "file": "eventuate/account-management/query/src/main/java/com/networknt/eventuate/queryservice/account/MoneyUtil.java", "identifier": "MoneyUtil", "interfaces": "", "methods": [ { "class_method_signature": "MoneyUtil.toIntegerRepr(BigDecimal d)", "constructor": false, "fu...
{ "body": "public static long toIntegerRepr(BigDecimal d) {\n return d.multiply(new BigDecimal(100)).longValueExact();\n }", "class_method_signature": "MoneyUtil.toIntegerRepr(BigDecimal d)", "constructor": false, "full_signature": "public static long toIntegerRepr(BigDecimal d)", "identifier": "toInteger...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_5
{ "fields": [ { "declarator": "server = TestServer.getInstance()", "modifier": "@ClassRule\n public static", "original_string": "@ClassRule\n public static TestServer server = TestServer.getInstance();", "type": "TestServer", "var_name": "server" }, { "declarator"...
{ "body": "@Test\n public void testDataGetHandlerTest() throws ClientException, ApiException {\n /*\n final Http2Client client = Http2Client.getInstance();\n final CountDownLatch latch = new CountDownLatch(1);\n final ClientConnection connection;\n try {\n connection =...
{ "fields": [ { "declarator": "CONFIG_NAME = \"api_c\"", "modifier": "static", "original_string": "static String CONFIG_NAME = \"api_c\";", "type": "String", "var_name": "CONFIG_NAME" }, { "declarator": "logger = LoggerFactory.getLogger(DataGetHandler.class)", "mo...
{ "body": "public DataGetHandler() {\n try {\n connection = client.connect(new URI(apidHost), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n } catch (Exception e) {\n logger.error(\"Exeption:\", e);\n ...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_9
{ "fields": [ { "declarator": "server = TestServer.getInstance()", "modifier": "@ClassRule\n public static", "original_string": "@ClassRule\n public static TestServer server = TestServer.getInstance();", "type": "TestServer", "var_name": "server" }, { "declarator"...
{ "body": "@Test\n public void testDataGetHandlerTest() throws ClientException, ApiException {\n /*\n final Http2Client client = Http2Client.getInstance();\n final CountDownLatch latch = new CountDownLatch(1);\n final ClientConnection connection;\n try {\n connection =...
{ "fields": [ { "declarator": "CONFIG_NAME = \"api_a\"", "modifier": "static", "original_string": "static String CONFIG_NAME = \"api_a\";", "type": "String", "var_name": "CONFIG_NAME" }, { "declarator": "logger = LoggerFactory.getLogger(DataGetHandler.class)", "mo...
{ "body": "public DataGetHandler() {\n try {\n connection = client.connect(new URI(apibHost), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n } catch (Exception e) {\n logger.error(\"Exeption:\", e);\n ...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_37
{ "fields": [ { "declarator": "ds", "modifier": "public static", "original_string": "public static DataSource ds;", "type": "DataSource", "var_name": "ds" }, { "declarator": "accountRepository = (AccountInfoRepository) SingletonServiceFactory.getBean(AccountInfoReposito...
{ "body": "@Test\n public void testSave() {\n int result = accountRepository.createAccount(account);\n assertTrue(result>0);\n }", "class_method_signature": "AccountInfoRepositoryImplTest.testSave()", "constructor": false, "full_signature": "@Test public void testSave()", "identifier": "te...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "dataSource", "mod...
{ "body": "public int createAccount(AccountInfo accountInfo) {\n Objects.requireNonNull(accountInfo);\n\n String psInsert = \"INSERT INTO account_info (account_id, title, description, version, balance,creation_Date) VALUES (?, ? ,?,?,? , current_date)\";\n String psInsert2 = \"INSERT INTO account...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_40
{ "fields": [ { "declarator": "ds", "modifier": "public static", "original_string": "public static DataSource ds;", "type": "DataSource", "var_name": "ds" }, { "declarator": "accountRepository = (AccountInfoRepository) SingletonServiceFactory.getBean(AccountInfoReposito...
{ "body": "@Test\n public void testAddTransaction() {\n int result = accountRepository.addTransaction(ti);\n assertTrue(result>0);\n }", "class_method_signature": "AccountInfoRepositoryImplTest.testAddTransaction()", "constructor": false, "full_signature": "@Test public void testAddTransacti...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "dataSource", "mod...
{ "body": "public int addTransaction(AccountTransactionInfo ti){\n Objects.requireNonNull(ti);\n String psInsert = \"INSERT INTO account_transaction (transaction_Id,from_account_id, to_account_id, amount, description, status, entry_Type,creation_Date) VALUES (?, ? ,?,?,?,?,?, current_date)\";\n\n ...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_38
{ "fields": [ { "declarator": "ds", "modifier": "public static", "original_string": "public static DataSource ds;", "type": "DataSource", "var_name": "ds" }, { "declarator": "accountRepository = (AccountInfoRepository) SingletonServiceFactory.getBean(AccountInfoReposito...
{ "body": "@Test\n public void testFindOneAccount() {\n AccountInfo result = accountRepository.findOneAccount(id);\n assertNotNull(result);\n }", "class_method_signature": "AccountInfoRepositoryImplTest.testFindOneAccount()", "constructor": false, "full_signature": "@Test public void testFin...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "dataSource", "mod...
{ "body": "public AccountInfo findOneAccount(String accountId){\n Objects.requireNonNull(accountId);\n String psSelect = \"SELECT a.account_id, c.customer_id, title, version, description, balance, creation_Date \" +\n \"FROM account_info a join account_customer c ON a.account_id ...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_43
{ "fields": [ { "declarator": "ds", "modifier": "public static", "original_string": "public static DataSource ds;", "type": "DataSource", "var_name": "ds" }, { "declarator": "customerRepository = (CustomerViewRepository) SingletonServiceFactory.getBean(CustomerViewRepos...
{ "body": "@Test\n public void testFindOneCustomer() {\n QuerySideCustomer result = customerRepository.findOneCustomer(id);\n assertNotNull(result);\n\n }", "class_method_signature": "CustomerViewRepositoryImplTest.testFindOneCustomer()", "constructor": false, "full_signature": "@Test public...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "dataSource", "mod...
{ "body": "public QuerySideCustomer findOneCustomer(String customerId){\n Objects.requireNonNull(customerId);\n String psSelect = \"SELECT c.customer_Id,first_name, last_name, email, password, ssn, phoneNumber, street1, street2, city, state, country, zipCode \" +\n \"FROM customer c join ...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_19
{ "fields": [ { "declarator": "server = TestServer.getInstance()", "modifier": "@ClassRule\n public static", "original_string": "@ClassRule\n public static TestServer server = TestServer.getInstance();", "type": "TestServer", "var_name": "server" }, { "declarator"...
{ "body": "@Test\n public void testDataGetHandlerTest() throws ClientException {\n\n final Http2Client client = Http2Client.getInstance();\n final CountDownLatch latch = new CountDownLatch(1);\n final ClientConnection connection;\n try {\n connection = client.connect(new URI(...
{ "fields": [ { "declarator": "CONFIG_NAME = \"api_b\"", "modifier": "static", "original_string": "static String CONFIG_NAME = \"api_b\";", "type": "String", "var_name": "CONFIG_NAME" }, { "declarator": "logger = LoggerFactory.getLogger(DataGetHandler.class)", "mo...
{ "body": "public DataGetHandler() {\n try {\n connection = client.connect(new URI(apidHost), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n } catch (Exception e) {\n logger.error(\"Exeption:\", e);\n ...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_42
{ "fields": [ { "declarator": "ds", "modifier": "public static", "original_string": "public static DataSource ds;", "type": "DataSource", "var_name": "ds" }, { "declarator": "customerRepository = (CustomerViewRepository) SingletonServiceFactory.getBean(CustomerViewRepos...
{ "body": "@Test\n public void testSave() {\n customerRepository.save(customer);\n }", "class_method_signature": "CustomerViewRepositoryImplTest.testSave()", "constructor": false, "full_signature": "@Test public void testSave()", "identifier": "testSave", "invocations": [ "save" ], "mod...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "dataSource", "mod...
{ "body": "public void save(QuerySideCustomer customer){\n Objects.requireNonNull(customer);\n\n String psInsert = \"INSERT INTO customer (customer_Id, first_name, last_name, email, password, ssn, phoneNumber) VALUES (?, ?, ?, ?, ?, ?, ?)\";\n String psInsert_address = \"INSERT INTO address (cu...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_39
{ "fields": [ { "declarator": "ds", "modifier": "public static", "original_string": "public static DataSource ds;", "type": "DataSource", "var_name": "ds" }, { "declarator": "accountRepository = (AccountInfoRepository) SingletonServiceFactory.getBean(AccountInfoReposito...
{ "body": "@Test\n public void testFindByEmail() {\n List<AccountInfo> result = accountRepository.findByCustomerId(\"2233456\");\n assertTrue(result.size()>0);\n }", "class_method_signature": "AccountInfoRepositoryImplTest.testFindByEmail()", "constructor": false, "full_signature": "@Test p...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "dataSource", "mod...
{ "body": "public List<AccountInfo> findByCustomerId(String customerId) {\n Objects.requireNonNull(customerId);\n List<AccountInfo> accounts = new ArrayList<AccountInfo>();\n\n String psSelect = \"SELECT a.account_id, c.customer_id, title, version, description, balance, creation_Date \" +\n ...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }
67934497_24
{ "fields": [ { "declarator": "server = TestServer.getInstance()", "modifier": "@ClassRule\n public static", "original_string": "@ClassRule\n public static TestServer server = TestServer.getInstance();", "type": "TestServer", "var_name": "server" }, { "declarator"...
{ "body": "@Test\n public void testDataGetHandlerTest() throws ClientException {\n\n final Http2Client client = Http2Client.getInstance();\n final CountDownLatch latch = new CountDownLatch(1);\n final ClientConnection connection;\n try {\n connection = client.connect(new URI(...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(DataGetHandler.class)", "modifier": "static", "original_string": "static Logger logger = LoggerFactory.getLogger(DataGetHandler.class);", "type": "Logger", "var_name": "logger" }, { "declarator": "cluster =...
{ "body": "public DataGetHandler() {\n try {\n apidHost = cluster.serviceToUrl(\"https\", \"com.networknt.ad-1.0.0\", tag, null);\n connection = client.connect(new URI(apidHost), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, t...
{ "created": null, "fork": null, "fork_count": 59, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 67934497, "size": 5724, "stargazer_count": 130, "stars": null, "updates": null, "url": "https://github.com/networknt/light-example-4j" }