{"action":"created","comment":{"url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/comments/86268001","pull_request_review_id":6934282,"id":86268001,"diff_hunk":"@@ -0,0 +1,335 @@\n+/*\n+ * AutoRefactor - Eclipse plugin to automatically refactor Java code bases.\n+ *\n+ * Copyright (C) 2016 Luis Cruz - Android Refactoring Rules\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program under LICENSE-GNUGPL.  If not, see\n+ * <http://www.gnu.org/licenses/>.\n+ *\n+ *\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution under LICENSE-ECLIPSE, and is\n+ * available at http://www.eclipse.org/legal/epl-v10.html\n+ */\n+package org.autorefactor.refactoring.rules;\n+\n+import org.eclipse.jdt.core.dom.ASTNode;\n+import org.eclipse.jdt.core.dom.ASTVisitor;\n+import org.eclipse.jdt.core.dom.Assignment;\n+import org.eclipse.jdt.core.dom.Block;\n+import org.eclipse.jdt.core.dom.ExpressionStatement;\n+import org.eclipse.jdt.core.dom.IMethodBinding;\n+import org.eclipse.jdt.core.dom.ITypeBinding;\n+import org.eclipse.jdt.core.dom.MethodInvocation;\n+import org.eclipse.jdt.core.dom.SimpleName;\n+import org.eclipse.jdt.core.dom.Statement;\n+import org.eclipse.jdt.core.dom.VariableDeclarationFragment;\n+import static org.autorefactor.refactoring.ASTHelper.*;\n+import static org.eclipse.jdt.core.dom.ASTNode.*;\n+import org.autorefactor.refactoring.ASTBuilder;\n+import org.autorefactor.refactoring.Refactorings;\n+\n+/*\n+ * TODO when the last use of resource is as arg of a method invocation,\n+ * it should be assumed that the given method will take care of the release.\n+ * TODO Track local variables. E.g., when a TypedArray a is assigned to variable b,\n+ * release() should be called only in one variable.\n+ * TODO (low priority) check whether resources are being used after release.\n+ * TODO add support for FragmentTransaction.beginTransaction(). It can use method\n+ * chaining (which means local variable might not be present) and it can be released\n+ * by two methods: commit() and commitAllowingStateLoss().\n+ */\n+\n+/** See {@link #getDescription()} method. */\n+public class AndroidRecycleRefactoring extends AbstractRefactoringRule {\n+\n+    @Override\n+    public String getDescription() {\n+        return \"Many resources, such as TypedArrays, VelocityTrackers, etc., should be \"\n+                + \"recycled (with a recycle()/close() call) after use. \" + \"Inspired from \"\n+                + \"https://android.googlesource.com/platform/tools/base/+/master/lint/libs/lint-checks/src/main/\"\n+                + \"java/com/android/tools/lint/checks/CleanupDetector.java\";\n+    }\n+\n+    @Override\n+    public String getName() {\n+        return \"RecycleRefactoring\";\n+    }\n+\n+    private static boolean isMethodIgnoringParameters(MethodInvocation node, String typeQualifiedName,\n+            String methodName) {\n+        if (node == null) {\n+            return false;\n+        }\n+        final IMethodBinding methodBinding = node.resolveMethodBinding();\n+        if (methodBinding == null || !methodName.equals(methodBinding.getName())) {\n+            return false;\n+        }\n+        final ITypeBinding declaringClazz = methodBinding.getDeclaringClass();\n+        return instanceOf(declaringClazz, typeQualifiedName);\n+    }\n+\n+    private static boolean isMethodIgnoringParameters(MethodInvocation node, String typeQualifiedName,\n+            String[] methodNames) {\n+        boolean isSameMethod;\n+        for (String methodName : methodNames) {\n+            isSameMethod = isMethodIgnoringParameters(node, typeQualifiedName, methodName);\n+            if (isSameMethod) {\n+                return true;\n+            }\n+        }\n+        return false;\n+    }\n+\n+    private String methodNameToCleanupResource(MethodInvocation node) {\n+        if (isMethodIgnoringParameters(\n+                node,\n+                \"android.database.sqlite.SQLiteDatabase\",\n+                new String[]{\"query\", \"rawQuery\", \"queryWithFactory\", \"rawQueryWithFactory\"})\n+        ) {\n+            return \"close\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.content.ContentProvider\",\n+                new String[]{\"query\" , \"rawQuery\", \"queryWithFactory\", \"rawQueryWithFactory\"})\n+        ) {\n+            return \"close\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.content.ContentResolver\",\n+                new String[]{\"query\", \"rawQuery\", \"queryWithFactory\", \"rawQueryWithFactory\"})\n+        ) {\n+            return \"close\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.content.ContentProviderClient\",\n+                new String[]{\"query\", \"rawQuery\", \"queryWithFactory\", \"rawQueryWithFactory\"})\n+        ) {\n+            return \"close\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.content.Context\",\n+                \"obtainStyledAttributes\")\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.content.res.Resources\",\n+                new String[]{\"obtainTypedArray\", \"obtainAttributes\", \"obtainStyledAttributes\"})\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethod(\n+                node,\n+                \"android.view.VelocityTracker\",\n+                \"obtain\")\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.os.Handler\",\n+                \"obtainMessage\")\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.os.Message\",\n+                \"obtain\")\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethod(\n+                node,\n+                \"android.view.MotionEvent\",\n+                \"obtainNoHistory\", \"android.view.MotionEvent\")\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.view.MotionEvent\",\n+                \"obtain\")\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethod(\n+                node,\n+                \"android.os.Parcel\",\n+                \"obtain\")\n+        ) {\n+            return \"recycle\";\n+        } else if (isMethodIgnoringParameters(\n+                node,\n+                \"android.content.ContentResolver\",\n+                \"acquireContentProviderClient\")\n+        ) {\n+            return \"release\";\n+        }\n+        return null;\n+    }\n+\n+    @Override\n+    public boolean visit(MethodInvocation node) {\n+        String recycleMethodName = methodNameToCleanupResource(node);\n+        if (recycleMethodName != null) {\n+            SimpleName cursorExpression = null;\n+            ASTNode variableAssignmentNode = null;\n+            VariableDeclarationFragment variableDeclarationFragment =\n+                    (VariableDeclarationFragment) getFirstAncestorOrNull(node, VariableDeclarationFragment.class);\n+            if (variableDeclarationFragment != null) {\n+                cursorExpression = variableDeclarationFragment.getName();\n+                variableAssignmentNode = variableDeclarationFragment;\n+            } else {\n+                Assignment variableAssignment = getAncestor(node, Assignment.class);\n+                cursorExpression = (SimpleName) variableAssignment.getLeftHandSide();\n+                variableAssignmentNode = variableAssignment;\n+            }\n+            // Check whether it has been closed\n+            ClosePresenceChecker closePresenceChecker = new ClosePresenceChecker(cursorExpression, recycleMethodName);\n+            VisitorDecorator visitor = new VisitorDecorator(variableAssignmentNode, cursorExpression,\n+                    closePresenceChecker);\n+            Block block = getAncestor(node, Block.class);\n+            block.accept(visitor);\n+            if (!closePresenceChecker.isClosePresent()) {\n+                final ASTBuilder b = this.ctx.getASTBuilder();\n+                MethodInvocation closeInvocation = b.invoke(b.copy(cursorExpression), recycleMethodName);\n+                ExpressionStatement expressionStatement = b.getAST().newExpressionStatement(closeInvocation);\n+                Statement lastCursorAccess = closePresenceChecker.getLastCursorStatementInBlock(block);\n+                if (lastCursorAccess.getNodeType() != ASTNode.RETURN_STATEMENT) {\n+                    final Refactorings r = this.ctx.getRefactorings();\n+                    r.insertAfter(expressionStatement, lastCursorAccess);\n+                    return DO_NOT_VISIT_SUBTREE;\n+                }\n+            }\n+        }\n+        return VISIT_SUBTREE;\n+    }\n+\n+    private class ClosePresenceChecker extends ASTVisitor {\n+        private boolean closePresent;\n+        private SimpleName lastCursorUse;\n+        private SimpleName cursorSimpleName;\n+        private String recycleMethodName;\n+\n+        /**\n+         * @param cursorSimpleName Variable name of cursor\n+         * @param recycleMethodName Recycle method name\n+         */\n+        public ClosePresenceChecker(SimpleName cursorSimpleName, String recycleMethodName) {\n+            super();\n+            this.closePresent = false;\n+            this.lastCursorUse = null;\n+            this.cursorSimpleName = cursorSimpleName;\n+            this.recycleMethodName = recycleMethodName;\n+        }\n+\n+\n+        /**\n+         * @return the closePresent\n+         */","path":"plugin/src/main/java/org/autorefactor/refactoring/rules/AndroidRecycleRefactoring.java","position":237,"original_position":237,"commit_id":"041693d20668a37a11d77a5a6aa9d12e265626bc","original_commit_id":"041693d20668a37a11d77a5a6aa9d12e265626bc","user":{"login":"JnRouvignac","id":3717323,"avatar_url":"https://avatars.githubusercontent.com/u/3717323?v=3","gravatar_id":"","url":"https://api.github.com/users/JnRouvignac","html_url":"https://github.com/JnRouvignac","followers_url":"https://api.github.com/users/JnRouvignac/followers","following_url":"https://api.github.com/users/JnRouvignac/following{/other_user}","gists_url":"https://api.github.com/users/JnRouvignac/gists{/gist_id}","starred_url":"https://api.github.com/users/JnRouvignac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JnRouvignac/subscriptions","organizations_url":"https://api.github.com/users/JnRouvignac/orgs","repos_url":"https://api.github.com/users/JnRouvignac/repos","events_url":"https://api.github.com/users/JnRouvignac/events{/privacy}","received_events_url":"https://api.github.com/users/JnRouvignac/received_events","type":"User","site_admin":false},"body":"Please remove empty javadoc.","created_at":"2016-11-02T23:57:31Z","updated_at":"2016-11-02T23:57:31Z","html_url":"https://github.com/JnRouvignac/AutoRefactor/pull/225#discussion_r86268001","pull_request_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225","_links":{"self":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/comments/86268001"},"html":{"href":"https://github.com/JnRouvignac/AutoRefactor/pull/225#discussion_r86268001"},"pull_request":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225"}}},"pull_request":{"url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225","id":91776914,"html_url":"https://github.com/JnRouvignac/AutoRefactor/pull/225","diff_url":"https://github.com/JnRouvignac/AutoRefactor/pull/225.diff","patch_url":"https://github.com/JnRouvignac/AutoRefactor/pull/225.patch","issue_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/225","number":225,"state":"open","locked":false,"title":"Android Recycle Rule. Closes #212","user":{"login":"luiscruz","id":1080714,"avatar_url":"https://avatars.githubusercontent.com/u/1080714?v=3","gravatar_id":"","url":"https://api.github.com/users/luiscruz","html_url":"https://github.com/luiscruz","followers_url":"https://api.github.com/users/luiscruz/followers","following_url":"https://api.github.com/users/luiscruz/following{/other_user}","gists_url":"https://api.github.com/users/luiscruz/gists{/gist_id}","starred_url":"https://api.github.com/users/luiscruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luiscruz/subscriptions","organizations_url":"https://api.github.com/users/luiscruz/orgs","repos_url":"https://api.github.com/users/luiscruz/repos","events_url":"https://api.github.com/users/luiscruz/events{/privacy}","received_events_url":"https://api.github.com/users/luiscruz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-01T12:43:07Z","updated_at":"2016-11-02T23:57:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef5beab0b5b1831a3d6206386f408a695dd64181","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225/commits","review_comments_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225/comments","review_comment_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/225/comments","statuses_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/statuses/041693d20668a37a11d77a5a6aa9d12e265626bc","head":{"label":"luiscruz:recycle","ref":"recycle","sha":"041693d20668a37a11d77a5a6aa9d12e265626bc","user":{"login":"luiscruz","id":1080714,"avatar_url":"https://avatars.githubusercontent.com/u/1080714?v=3","gravatar_id":"","url":"https://api.github.com/users/luiscruz","html_url":"https://github.com/luiscruz","followers_url":"https://api.github.com/users/luiscruz/followers","following_url":"https://api.github.com/users/luiscruz/following{/other_user}","gists_url":"https://api.github.com/users/luiscruz/gists{/gist_id}","starred_url":"https://api.github.com/users/luiscruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luiscruz/subscriptions","organizations_url":"https://api.github.com/users/luiscruz/orgs","repos_url":"https://api.github.com/users/luiscruz/repos","events_url":"https://api.github.com/users/luiscruz/events{/privacy}","received_events_url":"https://api.github.com/users/luiscruz/received_events","type":"User","site_admin":false},"repo":{"id":68595867,"name":"AutoRefactor","full_name":"luiscruz/AutoRefactor","owner":{"login":"luiscruz","id":1080714,"avatar_url":"https://avatars.githubusercontent.com/u/1080714?v=3","gravatar_id":"","url":"https://api.github.com/users/luiscruz","html_url":"https://github.com/luiscruz","followers_url":"https://api.github.com/users/luiscruz/followers","following_url":"https://api.github.com/users/luiscruz/following{/other_user}","gists_url":"https://api.github.com/users/luiscruz/gists{/gist_id}","starred_url":"https://api.github.com/users/luiscruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luiscruz/subscriptions","organizations_url":"https://api.github.com/users/luiscruz/orgs","repos_url":"https://api.github.com/users/luiscruz/repos","events_url":"https://api.github.com/users/luiscruz/events{/privacy}","received_events_url":"https://api.github.com/users/luiscruz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luiscruz/AutoRefactor","description":"Eclipse plugin to automatically refactor Java code bases","fork":true,"url":"https://api.github.com/repos/luiscruz/AutoRefactor","forks_url":"https://api.github.com/repos/luiscruz/AutoRefactor/forks","keys_url":"https://api.github.com/repos/luiscruz/AutoRefactor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luiscruz/AutoRefactor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luiscruz/AutoRefactor/teams","hooks_url":"https://api.github.com/repos/luiscruz/AutoRefactor/hooks","issue_events_url":"https://api.github.com/repos/luiscruz/AutoRefactor/issues/events{/number}","events_url":"https://api.github.com/repos/luiscruz/AutoRefactor/events","assignees_url":"https://api.github.com/repos/luiscruz/AutoRefactor/assignees{/user}","branches_url":"https://api.github.com/repos/luiscruz/AutoRefactor/branches{/branch}","tags_url":"https://api.github.com/repos/luiscruz/AutoRefactor/tags","blobs_url":"https://api.github.com/repos/luiscruz/AutoRefactor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luiscruz/AutoRefactor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luiscruz/AutoRefactor/git/refs{/sha}","trees_url":"https://api.github.com/repos/luiscruz/AutoRefactor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luiscruz/AutoRefactor/statuses/{sha}","languages_url":"https://api.github.com/repos/luiscruz/AutoRefactor/languages","stargazers_url":"https://api.github.com/repos/luiscruz/AutoRefactor/stargazers","contributors_url":"https://api.github.com/repos/luiscruz/AutoRefactor/contributors","subscribers_url":"https://api.github.com/repos/luiscruz/AutoRefactor/subscribers","subscription_url":"https://api.github.com/repos/luiscruz/AutoRefactor/subscription","commits_url":"https://api.github.com/repos/luiscruz/AutoRefactor/commits{/sha}","git_commits_url":"https://api.github.com/repos/luiscruz/AutoRefactor/git/commits{/sha}","comments_url":"https://api.github.com/repos/luiscruz/AutoRefactor/comments{/number}","issue_comment_url":"https://api.github.com/repos/luiscruz/AutoRefactor/issues/comments{/number}","contents_url":"https://api.github.com/repos/luiscruz/AutoRefactor/contents/{+path}","compare_url":"https://api.github.com/repos/luiscruz/AutoRefactor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luiscruz/AutoRefactor/merges","archive_url":"https://api.github.com/repos/luiscruz/AutoRefactor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luiscruz/AutoRefactor/downloads","issues_url":"https://api.github.com/repos/luiscruz/AutoRefactor/issues{/number}","pulls_url":"https://api.github.com/repos/luiscruz/AutoRefactor/pulls{/number}","milestones_url":"https://api.github.com/repos/luiscruz/AutoRefactor/milestones{/number}","notifications_url":"https://api.github.com/repos/luiscruz/AutoRefactor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luiscruz/AutoRefactor/labels{/name}","releases_url":"https://api.github.com/repos/luiscruz/AutoRefactor/releases{/id}","deployments_url":"https://api.github.com/repos/luiscruz/AutoRefactor/deployments","created_at":"2016-09-19T10:36:57Z","updated_at":"2016-09-19T10:36:58Z","pushed_at":"2016-11-02T16:37:57Z","git_url":"git://github.com/luiscruz/AutoRefactor.git","ssh_url":"git@github.com:luiscruz/AutoRefactor.git","clone_url":"https://github.com/luiscruz/AutoRefactor.git","svn_url":"https://github.com/luiscruz/AutoRefactor","homepage":"http://autorefactor.org","size":2411,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JnRouvignac:master","ref":"master","sha":"06b057a2059363278714a32fd87bb880cdaf2bc9","user":{"login":"JnRouvignac","id":3717323,"avatar_url":"https://avatars.githubusercontent.com/u/3717323?v=3","gravatar_id":"","url":"https://api.github.com/users/JnRouvignac","html_url":"https://github.com/JnRouvignac","followers_url":"https://api.github.com/users/JnRouvignac/followers","following_url":"https://api.github.com/users/JnRouvignac/following{/other_user}","gists_url":"https://api.github.com/users/JnRouvignac/gists{/gist_id}","starred_url":"https://api.github.com/users/JnRouvignac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JnRouvignac/subscriptions","organizations_url":"https://api.github.com/users/JnRouvignac/orgs","repos_url":"https://api.github.com/users/JnRouvignac/repos","events_url":"https://api.github.com/users/JnRouvignac/events{/privacy}","received_events_url":"https://api.github.com/users/JnRouvignac/received_events","type":"User","site_admin":false},"repo":{"id":8567172,"name":"AutoRefactor","full_name":"JnRouvignac/AutoRefactor","owner":{"login":"JnRouvignac","id":3717323,"avatar_url":"https://avatars.githubusercontent.com/u/3717323?v=3","gravatar_id":"","url":"https://api.github.com/users/JnRouvignac","html_url":"https://github.com/JnRouvignac","followers_url":"https://api.github.com/users/JnRouvignac/followers","following_url":"https://api.github.com/users/JnRouvignac/following{/other_user}","gists_url":"https://api.github.com/users/JnRouvignac/gists{/gist_id}","starred_url":"https://api.github.com/users/JnRouvignac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JnRouvignac/subscriptions","organizations_url":"https://api.github.com/users/JnRouvignac/orgs","repos_url":"https://api.github.com/users/JnRouvignac/repos","events_url":"https://api.github.com/users/JnRouvignac/events{/privacy}","received_events_url":"https://api.github.com/users/JnRouvignac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JnRouvignac/AutoRefactor","description":"Eclipse plugin to automatically refactor Java code bases","fork":false,"url":"https://api.github.com/repos/JnRouvignac/AutoRefactor","forks_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/forks","keys_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/teams","hooks_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/hooks","issue_events_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/events{/number}","events_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/events","assignees_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/assignees{/user}","branches_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/branches{/branch}","tags_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/tags","blobs_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/git/refs{/sha}","trees_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/statuses/{sha}","languages_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/languages","stargazers_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/stargazers","contributors_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/contributors","subscribers_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/subscribers","subscription_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/subscription","commits_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/commits{/sha}","git_commits_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/git/commits{/sha}","comments_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/comments{/number}","issue_comment_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/comments{/number}","contents_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/contents/{+path}","compare_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/merges","archive_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/downloads","issues_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues{/number}","pulls_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls{/number}","milestones_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/milestones{/number}","notifications_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/labels{/name}","releases_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/releases{/id}","deployments_url":"https://api.github.com/repos/JnRouvignac/AutoRefactor/deployments","created_at":"2013-03-04T23:05:16Z","updated_at":"2016-10-31T14:43:39Z","pushed_at":"2016-11-02T16:38:15Z","git_url":"git://github.com/JnRouvignac/AutoRefactor.git","ssh_url":"git@github.com:JnRouvignac/AutoRefactor.git","clone_url":"https://github.com/JnRouvignac/AutoRefactor.git","svn_url":"https://github.com/JnRouvignac/AutoRefactor","homepage":"http://autorefactor.org","size":2633,"stargazers_count":118,"watchers_count":118,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":96,"forks":21,"open_issues":96,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225"},"html":{"href":"https://github.com/JnRouvignac/AutoRefactor/pull/225"},"issue":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/225"},"comments":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/issues/225/comments"},"review_comments":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225/comments"},"review_comment":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/pulls/225/commits"},"statuses":{"href":"https://api.github.com/repos/JnRouvignac/AutoRefactor/statuses/041693d20668a37a11d77a5a6aa9d12e265626bc"}}}}
{"actor":{"display_login":"JnRouvignac"}}