{"action":"created","comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/comments/41172298","id":41172298,"diff_hunk":"@@ -0,0 +1,342 @@\n+/**\n+ * Created by Pasin Suriyentrakorn on 8/29/15.\n+ * <p/>\n+ * Copyright (c) 2015 Couchbase, Inc All rights reserved.\n+ * <p/>\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file\n+ * except in compliance with the License. You may obtain a copy of the License at\n+ * <p/>\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ * <p/>\n+ * Unless required by applicable law or agreed to in writing, software distributed under the\n+ * License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\n+ * either express or implied. See the License for the specific language governing permissions\n+ * and limitations under the License.\n+ */\n+\n+package com.couchbase.lite.support.action;\n+\n+import com.couchbase.lite.Misc;\n+import com.couchbase.lite.support.FileDirUtils;\n+import com.couchbase.lite.util.Log;\n+\n+import java.io.File;\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+\n+/**\n+ * An AtomicAction implementation to provide an ability to perform actions,\n+ * back them out if there is an error, and clean up.\n+ */\n+public class Action implements AtomicAction {\n+    private List<ActionBlock> peforms;\n+    private List<ActionBlock> backouts;\n+    private List<ActionBlock> cleanUps;\n+\n+    private int nextStep;\n+\n+    private Exception lastError;\n+    private int failedStep;\n+\n+    private static ActionBlock nullAction;\n+    static {\n+        nullAction = new ActionBlock() {\n+            @Override\n+            public void execute() throws ActionException { }\n+        };\n+    }\n+\n+    public Action() {\n+        peforms = new ArrayList<ActionBlock>();\n+        backouts = new ArrayList<ActionBlock>();\n+        cleanUps = new ArrayList<ActionBlock>();\n+        nextStep = 0;\n+    }\n+\n+    public Action(ActionBlock perform, ActionBlock backout, ActionBlock cleanup) {\n+        this();\n+        add(perform, backout, cleanup);\n+    }\n+\n+    /**\n+     * @return Last exception occurred\n+     */\n+    public Exception getLastError() {\n+        return lastError;\n+    }\n+\n+    /**\n+     * @return Last failure step\n+     */\n+    public int getFailedStep() {\n+        return failedStep;\n+    }\n+\n+    /**\n+     * Adds an action as a step of thid one.\n+     * @param action\n+     */\n+    public void add(final AtomicAction action) {\n+        if (action instanceof Action) {\n+            Action a = (Action)action;\n+            peforms.addAll(a.peforms);\n+            backouts.addAll(a.backouts);\n+            cleanUps.addAll(a.cleanUps);\n+        } else {\n+            add(new ActionBlock() {\n+                @Override\n+                public void execute() throws ActionException {\n+                    action.perform();\n+                }\n+            }, new ActionBlock() {\n+                @Override\n+                public void execute() throws ActionException {\n+                    action.backout();\n+                }\n+            }, new ActionBlock() {\n+                @Override\n+                public void execute() throws ActionException {\n+                    action.cleanup();\n+                }\n+            });\n+        }\n+    }\n+\n+    /**\n+     * Adds an action as a step of this one. The action has three components, each optional.\n+     * @param perform A block that tries to perform the action, or returns an error if it fails.\n+     *                (If the block fails, it should clean up; the backOut will _not_ be called!)\n+     * @param backout A block that undoes the effect of the action; it will be called if a _later_\n+     *                action fails, so that the system can be returned to the initial state.\n+     * @param cleanup A block that performs any necessary cleanup after all actions have been\n+     *                performed (e.g. deleting a temporary file.)\n+     */\n+    public void add(ActionBlock perform, ActionBlock backout, ActionBlock cleanup) {\n+        peforms.add(perform != null ? perform : nullAction);\n+        backouts.add(backout != null ? backout : nullAction);\n+        cleanUps.add(cleanup != null ? cleanup : nullAction);\n+    }\n+\n+    /**\n+     * Adds an action as a step of this one. The action has two components (backout and cleanup\n+     * are the same action), each optional.\n+     * @param perform A block that tries to perform the action, or returns an error if it fails.\n+     *                (If the block fails, it should clean up; the backOut will _not_ be called!)\n+     * @param backoutOrCleanup A block that can be both backout and cleanup block.A backout block.\n+     */\n+    public void add(ActionBlock perform, ActionBlock backoutOrCleanup) {\n+        add(perform, backoutOrCleanup, backoutOrCleanup);\n+    }\n+\n+    /**\n+     * Performs all the actions in order.\n+     * If any action fails, backs out the previously performed actions in reverse order.\n+     * If the actions succeeded, cleans them up in reverse order.\n+     * The `lastError` property is set to the exception thrown by the failed perform block.\n+     * The `failedStep` property is set to the index of the failed perform block.\n+     * @throws ActionException\n+     */\n+    public void run() throws ActionException {\n+        try {\n+            perform();\n+            try {\n+                cleanup(); // Ignore exception\n+            } catch (ActionException e) {}\n+            lastError = null;\n+        } catch (ActionException e) {\n+            // (perform: has already backed out whatever it did)\n+            lastError = e;\n+            throw e;\n+        }\n+    }\n+\n+    @Override\n+    public void perform() throws ActionException {\n+        if (nextStep > 0)\n+            throw new IllegalStateException(\"Actions have already been run\");\n+\n+        failedStep = -1;\n+        for (; nextStep < peforms.size(); ++nextStep) {\n+            try {\n+                doAction(peforms);\n+            } catch (ActionException e) {\n+                failedStep = nextStep;\n+                if (nextStep > 0) {\n+                    try {\n+                        backout(); // Ignore error\n+                    } catch (ActionException backoutEx) {}\n+                }\n+                throw e;\n+            }\n+        }\n+    }\n+\n+    @Override\n+    public void backout() throws ActionException {\n+        if (nextStep == 0)\n+            throw new IllegalStateException(\"Actions have not been run\");\n+\n+        while(nextStep-- > 0) {","path":"src/main/java/com/couchbase/lite/support/action/Action.java","position":180,"original_position":180,"commit_id":"bd63e314a843d52d8158a5a6ad49703e7ba644d6","original_commit_id":"0c523b38a4a14ea24b2b6f8fa58a7fb5e7c3e378","user":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"body":"```\r\n* @param perform A block that tries to perform the action, or returns an error if it fails.\r\n*                (If the block fails, it should clean up; the backOut will _not_ be called!)\r\n```\r\nperform should clean up itself if error occurs. Thanks.","created_at":"2015-10-05T17:31:11Z","updated_at":"2015-10-05T17:31:11Z","html_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/774#discussion_r41172298","pull_request_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774","_links":{"self":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/comments/41172298"},"html":{"href":"https://github.com/couchbase/couchbase-lite-java-core/pull/774#discussion_r41172298"},"pull_request":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774"}}},"pull_request":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774","id":46661160,"html_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/774","diff_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/774.diff","patch_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/774.patch","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/774","number":774,"state":"open","locked":false,"title":"Fixed #719 #720 Support SQLite database and attachment rekey","user":{"login":"pasin","id":801454,"avatar_url":"https://avatars.githubusercontent.com/u/801454?v=3","gravatar_id":"","url":"https://api.github.com/users/pasin","html_url":"https://github.com/pasin","followers_url":"https://api.github.com/users/pasin/followers","following_url":"https://api.github.com/users/pasin/following{/other_user}","gists_url":"https://api.github.com/users/pasin/gists{/gist_id}","starred_url":"https://api.github.com/users/pasin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasin/subscriptions","organizations_url":"https://api.github.com/users/pasin/orgs","repos_url":"https://api.github.com/users/pasin/repos","events_url":"https://api.github.com/users/pasin/events{/privacy}","received_events_url":"https://api.github.com/users/pasin/received_events","type":"User","site_admin":false},"body":"- Implemented SQLite database and attachment rekey\r\n- API Change:\r\n[Added] Database.changeEncryptionKey(final Object newKeyOrPassword)\r\n[Added] Manager.registerEncryptionKey(Object keyOrPassword, String databaseName)\r\n[Removed] Manager.registerEncryptionKey(String password, String databaseName)\r\n[Removed] Manager.registerEncryptionKey(byte[] keys, String databaseName)\r\n[Added] Context.getTempDir()\r\n\r\n#719 #720","created_at":"2015-10-02T17:35:20Z","updated_at":"2015-10-05T17:31:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"329f1bdcf5e05c8a12b4c1e3176ce6eae3eaa31e","assignee":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/6","html_url":"https://github.com/couchbase/couchbase-lite-java-core/milestones/1.2.0","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/6/labels","id":771954,"number":6,"title":"1.2.0","description":"","creator":{"login":"jessliu","id":4998909,"avatar_url":"https://avatars.githubusercontent.com/u/4998909?v=3","gravatar_id":"","url":"https://api.github.com/users/jessliu","html_url":"https://github.com/jessliu","followers_url":"https://api.github.com/users/jessliu/followers","following_url":"https://api.github.com/users/jessliu/following{/other_user}","gists_url":"https://api.github.com/users/jessliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessliu/subscriptions","organizations_url":"https://api.github.com/users/jessliu/orgs","repos_url":"https://api.github.com/users/jessliu/repos","events_url":"https://api.github.com/users/jessliu/events{/privacy}","received_events_url":"https://api.github.com/users/jessliu/received_events","type":"User","site_admin":false},"open_issues":48,"closed_issues":47,"state":"open","created_at":"2014-08-29T17:31:06Z","updated_at":"2015-10-02T22:38:57Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774/commits","review_comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774/comments","review_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/774/comments","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/statuses/bd63e314a843d52d8158a5a6ad49703e7ba644d6","head":{"label":"couchbase:feature/rekey","ref":"feature/rekey","sha":"bd63e314a843d52d8158a5a6ad49703e7ba644d6","user":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"repo":{"id":12310030,"name":"couchbase-lite-java-core","full_name":"couchbase/couchbase-lite-java-core","owner":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/couchbase/couchbase-lite-java-core","description":"Couchbase Lite Java core library","fork":false,"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core","forks_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/forks","keys_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/teams","hooks_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/hooks","issue_events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/events{/number}","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/events","assignees_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/assignees{/user}","branches_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/branches{/branch}","tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/tags","blobs_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/statuses/{sha}","languages_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/languages","stargazers_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/stargazers","contributors_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/contributors","subscribers_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/subscribers","subscription_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/subscription","commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/contents/{+path}","compare_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/merges","archive_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/downloads","issues_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues{/number}","pulls_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls{/number}","milestones_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones{/number}","notifications_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels{/name}","releases_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/releases{/id}","created_at":"2013-08-22T23:13:23Z","updated_at":"2015-08-17T06:29:35Z","pushed_at":"2015-10-05T06:52:43Z","git_url":"git://github.com/couchbase/couchbase-lite-java-core.git","ssh_url":"git@github.com:couchbase/couchbase-lite-java-core.git","clone_url":"https://github.com/couchbase/couchbase-lite-java-core.git","svn_url":"https://github.com/couchbase/couchbase-lite-java-core","homepage":"","size":11660,"stargazers_count":31,"watchers_count":31,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":164,"forks":54,"open_issues":164,"watchers":31,"default_branch":"master"}},"base":{"label":"couchbase:master","ref":"master","sha":"cf0651d3669a550860574726342ea772fe9b6c4c","user":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"repo":{"id":12310030,"name":"couchbase-lite-java-core","full_name":"couchbase/couchbase-lite-java-core","owner":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/couchbase/couchbase-lite-java-core","description":"Couchbase Lite Java core library","fork":false,"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core","forks_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/forks","keys_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/teams","hooks_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/hooks","issue_events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/events{/number}","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/events","assignees_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/assignees{/user}","branches_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/branches{/branch}","tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/tags","blobs_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/statuses/{sha}","languages_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/languages","stargazers_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/stargazers","contributors_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/contributors","subscribers_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/subscribers","subscription_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/subscription","commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/contents/{+path}","compare_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/merges","archive_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/downloads","issues_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues{/number}","pulls_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls{/number}","milestones_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones{/number}","notifications_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels{/name}","releases_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/releases{/id}","created_at":"2013-08-22T23:13:23Z","updated_at":"2015-08-17T06:29:35Z","pushed_at":"2015-10-05T06:52:43Z","git_url":"git://github.com/couchbase/couchbase-lite-java-core.git","ssh_url":"git@github.com:couchbase/couchbase-lite-java-core.git","clone_url":"https://github.com/couchbase/couchbase-lite-java-core.git","svn_url":"https://github.com/couchbase/couchbase-lite-java-core","homepage":"","size":11660,"stargazers_count":31,"watchers_count":31,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":164,"forks":54,"open_issues":164,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774"},"html":{"href":"https://github.com/couchbase/couchbase-lite-java-core/pull/774"},"issue":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/774"},"comments":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/774/comments"},"review_comments":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774/comments"},"review_comment":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/774/commits"},"statuses":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/statuses/bd63e314a843d52d8158a5a6ad49703e7ba644d6"}}}}