{"action":"created","comment":{"url":"https://api.github.com/repos/systers/powerup-android/pulls/comments/165831015","pull_request_review_id":93832762,"id":165831015,"diff_hunk":"@@ -0,0 +1,194 @@\n+(function (window, document) {\n+    \"use strict\";\n+\n+    var tabs = {};\n+\n+    function changeElementClass(element, classValue) {\n+        if (element.getAttribute(\"className\")) {\n+            element.setAttribute(\"className\", classValue);\n+        } else {\n+            element.setAttribute(\"class\", classValue);\n+        }\n+    }\n+\n+    function getClassAttribute(element) {\n+        if (element.getAttribute(\"className\")) {\n+            return element.getAttribute(\"className\");\n+        } else {\n+            return element.getAttribute(\"class\");\n+        }\n+    }\n+\n+    function addClass(element, classValue) {\n+        changeElementClass(element, getClassAttribute(element) + \" \" + classValue);\n+    }\n+\n+    function removeClass(element, classValue) {\n+        changeElementClass(element, getClassAttribute(element).replace(classValue, \"\"));\n+    }\n+\n+    function initTabs() {\n+        var container = document.getElementById(\"tabs\");\n+\n+        tabs.tabs = findTabs(container);\n+        tabs.titles = findTitles(tabs.tabs);\n+        tabs.headers = findHeaders(container);\n+        tabs.select = select;\n+        tabs.deselectAll = deselectAll;\n+        tabs.select(0);\n+\n+        return true;\n+    }\n+\n+    function getCheckBox() {\n+        return document.getElementById(\"line-wrapping-toggle\");\n+    }\n+\n+    function getLabelForCheckBox() {\n+        return document.getElementById(\"label-for-line-wrapping-toggle\");\n+    }\n+\n+    function findCodeBlocks() {\n+        var spans = document.getElementById(\"tabs\").getElementsByTagName(\"span\");\n+        var codeBlocks = [];\n+        for (var i = 0; i < spans.length; ++i) {\n+            if (spans[i].className.indexOf(\"code\") >= 0) {\n+                codeBlocks.push(spans[i]);\n+            }\n+        }\n+        return codeBlocks;\n+    }\n+\n+    function forAllCodeBlocks(operation) {\n+        var codeBlocks = findCodeBlocks();\n+\n+        for (var i = 0; i < codeBlocks.length; ++i) {\n+            operation(codeBlocks[i], \"wrapped\");\n+        }\n+    }\n+\n+    function toggleLineWrapping() {\n+        var checkBox = getCheckBox();\n+\n+        if (checkBox.checked) {\n+            forAllCodeBlocks(addClass);\n+        } else {\n+            forAllCodeBlocks(removeClass);\n+        }\n+    }\n+\n+    function initControls() {\n+        if (findCodeBlocks().length > 0) {\n+            var checkBox = getCheckBox();\n+            var label = getLabelForCheckBox();\n+\n+            checkBox.onclick = toggleLineWrapping;\n+            checkBox.checked = false;\n+\n+            removeClass(label, \"hidden\");\n+         }\n+    }\n+\n+    function switchTab() {\n+        var id = this.id.substr(1);\n+\n+        for (var i = 0; i < tabs.tabs.length; i++) {\n+            if (tabs.tabs[i].id === id) {\n+                tabs.select(i);\n+                break;\n+            }\n+        }\n+\n+        return false;\n+    }\n+\n+    function select(i) {\n+        this.deselectAll();\n+\n+        changeElementClass(this.tabs[i], \"tab selected\");\n+        changeElementClass(this.headers[i], \"selected\");\n+\n+        while (this.headers[i].firstChild) {\n+            this.headers[i].removeChild(this.headers[i].firstChild);\n+        }\n+\n+        var h2 = document.createElement(\"H2\");\n+\n+        h2.appendChild(document.createTextNode(this.titles[i]));\n+        this.headers[i].appendChild(h2);\n+    }\n+\n+    function deselectAll() {\n+        for (var i = 0; i < this.tabs.length; i++) {\n+            changeElementClass(this.tabs[i], \"tab deselected\");\n+            changeElementClass(this.headers[i], \"deselected\");\n+\n+            while (this.headers[i].firstChild) {\n+                this.headers[i].removeChild(this.headers[i].firstChild);\n+            }\n+\n+            var a = document.createElement(\"A\");\n+\n+            a.setAttribute(\"id\", \"ltab\" + i);\n+            a.setAttribute(\"href\", \"#tab\" + i);\n+            a.onclick = switchTab;\n+            a.appendChild(document.createTextNode(this.titles[i]));","path":"profile/js/report.js","position":135,"original_position":135,"commit_id":"8cca0fb81bf027023fb3e832809dc4ea720bdd4f","original_commit_id":"8cca0fb81bf027023fb3e832809dc4ea720bdd4f","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Function Call Object Injection Sink (security/detect-object-injection)](https://www.codacy.com/app/MeepyMay/powerup-android/pullRequest?prid=1299152)","created_at":"2018-02-04T01:53:08Z","updated_at":"2018-02-04T01:53:08Z","html_url":"https://github.com/systers/powerup-android/pull/872#discussion_r165831015","pull_request_url":"https://api.github.com/repos/systers/powerup-android/pulls/872","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/systers/powerup-android/pulls/comments/165831015"},"html":{"href":"https://github.com/systers/powerup-android/pull/872#discussion_r165831015"},"pull_request":{"href":"https://api.github.com/repos/systers/powerup-android/pulls/872"}}},"pull_request":{"url":"https://api.github.com/repos/systers/powerup-android/pulls/872","id":161515890,"html_url":"https://github.com/systers/powerup-android/pull/872","diff_url":"https://github.com/systers/powerup-android/pull/872.diff","patch_url":"https://github.com/systers/powerup-android/pull/872.patch","issue_url":"https://api.github.com/repos/systers/powerup-android/issues/872","number":872,"state":"open","locked":false,"title":"Program: GCI Profile Build Using Command Line","user":{"login":"Aryaman21","id":19228432,"avatar_url":"https://avatars1.githubusercontent.com/u/19228432?v=4","gravatar_id":"","url":"https://api.github.com/users/Aryaman21","html_url":"https://github.com/Aryaman21","followers_url":"https://api.github.com/users/Aryaman21/followers","following_url":"https://api.github.com/users/Aryaman21/following{/other_user}","gists_url":"https://api.github.com/users/Aryaman21/gists{/gist_id}","starred_url":"https://api.github.com/users/Aryaman21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aryaman21/subscriptions","organizations_url":"https://api.github.com/users/Aryaman21/orgs","repos_url":"https://api.github.com/users/Aryaman21/repos","events_url":"https://api.github.com/users/Aryaman21/events{/privacy}","received_events_url":"https://api.github.com/users/Aryaman21/received_events","type":"User","site_admin":false},"body":"### Description\r\nPull Request as part of the GCI'17 task 'Profile build using command line'\r\n### Screenshots\r\n![screenshot 149](https://user-images.githubusercontent.com/19228432/34648565-63008ed8-f3c1-11e7-904f-05eeb0cb2f2b.png)\r\n![profile-output directory](https://user-images.githubusercontent.com/19228432/34648566-675789f0-f3c1-11e7-9c1b-072e8765c8f3.PNG)\r\n  ","created_at":"2018-01-07T10:11:36Z","updated_at":"2018-02-04T01:53:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7307ead8e9b472cce20a5847203656ddfd970755","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/systers/powerup-android/pulls/872/commits","review_comments_url":"https://api.github.com/repos/systers/powerup-android/pulls/872/comments","review_comment_url":"https://api.github.com/repos/systers/powerup-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systers/powerup-android/issues/872/comments","statuses_url":"https://api.github.com/repos/systers/powerup-android/statuses/8cca0fb81bf027023fb3e832809dc4ea720bdd4f","head":{"label":"Aryaman21:new-task","ref":"new-task","sha":"8cca0fb81bf027023fb3e832809dc4ea720bdd4f","user":{"login":"Aryaman21","id":19228432,"avatar_url":"https://avatars1.githubusercontent.com/u/19228432?v=4","gravatar_id":"","url":"https://api.github.com/users/Aryaman21","html_url":"https://github.com/Aryaman21","followers_url":"https://api.github.com/users/Aryaman21/followers","following_url":"https://api.github.com/users/Aryaman21/following{/other_user}","gists_url":"https://api.github.com/users/Aryaman21/gists{/gist_id}","starred_url":"https://api.github.com/users/Aryaman21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aryaman21/subscriptions","organizations_url":"https://api.github.com/users/Aryaman21/orgs","repos_url":"https://api.github.com/users/Aryaman21/repos","events_url":"https://api.github.com/users/Aryaman21/events{/privacy}","received_events_url":"https://api.github.com/users/Aryaman21/received_events","type":"User","site_admin":false},"repo":{"id":112774027,"name":"powerup-android","full_name":"Aryaman21/powerup-android","owner":{"login":"Aryaman21","id":19228432,"avatar_url":"https://avatars1.githubusercontent.com/u/19228432?v=4","gravatar_id":"","url":"https://api.github.com/users/Aryaman21","html_url":"https://github.com/Aryaman21","followers_url":"https://api.github.com/users/Aryaman21/followers","following_url":"https://api.github.com/users/Aryaman21/following{/other_user}","gists_url":"https://api.github.com/users/Aryaman21/gists{/gist_id}","starred_url":"https://api.github.com/users/Aryaman21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aryaman21/subscriptions","organizations_url":"https://api.github.com/users/Aryaman21/orgs","repos_url":"https://api.github.com/users/Aryaman21/repos","events_url":"https://api.github.com/users/Aryaman21/events{/privacy}","received_events_url":"https://api.github.com/users/Aryaman21/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Aryaman21/powerup-android","description":"PowerUp is an educational choose-your-own-adventure game that utilizes a users uploaded curriculum to empower pre-adolescents to take charge of their reproductive health. This is the Android version of the game.","fork":true,"url":"https://api.github.com/repos/Aryaman21/powerup-android","forks_url":"https://api.github.com/repos/Aryaman21/powerup-android/forks","keys_url":"https://api.github.com/repos/Aryaman21/powerup-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aryaman21/powerup-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aryaman21/powerup-android/teams","hooks_url":"https://api.github.com/repos/Aryaman21/powerup-android/hooks","issue_events_url":"https://api.github.com/repos/Aryaman21/powerup-android/issues/events{/number}","events_url":"https://api.github.com/repos/Aryaman21/powerup-android/events","assignees_url":"https://api.github.com/repos/Aryaman21/powerup-android/assignees{/user}","branches_url":"https://api.github.com/repos/Aryaman21/powerup-android/branches{/branch}","tags_url":"https://api.github.com/repos/Aryaman21/powerup-android/tags","blobs_url":"https://api.github.com/repos/Aryaman21/powerup-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aryaman21/powerup-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aryaman21/powerup-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aryaman21/powerup-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aryaman21/powerup-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Aryaman21/powerup-android/languages","stargazers_url":"https://api.github.com/repos/Aryaman21/powerup-android/stargazers","contributors_url":"https://api.github.com/repos/Aryaman21/powerup-android/contributors","subscribers_url":"https://api.github.com/repos/Aryaman21/powerup-android/subscribers","subscription_url":"https://api.github.com/repos/Aryaman21/powerup-android/subscription","commits_url":"https://api.github.com/repos/Aryaman21/powerup-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aryaman21/powerup-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aryaman21/powerup-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aryaman21/powerup-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aryaman21/powerup-android/contents/{+path}","compare_url":"https://api.github.com/repos/Aryaman21/powerup-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aryaman21/powerup-android/merges","archive_url":"https://api.github.com/repos/Aryaman21/powerup-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aryaman21/powerup-android/downloads","issues_url":"https://api.github.com/repos/Aryaman21/powerup-android/issues{/number}","pulls_url":"https://api.github.com/repos/Aryaman21/powerup-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Aryaman21/powerup-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Aryaman21/powerup-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aryaman21/powerup-android/labels{/name}","releases_url":"https://api.github.com/repos/Aryaman21/powerup-android/releases{/id}","deployments_url":"https://api.github.com/repos/Aryaman21/powerup-android/deployments","created_at":"2017-12-01T18:37:29Z","updated_at":"2017-12-01T18:37:31Z","pushed_at":"2018-01-27T19:58:48Z","git_url":"git://github.com/Aryaman21/powerup-android.git","ssh_url":"git@github.com:Aryaman21/powerup-android.git","clone_url":"https://github.com/Aryaman21/powerup-android.git","svn_url":"https://github.com/Aryaman21/powerup-android","homepage":"","size":234544,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"GSoC17"}},"base":{"label":"systers:GSoC17","ref":"GSoC17","sha":"a264d5fde654a370a4446a72cd61f49ceff9fa78","user":{"login":"systers","id":6520415,"avatar_url":"https://avatars0.githubusercontent.com/u/6520415?v=4","gravatar_id":"","url":"https://api.github.com/users/systers","html_url":"https://github.com/systers","followers_url":"https://api.github.com/users/systers/followers","following_url":"https://api.github.com/users/systers/following{/other_user}","gists_url":"https://api.github.com/users/systers/gists{/gist_id}","starred_url":"https://api.github.com/users/systers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systers/subscriptions","organizations_url":"https://api.github.com/users/systers/orgs","repos_url":"https://api.github.com/users/systers/repos","events_url":"https://api.github.com/users/systers/events{/privacy}","received_events_url":"https://api.github.com/users/systers/received_events","type":"Organization","site_admin":false},"repo":{"id":42040219,"name":"powerup-android","full_name":"systers/powerup-android","owner":{"login":"systers","id":6520415,"avatar_url":"https://avatars0.githubusercontent.com/u/6520415?v=4","gravatar_id":"","url":"https://api.github.com/users/systers","html_url":"https://github.com/systers","followers_url":"https://api.github.com/users/systers/followers","following_url":"https://api.github.com/users/systers/following{/other_user}","gists_url":"https://api.github.com/users/systers/gists{/gist_id}","starred_url":"https://api.github.com/users/systers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systers/subscriptions","organizations_url":"https://api.github.com/users/systers/orgs","repos_url":"https://api.github.com/users/systers/repos","events_url":"https://api.github.com/users/systers/events{/privacy}","received_events_url":"https://api.github.com/users/systers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systers/powerup-android","description":"PowerUp is an educational choose-your-own-adventure game that utilizes a users uploaded curriculum to empower pre-adolescents to take charge of their reproductive health. This is the Android version of the game.","fork":false,"url":"https://api.github.com/repos/systers/powerup-android","forks_url":"https://api.github.com/repos/systers/powerup-android/forks","keys_url":"https://api.github.com/repos/systers/powerup-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systers/powerup-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systers/powerup-android/teams","hooks_url":"https://api.github.com/repos/systers/powerup-android/hooks","issue_events_url":"https://api.github.com/repos/systers/powerup-android/issues/events{/number}","events_url":"https://api.github.com/repos/systers/powerup-android/events","assignees_url":"https://api.github.com/repos/systers/powerup-android/assignees{/user}","branches_url":"https://api.github.com/repos/systers/powerup-android/branches{/branch}","tags_url":"https://api.github.com/repos/systers/powerup-android/tags","blobs_url":"https://api.github.com/repos/systers/powerup-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systers/powerup-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systers/powerup-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/systers/powerup-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systers/powerup-android/statuses/{sha}","languages_url":"https://api.github.com/repos/systers/powerup-android/languages","stargazers_url":"https://api.github.com/repos/systers/powerup-android/stargazers","contributors_url":"https://api.github.com/repos/systers/powerup-android/contributors","subscribers_url":"https://api.github.com/repos/systers/powerup-android/subscribers","subscription_url":"https://api.github.com/repos/systers/powerup-android/subscription","commits_url":"https://api.github.com/repos/systers/powerup-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/systers/powerup-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/systers/powerup-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/systers/powerup-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/systers/powerup-android/contents/{+path}","compare_url":"https://api.github.com/repos/systers/powerup-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systers/powerup-android/merges","archive_url":"https://api.github.com/repos/systers/powerup-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systers/powerup-android/downloads","issues_url":"https://api.github.com/repos/systers/powerup-android/issues{/number}","pulls_url":"https://api.github.com/repos/systers/powerup-android/pulls{/number}","milestones_url":"https://api.github.com/repos/systers/powerup-android/milestones{/number}","notifications_url":"https://api.github.com/repos/systers/powerup-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systers/powerup-android/labels{/name}","releases_url":"https://api.github.com/repos/systers/powerup-android/releases{/id}","deployments_url":"https://api.github.com/repos/systers/powerup-android/deployments","created_at":"2015-09-07T08:15:51Z","updated_at":"2018-01-28T09:08:59Z","pushed_at":"2018-02-03T15:04:51Z","git_url":"git://github.com/systers/powerup-android.git","ssh_url":"git@github.com:systers/powerup-android.git","clone_url":"https://github.com/systers/powerup-android.git","svn_url":"https://github.com/systers/powerup-android","homepage":"","size":232011,"stargazers_count":51,"watchers_count":51,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":296,"mirror_url":null,"archived":false,"open_issues_count":257,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":296,"open_issues":257,"watchers":51,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/systers/powerup-android/pulls/872"},"html":{"href":"https://github.com/systers/powerup-android/pull/872"},"issue":{"href":"https://api.github.com/repos/systers/powerup-android/issues/872"},"comments":{"href":"https://api.github.com/repos/systers/powerup-android/issues/872/comments"},"review_comments":{"href":"https://api.github.com/repos/systers/powerup-android/pulls/872/comments"},"review_comment":{"href":"https://api.github.com/repos/systers/powerup-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systers/powerup-android/pulls/872/commits"},"statuses":{"href":"https://api.github.com/repos/systers/powerup-android/statuses/8cca0fb81bf027023fb3e832809dc4ea720bdd4f"}},"author_association":"NONE"}}
{"actor":{"display_login":"codacy-bot"}}