{"action":"closed","number":1798,"pull_request":{"url":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/1798","id":206204001,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjA0MDAx","html_url":"https://github.com/commons-app/apps-android-commons/pull/1798","diff_url":"https://github.com/commons-app/apps-android-commons/pull/1798.diff","patch_url":"https://github.com/commons-app/apps-android-commons/pull/1798.patch","issue_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1798","number":1798,"state":"closed","locked":false,"title":"Improve the algorithm for detecting unwanted images.","user":{"login":"Mansi449","id":32809297,"node_id":"MDQ6VXNlcjMyODA5Mjk3","avatar_url":"https://avatars3.githubusercontent.com/u/32809297?v=4","gravatar_id":"","url":"https://api.github.com/users/Mansi449","html_url":"https://github.com/Mansi449","followers_url":"https://api.github.com/users/Mansi449/followers","following_url":"https://api.github.com/users/Mansi449/following{/other_user}","gists_url":"https://api.github.com/users/Mansi449/gists{/gist_id}","starred_url":"https://api.github.com/users/Mansi449/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mansi449/subscriptions","organizations_url":"https://api.github.com/users/Mansi449/orgs","repos_url":"https://api.github.com/users/Mansi449/repos","events_url":"https://api.github.com/users/Mansi449/events{/privacy}","received_events_url":"https://api.github.com/users/Mansi449/received_events","type":"User","site_admin":false},"body":"## Modified ImageUtils.java\r\n\r\nFixes #1767 \"Too dark\" for picture with black background \r\n\r\n## Description (required)\r\n\r\nFixes #1767 \"Too dark\" for picture with black background\r\nImageUtils.java: algorithm used previously gave the 'TOO DARK' message even for the images that were perfectly valid.\r\n\r\nThe modified algorithm solves this problem. It is as follows:\r\n\r\n- Count the number of pixels with high brightness\r\n\r\n- Count the number of pixels with medium brightness\r\n\r\n- If numberOfBrightPixels is below 2.5% AND numberOfMediumBrightnessPixels is below 30%, then the picture is too dark.\r\n\r\n## Tests performed (required)\r\nTested on device Motorola Moto G(5) (Android 7.0, API 24), with build variant betaDebug.","created_at":"2018-08-04T18:26:23Z","updated_at":"2018-09-06T23:48:39Z","closed_at":"2018-09-06T23:48:39Z","merged_at":"2018-09-06T23:48:39Z","merge_commit_sha":"13c377aa17d8e3f8e59225aeaa1a27682b53f7de","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nicolas-raoul","id":99590,"node_id":"MDQ6VXNlcjk5NTkw","avatar_url":"https://avatars1.githubusercontent.com/u/99590?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-raoul","html_url":"https://github.com/nicolas-raoul","followers_url":"https://api.github.com/users/nicolas-raoul/followers","following_url":"https://api.github.com/users/nicolas-raoul/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-raoul/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-raoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-raoul/subscriptions","organizations_url":"https://api.github.com/users/nicolas-raoul/orgs","repos_url":"https://api.github.com/users/nicolas-raoul/repos","events_url":"https://api.github.com/users/nicolas-raoul/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-raoul/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/1798/commits","review_comments_url":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/1798/comments","review_comment_url":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1798/comments","statuses_url":"https://api.github.com/repos/commons-app/apps-android-commons/statuses/a82b295707505f65282f0f3f8b21a4daf255c800","head":{"label":"Mansi449:check-pictures-algorithm","ref":"check-pictures-algorithm","sha":"a82b295707505f65282f0f3f8b21a4daf255c800","user":{"login":"Mansi449","id":32809297,"node_id":"MDQ6VXNlcjMyODA5Mjk3","avatar_url":"https://avatars3.githubusercontent.com/u/32809297?v=4","gravatar_id":"","url":"https://api.github.com/users/Mansi449","html_url":"https://github.com/Mansi449","followers_url":"https://api.github.com/users/Mansi449/followers","following_url":"https://api.github.com/users/Mansi449/following{/other_user}","gists_url":"https://api.github.com/users/Mansi449/gists{/gist_id}","starred_url":"https://api.github.com/users/Mansi449/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mansi449/subscriptions","organizations_url":"https://api.github.com/users/Mansi449/orgs","repos_url":"https://api.github.com/users/Mansi449/repos","events_url":"https://api.github.com/users/Mansi449/events{/privacy}","received_events_url":"https://api.github.com/users/Mansi449/received_events","type":"User","site_admin":false},"repo":{"id":126982687,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY5ODI2ODc=","name":"apps-android-commons","full_name":"Mansi449/apps-android-commons","owner":{"login":"Mansi449","id":32809297,"node_id":"MDQ6VXNlcjMyODA5Mjk3","avatar_url":"https://avatars3.githubusercontent.com/u/32809297?v=4","gravatar_id":"","url":"https://api.github.com/users/Mansi449","html_url":"https://github.com/Mansi449","followers_url":"https://api.github.com/users/Mansi449/followers","following_url":"https://api.github.com/users/Mansi449/following{/other_user}","gists_url":"https://api.github.com/users/Mansi449/gists{/gist_id}","starred_url":"https://api.github.com/users/Mansi449/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mansi449/subscriptions","organizations_url":"https://api.github.com/users/Mansi449/orgs","repos_url":"https://api.github.com/users/Mansi449/repos","events_url":"https://api.github.com/users/Mansi449/events{/privacy}","received_events_url":"https://api.github.com/users/Mansi449/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mansi449/apps-android-commons","description":"Upload pictures from Android to Wikimedia Commons. Looking for volunteers! Come say hi at https://groups.google.com/d/forum/commons-app-android and install at https://play.google.com/store/apps/details?id=fr.free.nrw.commons","fork":true,"url":"https://api.github.com/repos/Mansi449/apps-android-commons","forks_url":"https://api.github.com/repos/Mansi449/apps-android-commons/forks","keys_url":"https://api.github.com/repos/Mansi449/apps-android-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mansi449/apps-android-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mansi449/apps-android-commons/teams","hooks_url":"https://api.github.com/repos/Mansi449/apps-android-commons/hooks","issue_events_url":"https://api.github.com/repos/Mansi449/apps-android-commons/issues/events{/number}","events_url":"https://api.github.com/repos/Mansi449/apps-android-commons/events","assignees_url":"https://api.github.com/repos/Mansi449/apps-android-commons/assignees{/user}","branches_url":"https://api.github.com/repos/Mansi449/apps-android-commons/branches{/branch}","tags_url":"https://api.github.com/repos/Mansi449/apps-android-commons/tags","blobs_url":"https://api.github.com/repos/Mansi449/apps-android-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mansi449/apps-android-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mansi449/apps-android-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mansi449/apps-android-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mansi449/apps-android-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/Mansi449/apps-android-commons/languages","stargazers_url":"https://api.github.com/repos/Mansi449/apps-android-commons/stargazers","contributors_url":"https://api.github.com/repos/Mansi449/apps-android-commons/contributors","subscribers_url":"https://api.github.com/repos/Mansi449/apps-android-commons/subscribers","subscription_url":"https://api.github.com/repos/Mansi449/apps-android-commons/subscription","commits_url":"https://api.github.com/repos/Mansi449/apps-android-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mansi449/apps-android-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mansi449/apps-android-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mansi449/apps-android-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mansi449/apps-android-commons/contents/{+path}","compare_url":"https://api.github.com/repos/Mansi449/apps-android-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mansi449/apps-android-commons/merges","archive_url":"https://api.github.com/repos/Mansi449/apps-android-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mansi449/apps-android-commons/downloads","issues_url":"https://api.github.com/repos/Mansi449/apps-android-commons/issues{/number}","pulls_url":"https://api.github.com/repos/Mansi449/apps-android-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/Mansi449/apps-android-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/Mansi449/apps-android-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mansi449/apps-android-commons/labels{/name}","releases_url":"https://api.github.com/repos/Mansi449/apps-android-commons/releases{/id}","deployments_url":"https://api.github.com/repos/Mansi449/apps-android-commons/deployments","created_at":"2018-03-27T12:26:41Z","updated_at":"2018-09-01T08:52:52Z","pushed_at":"2018-09-01T08:54:27Z","git_url":"git://github.com/Mansi449/apps-android-commons.git","ssh_url":"git@github.com:Mansi449/apps-android-commons.git","clone_url":"https://github.com/Mansi449/apps-android-commons.git","svn_url":"https://github.com/Mansi449/apps-android-commons","homepage":"","size":201461,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"commons-app:master","ref":"master","sha":"3f52211b91bb45593cb480589a7b9c77f3570282","user":{"login":"commons-app","id":20982797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwOTgyNzk3","avatar_url":"https://avatars2.githubusercontent.com/u/20982797?v=4","gravatar_id":"","url":"https://api.github.com/users/commons-app","html_url":"https://github.com/commons-app","followers_url":"https://api.github.com/users/commons-app/followers","following_url":"https://api.github.com/users/commons-app/following{/other_user}","gists_url":"https://api.github.com/users/commons-app/gists{/gist_id}","starred_url":"https://api.github.com/users/commons-app/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commons-app/subscriptions","organizations_url":"https://api.github.com/users/commons-app/orgs","repos_url":"https://api.github.com/users/commons-app/repos","events_url":"https://api.github.com/users/commons-app/events{/privacy}","received_events_url":"https://api.github.com/users/commons-app/received_events","type":"Organization","site_admin":false},"repo":{"id":42032884,"node_id":"MDEwOlJlcG9zaXRvcnk0MjAzMjg4NA==","name":"apps-android-commons","full_name":"commons-app/apps-android-commons","owner":{"login":"commons-app","id":20982797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwOTgyNzk3","avatar_url":"https://avatars2.githubusercontent.com/u/20982797?v=4","gravatar_id":"","url":"https://api.github.com/users/commons-app","html_url":"https://github.com/commons-app","followers_url":"https://api.github.com/users/commons-app/followers","following_url":"https://api.github.com/users/commons-app/following{/other_user}","gists_url":"https://api.github.com/users/commons-app/gists{/gist_id}","starred_url":"https://api.github.com/users/commons-app/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commons-app/subscriptions","organizations_url":"https://api.github.com/users/commons-app/orgs","repos_url":"https://api.github.com/users/commons-app/repos","events_url":"https://api.github.com/users/commons-app/events{/privacy}","received_events_url":"https://api.github.com/users/commons-app/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/commons-app/apps-android-commons","description":"Upload pictures from Android to Wikimedia Commons. Looking for volunteers! Come say hi at https://groups.google.com/d/forum/commons-app-android and install at https://play.google.com/store/apps/details?id=fr.free.nrw.commons","fork":false,"url":"https://api.github.com/repos/commons-app/apps-android-commons","forks_url":"https://api.github.com/repos/commons-app/apps-android-commons/forks","keys_url":"https://api.github.com/repos/commons-app/apps-android-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commons-app/apps-android-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commons-app/apps-android-commons/teams","hooks_url":"https://api.github.com/repos/commons-app/apps-android-commons/hooks","issue_events_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/events{/number}","events_url":"https://api.github.com/repos/commons-app/apps-android-commons/events","assignees_url":"https://api.github.com/repos/commons-app/apps-android-commons/assignees{/user}","branches_url":"https://api.github.com/repos/commons-app/apps-android-commons/branches{/branch}","tags_url":"https://api.github.com/repos/commons-app/apps-android-commons/tags","blobs_url":"https://api.github.com/repos/commons-app/apps-android-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commons-app/apps-android-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commons-app/apps-android-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/commons-app/apps-android-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commons-app/apps-android-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/commons-app/apps-android-commons/languages","stargazers_url":"https://api.github.com/repos/commons-app/apps-android-commons/stargazers","contributors_url":"https://api.github.com/repos/commons-app/apps-android-commons/contributors","subscribers_url":"https://api.github.com/repos/commons-app/apps-android-commons/subscribers","subscription_url":"https://api.github.com/repos/commons-app/apps-android-commons/subscription","commits_url":"https://api.github.com/repos/commons-app/apps-android-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/commons-app/apps-android-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/commons-app/apps-android-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/commons-app/apps-android-commons/contents/{+path}","compare_url":"https://api.github.com/repos/commons-app/apps-android-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commons-app/apps-android-commons/merges","archive_url":"https://api.github.com/repos/commons-app/apps-android-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commons-app/apps-android-commons/downloads","issues_url":"https://api.github.com/repos/commons-app/apps-android-commons/issues{/number}","pulls_url":"https://api.github.com/repos/commons-app/apps-android-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/commons-app/apps-android-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/commons-app/apps-android-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commons-app/apps-android-commons/labels{/name}","releases_url":"https://api.github.com/repos/commons-app/apps-android-commons/releases{/id}","deployments_url":"https://api.github.com/repos/commons-app/apps-android-commons/deployments","created_at":"2015-09-07T05:23:27Z","updated_at":"2018-09-06T23:47:27Z","pushed_at":"2018-09-06T23:48:39Z","git_url":"git://github.com/commons-app/apps-android-commons.git","ssh_url":"git@github.com:commons-app/apps-android-commons.git","clone_url":"https://github.com/commons-app/apps-android-commons.git","svn_url":"https://github.com/commons-app/apps-android-commons","homepage":"","size":201911,"stargazers_count":285,"watchers_count":285,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":425,"mirror_url":null,"archived":false,"open_issues_count":386,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":425,"open_issues":386,"watchers":285,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/1798"},"html":{"href":"https://github.com/commons-app/apps-android-commons/pull/1798"},"issue":{"href":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1798"},"comments":{"href":"https://api.github.com/repos/commons-app/apps-android-commons/issues/1798/comments"},"review_comments":{"href":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/1798/comments"},"review_comment":{"href":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/commons-app/apps-android-commons/pulls/1798/commits"},"statuses":{"href":"https://api.github.com/repos/commons-app/apps-android-commons/statuses/a82b295707505f65282f0f3f8b21a4daf255c800"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"maskaravivek","id":3069373,"node_id":"MDQ6VXNlcjMwNjkzNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/3069373?v=4","gravatar_id":"","url":"https://api.github.com/users/maskaravivek","html_url":"https://github.com/maskaravivek","followers_url":"https://api.github.com/users/maskaravivek/followers","following_url":"https://api.github.com/users/maskaravivek/following{/other_user}","gists_url":"https://api.github.com/users/maskaravivek/gists{/gist_id}","starred_url":"https://api.github.com/users/maskaravivek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maskaravivek/subscriptions","organizations_url":"https://api.github.com/users/maskaravivek/orgs","repos_url":"https://api.github.com/users/maskaravivek/repos","events_url":"https://api.github.com/users/maskaravivek/events{/privacy}","received_events_url":"https://api.github.com/users/maskaravivek/received_events","type":"User","site_admin":false},"comments":11,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":39,"deletions":59,"changed_files":1}}
{"actor":{"display_login":"maskaravivek"}}