{"action":"created","comment":{"url":"https://api.github.com/repos/systers/malaria-app-android/pulls/comments/202300117","pull_request_review_id":136973041,"id":202300117,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjMwMDExNw==","diff_hunk":"@@ -81,11 +81,10 @@ public int getData(int month, int year, String choice) {\n             Log.d(TAGDSH,\"INSIDE GET DATA PERCENTAGE:\"+cursor.getDouble(2));\r\n \r\n         }\r\n-        if (isDataFound) {\r\n-            if (!(date.get(date.size() - 1) == Calendar.getInstance().get(Calendar.DATE))) {\r\n-                percentage.add(0.0);\r\n-                date.add(Calendar.getInstance().get(Calendar.DATE));\r\n-            }\r\n+        if (isDataFound && !(date.get(date.size() - 1) == Calendar.getInstance().get(Calendar.DATE))) {\r","path":"malaria-app-android/src/main/java/com/peacecorps/malaria/db/DatabaseSQLiteHelper.java","position":9,"original_position":9,"commit_id":"ba102f33d75e52e213a2e981047444665def2e24","original_commit_id":"ba102f33d75e52e213a2e981047444665def2e24","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","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://app.codacy.com/assets/images/favicon.png) Issue found: [Use opposite operator instead of the logic complement operator.](https://app.codacy.com/app/Systers/malaria-app-android/pullRequest?prid=1758351)","created_at":"2018-07-13T09:47:49Z","updated_at":"2018-07-13T09:47:49Z","html_url":"https://github.com/systers/malaria-app-android/pull/315#discussion_r202300117","pull_request_url":"https://api.github.com/repos/systers/malaria-app-android/pulls/315","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/systers/malaria-app-android/pulls/comments/202300117"},"html":{"href":"https://github.com/systers/malaria-app-android/pull/315#discussion_r202300117"},"pull_request":{"href":"https://api.github.com/repos/systers/malaria-app-android/pulls/315"}}},"pull_request":{"url":"https://api.github.com/repos/systers/malaria-app-android/pulls/315","id":193760802,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNzYwODAy","html_url":"https://github.com/systers/malaria-app-android/pull/315","diff_url":"https://github.com/systers/malaria-app-android/pull/315.diff","patch_url":"https://github.com/systers/malaria-app-android/pull/315.patch","issue_url":"https://api.github.com/repos/systers/malaria-app-android/issues/315","number":315,"state":"open","locked":false,"title":"Fixes #314 - fixed pmd violations","user":{"login":"aayushinigam","id":24635221,"node_id":"MDQ6VXNlcjI0NjM1MjIx","avatar_url":"https://avatars1.githubusercontent.com/u/24635221?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushinigam","html_url":"https://github.com/aayushinigam","followers_url":"https://api.github.com/users/aayushinigam/followers","following_url":"https://api.github.com/users/aayushinigam/following{/other_user}","gists_url":"https://api.github.com/users/aayushinigam/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushinigam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushinigam/subscriptions","organizations_url":"https://api.github.com/users/aayushinigam/orgs","repos_url":"https://api.github.com/users/aayushinigam/repos","events_url":"https://api.github.com/users/aayushinigam/events{/privacy}","received_events_url":"https://api.github.com/users/aayushinigam/received_events","type":"User","site_admin":false},"body":"Fixes #314 \r\n\r\nRemoved all the necessary pmd code rule violations - only 2/140 pmd violations exist now.\r\n![screenshot from 2018-07-13 15-01-00](https://user-images.githubusercontent.com/24635221/42685146-d59be218-86af-11e8-9436-58d432d2fd55.png)\r\n\r\n","created_at":"2018-06-09T06:05:03Z","updated_at":"2018-07-13T09:47:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9001ce799e2f9124d7683b5f46b9bdf8a854810b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/systers/malaria-app-android/pulls/315/commits","review_comments_url":"https://api.github.com/repos/systers/malaria-app-android/pulls/315/comments","review_comment_url":"https://api.github.com/repos/systers/malaria-app-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systers/malaria-app-android/issues/315/comments","statuses_url":"https://api.github.com/repos/systers/malaria-app-android/statuses/ba102f33d75e52e213a2e981047444665def2e24","head":{"label":"aayushinigam:Fix-pmd-violations","ref":"Fix-pmd-violations","sha":"ba102f33d75e52e213a2e981047444665def2e24","user":{"login":"aayushinigam","id":24635221,"node_id":"MDQ6VXNlcjI0NjM1MjIx","avatar_url":"https://avatars1.githubusercontent.com/u/24635221?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushinigam","html_url":"https://github.com/aayushinigam","followers_url":"https://api.github.com/users/aayushinigam/followers","following_url":"https://api.github.com/users/aayushinigam/following{/other_user}","gists_url":"https://api.github.com/users/aayushinigam/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushinigam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushinigam/subscriptions","organizations_url":"https://api.github.com/users/aayushinigam/orgs","repos_url":"https://api.github.com/users/aayushinigam/repos","events_url":"https://api.github.com/users/aayushinigam/events{/privacy}","received_events_url":"https://api.github.com/users/aayushinigam/received_events","type":"User","site_admin":false},"repo":{"id":130889795,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA4ODk3OTU=","name":"malaria-app-android","full_name":"aayushinigam/malaria-app-android","owner":{"login":"aayushinigam","id":24635221,"node_id":"MDQ6VXNlcjI0NjM1MjIx","avatar_url":"https://avatars1.githubusercontent.com/u/24635221?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushinigam","html_url":"https://github.com/aayushinigam","followers_url":"https://api.github.com/users/aayushinigam/followers","following_url":"https://api.github.com/users/aayushinigam/following{/other_user}","gists_url":"https://api.github.com/users/aayushinigam/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushinigam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushinigam/subscriptions","organizations_url":"https://api.github.com/users/aayushinigam/orgs","repos_url":"https://api.github.com/users/aayushinigam/repos","events_url":"https://api.github.com/users/aayushinigam/events{/privacy}","received_events_url":"https://api.github.com/users/aayushinigam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aayushinigam/malaria-app-android","description":"This project has been archived until AnitaB.org finds new contacts within Peace Corps to finish and test these projects in the field.","fork":true,"url":"https://api.github.com/repos/aayushinigam/malaria-app-android","forks_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/forks","keys_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/teams","hooks_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/hooks","issue_events_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/issues/events{/number}","events_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/events","assignees_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/assignees{/user}","branches_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/branches{/branch}","tags_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/tags","blobs_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/statuses/{sha}","languages_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/languages","stargazers_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/stargazers","contributors_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/contributors","subscribers_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/subscribers","subscription_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/subscription","commits_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/contents/{+path}","compare_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/merges","archive_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/downloads","issues_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/issues{/number}","pulls_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/pulls{/number}","milestones_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/milestones{/number}","notifications_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/labels{/name}","releases_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/releases{/id}","deployments_url":"https://api.github.com/repos/aayushinigam/malaria-app-android/deployments","created_at":"2018-04-24T17:22:32Z","updated_at":"2018-04-24T17:22:35Z","pushed_at":"2018-07-13T09:45:15Z","git_url":"git://github.com/aayushinigam/malaria-app-android.git","ssh_url":"git@github.com:aayushinigam/malaria-app-android.git","clone_url":"https://github.com/aayushinigam/malaria-app-android.git","svn_url":"https://github.com/aayushinigam/malaria-app-android","homepage":"","size":79112,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"systers:gsoc18-infra","ref":"gsoc18-infra","sha":"6aaa462abc1f43de957a0fbe2463f1de9cb1e32c","user":{"login":"systers","id":6520415,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjA0MTU=","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":18889806,"node_id":"MDEwOlJlcG9zaXRvcnkxODg4OTgwNg==","name":"malaria-app-android","full_name":"systers/malaria-app-android","owner":{"login":"systers","id":6520415,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjA0MTU=","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/malaria-app-android","description":"A mobile app that will aid the Volunteer in sustaining life-saving malaria prevention tactics over their 2+ years of service. ","fork":true,"url":"https://api.github.com/repos/systers/malaria-app-android","forks_url":"https://api.github.com/repos/systers/malaria-app-android/forks","keys_url":"https://api.github.com/repos/systers/malaria-app-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systers/malaria-app-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systers/malaria-app-android/teams","hooks_url":"https://api.github.com/repos/systers/malaria-app-android/hooks","issue_events_url":"https://api.github.com/repos/systers/malaria-app-android/issues/events{/number}","events_url":"https://api.github.com/repos/systers/malaria-app-android/events","assignees_url":"https://api.github.com/repos/systers/malaria-app-android/assignees{/user}","branches_url":"https://api.github.com/repos/systers/malaria-app-android/branches{/branch}","tags_url":"https://api.github.com/repos/systers/malaria-app-android/tags","blobs_url":"https://api.github.com/repos/systers/malaria-app-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systers/malaria-app-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systers/malaria-app-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/systers/malaria-app-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systers/malaria-app-android/statuses/{sha}","languages_url":"https://api.github.com/repos/systers/malaria-app-android/languages","stargazers_url":"https://api.github.com/repos/systers/malaria-app-android/stargazers","contributors_url":"https://api.github.com/repos/systers/malaria-app-android/contributors","subscribers_url":"https://api.github.com/repos/systers/malaria-app-android/subscribers","subscription_url":"https://api.github.com/repos/systers/malaria-app-android/subscription","commits_url":"https://api.github.com/repos/systers/malaria-app-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/systers/malaria-app-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/systers/malaria-app-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/systers/malaria-app-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/systers/malaria-app-android/contents/{+path}","compare_url":"https://api.github.com/repos/systers/malaria-app-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systers/malaria-app-android/merges","archive_url":"https://api.github.com/repos/systers/malaria-app-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systers/malaria-app-android/downloads","issues_url":"https://api.github.com/repos/systers/malaria-app-android/issues{/number}","pulls_url":"https://api.github.com/repos/systers/malaria-app-android/pulls{/number}","milestones_url":"https://api.github.com/repos/systers/malaria-app-android/milestones{/number}","notifications_url":"https://api.github.com/repos/systers/malaria-app-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systers/malaria-app-android/labels{/name}","releases_url":"https://api.github.com/repos/systers/malaria-app-android/releases{/id}","deployments_url":"https://api.github.com/repos/systers/malaria-app-android/deployments","created_at":"2014-04-17T18:53:22Z","updated_at":"2018-06-23T14:04:09Z","pushed_at":"2018-07-13T09:45:17Z","git_url":"git://github.com/systers/malaria-app-android.git","ssh_url":"git@github.com:systers/malaria-app-android.git","clone_url":"https://github.com/systers/malaria-app-android.git","svn_url":"https://github.com/systers/malaria-app-android","homepage":"","size":79124,"stargazers_count":24,"watchers_count":24,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":124,"mirror_url":null,"archived":false,"open_issues_count":68,"license":null,"forks":124,"open_issues":68,"watchers":24,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/systers/malaria-app-android/pulls/315"},"html":{"href":"https://github.com/systers/malaria-app-android/pull/315"},"issue":{"href":"https://api.github.com/repos/systers/malaria-app-android/issues/315"},"comments":{"href":"https://api.github.com/repos/systers/malaria-app-android/issues/315/comments"},"review_comments":{"href":"https://api.github.com/repos/systers/malaria-app-android/pulls/315/comments"},"review_comment":{"href":"https://api.github.com/repos/systers/malaria-app-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systers/malaria-app-android/pulls/315/commits"},"statuses":{"href":"https://api.github.com/repos/systers/malaria-app-android/statuses/ba102f33d75e52e213a2e981047444665def2e24"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}