{"action":"created","comment":{"url":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/comments/23144088","id":23144088,"diff_hunk":"@@ -411,11 +411,11 @@ namespace {\n         // number and types of the enemy's attacking pieces, the number of\n         // attacked and undefended squares around our king and the quality of\n         // the pawn shelter (current 'score' value).\n-        attackUnits =  std::min(77, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them])\n-                     + 10 * ei.kingAdjacentZoneAttacksCount[Them]\n-                     + 19 * popcount<Max15>(undefended)\n-                     +  9 * (ei.pinnedPieces[Us] != 0)\n-                     - mg_value(score) * 63 / 512\n+        attackUnits =  std::min(74, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them])\n+                     + 8 * ei.kingAdjacentZoneAttacksCount[Them]\n+                     + 25 * popcount<Max15>(undefended)\n+                     +  10 * (ei.pinnedPieces[Us] != 0)\n+                     - mg_value(score) * 62 / 512","path":"src/evaluate.cpp","position":45,"original_position":45,"commit_id":"7655b8b2705a58ab8fd52709e553fefe115e8d03","original_commit_id":"7655b8b2705a58ab8fd52709e553fefe115e8d03","user":{"login":"hxim","id":6370548,"avatar_url":"https://avatars.githubusercontent.com/u/6370548?v=3","gravatar_id":"","url":"https://api.github.com/users/hxim","html_url":"https://github.com/hxim","followers_url":"https://api.github.com/users/hxim/followers","following_url":"https://api.github.com/users/hxim/following{/other_user}","gists_url":"https://api.github.com/users/hxim/gists{/gist_id}","starred_url":"https://api.github.com/users/hxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hxim/subscriptions","organizations_url":"https://api.github.com/users/hxim/orgs","repos_url":"https://api.github.com/users/hxim/repos","events_url":"https://api.github.com/users/hxim/events{/privacy}","received_events_url":"https://api.github.com/users/hxim/received_events","type":"User","site_admin":false},"body":"This is same as  \"- mg_value(score) * 31 / 256\"\r\n","created_at":"2015-01-19T06:13:04Z","updated_at":"2015-01-19T06:13:04Z","html_url":"https://github.com/official-stockfish/Stockfish/pull/220#discussion_r23144088","pull_request_url":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220","_links":{"self":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/comments/23144088"},"html":{"href":"https://github.com/official-stockfish/Stockfish/pull/220#discussion_r23144088"},"pull_request":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220"}}},"pull_request":{"url":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220","id":27577357,"html_url":"https://github.com/official-stockfish/Stockfish/pull/220","diff_url":"https://github.com/official-stockfish/Stockfish/pull/220.diff","patch_url":"https://github.com/official-stockfish/Stockfish/pull/220.patch","issue_url":"https://api.github.com/repos/official-stockfish/Stockfish/issues/220","number":220,"state":"open","locked":false,"title":"HighKingSafety","user":{"login":"NicklasPersson","id":9946013,"avatar_url":"https://avatars.githubusercontent.com/u/9946013?v=3","gravatar_id":"","url":"https://api.github.com/users/NicklasPersson","html_url":"https://github.com/NicklasPersson","followers_url":"https://api.github.com/users/NicklasPersson/followers","following_url":"https://api.github.com/users/NicklasPersson/following{/other_user}","gists_url":"https://api.github.com/users/NicklasPersson/gists{/gist_id}","starred_url":"https://api.github.com/users/NicklasPersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicklasPersson/subscriptions","organizations_url":"https://api.github.com/users/NicklasPersson/orgs","repos_url":"https://api.github.com/users/NicklasPersson/repos","events_url":"https://api.github.com/users/NicklasPersson/events{/privacy}","received_events_url":"https://api.github.com/users/NicklasPersson/received_events","type":"User","site_admin":false},"body":"\r\n\r\nSTC\r\n\r\nELO: 2.88 +-2.2 (95%) LOS: 99.5%\r\nTotal: 40000 W: 8312 L: 7980 D: 23708\r\n\r\nLTC\r\n\r\nLLR: 2.96 (-2.94,2.94) [0.00,4.00]\r\nTotal: 11529 W: 2075 L: 1882 D: 7572\r\n\r\nbench 8449970\r\n","created_at":"2015-01-18T21:30:43Z","updated_at":"2015-01-19T06:13:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c5fe7b5a53a34f1989212b4a8bd48a11f801ec0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220/commits","review_comments_url":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220/comments","review_comment_url":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/comments/{number}","comments_url":"https://api.github.com/repos/official-stockfish/Stockfish/issues/220/comments","statuses_url":"https://api.github.com/repos/official-stockfish/Stockfish/statuses/7655b8b2705a58ab8fd52709e553fefe115e8d03","head":{"label":"NicklasPersson:HighKingSafety","ref":"HighKingSafety","sha":"7655b8b2705a58ab8fd52709e553fefe115e8d03","user":{"login":"NicklasPersson","id":9946013,"avatar_url":"https://avatars.githubusercontent.com/u/9946013?v=3","gravatar_id":"","url":"https://api.github.com/users/NicklasPersson","html_url":"https://github.com/NicklasPersson","followers_url":"https://api.github.com/users/NicklasPersson/followers","following_url":"https://api.github.com/users/NicklasPersson/following{/other_user}","gists_url":"https://api.github.com/users/NicklasPersson/gists{/gist_id}","starred_url":"https://api.github.com/users/NicklasPersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicklasPersson/subscriptions","organizations_url":"https://api.github.com/users/NicklasPersson/orgs","repos_url":"https://api.github.com/users/NicklasPersson/repos","events_url":"https://api.github.com/users/NicklasPersson/events{/privacy}","received_events_url":"https://api.github.com/users/NicklasPersson/received_events","type":"User","site_admin":false},"repo":{"id":27121743,"name":"Stockfish","full_name":"NicklasPersson/Stockfish","owner":{"login":"NicklasPersson","id":9946013,"avatar_url":"https://avatars.githubusercontent.com/u/9946013?v=3","gravatar_id":"","url":"https://api.github.com/users/NicklasPersson","html_url":"https://github.com/NicklasPersson","followers_url":"https://api.github.com/users/NicklasPersson/followers","following_url":"https://api.github.com/users/NicklasPersson/following{/other_user}","gists_url":"https://api.github.com/users/NicklasPersson/gists{/gist_id}","starred_url":"https://api.github.com/users/NicklasPersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicklasPersson/subscriptions","organizations_url":"https://api.github.com/users/NicklasPersson/orgs","repos_url":"https://api.github.com/users/NicklasPersson/repos","events_url":"https://api.github.com/users/NicklasPersson/events{/privacy}","received_events_url":"https://api.github.com/users/NicklasPersson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicklasPersson/Stockfish","description":"UCI chess engine","fork":true,"url":"https://api.github.com/repos/NicklasPersson/Stockfish","forks_url":"https://api.github.com/repos/NicklasPersson/Stockfish/forks","keys_url":"https://api.github.com/repos/NicklasPersson/Stockfish/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicklasPersson/Stockfish/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicklasPersson/Stockfish/teams","hooks_url":"https://api.github.com/repos/NicklasPersson/Stockfish/hooks","issue_events_url":"https://api.github.com/repos/NicklasPersson/Stockfish/issues/events{/number}","events_url":"https://api.github.com/repos/NicklasPersson/Stockfish/events","assignees_url":"https://api.github.com/repos/NicklasPersson/Stockfish/assignees{/user}","branches_url":"https://api.github.com/repos/NicklasPersson/Stockfish/branches{/branch}","tags_url":"https://api.github.com/repos/NicklasPersson/Stockfish/tags","blobs_url":"https://api.github.com/repos/NicklasPersson/Stockfish/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicklasPersson/Stockfish/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicklasPersson/Stockfish/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicklasPersson/Stockfish/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicklasPersson/Stockfish/statuses/{sha}","languages_url":"https://api.github.com/repos/NicklasPersson/Stockfish/languages","stargazers_url":"https://api.github.com/repos/NicklasPersson/Stockfish/stargazers","contributors_url":"https://api.github.com/repos/NicklasPersson/Stockfish/contributors","subscribers_url":"https://api.github.com/repos/NicklasPersson/Stockfish/subscribers","subscription_url":"https://api.github.com/repos/NicklasPersson/Stockfish/subscription","commits_url":"https://api.github.com/repos/NicklasPersson/Stockfish/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicklasPersson/Stockfish/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicklasPersson/Stockfish/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicklasPersson/Stockfish/issues/comments/{number}","contents_url":"https://api.github.com/repos/NicklasPersson/Stockfish/contents/{+path}","compare_url":"https://api.github.com/repos/NicklasPersson/Stockfish/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicklasPersson/Stockfish/merges","archive_url":"https://api.github.com/repos/NicklasPersson/Stockfish/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicklasPersson/Stockfish/downloads","issues_url":"https://api.github.com/repos/NicklasPersson/Stockfish/issues{/number}","pulls_url":"https://api.github.com/repos/NicklasPersson/Stockfish/pulls{/number}","milestones_url":"https://api.github.com/repos/NicklasPersson/Stockfish/milestones{/number}","notifications_url":"https://api.github.com/repos/NicklasPersson/Stockfish/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicklasPersson/Stockfish/labels{/name}","releases_url":"https://api.github.com/repos/NicklasPersson/Stockfish/releases{/id}","created_at":"2014-11-25T11:00:41Z","updated_at":"2015-01-17T12:15:45Z","pushed_at":"2015-01-18T09:50:36Z","git_url":"git://github.com/NicklasPersson/Stockfish.git","ssh_url":"git@github.com:NicklasPersson/Stockfish.git","clone_url":"https://github.com/NicklasPersson/Stockfish.git","svn_url":"https://github.com/NicklasPersson/Stockfish","homepage":"http://www.stockfishchess.com/","size":6329,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"official-stockfish:master","ref":"master","sha":"97a034ad3e8b25f0e8e1dd03d31f4689180f7547","user":{"login":"official-stockfish","id":7926882,"avatar_url":"https://avatars.githubusercontent.com/u/7926882?v=3","gravatar_id":"","url":"https://api.github.com/users/official-stockfish","html_url":"https://github.com/official-stockfish","followers_url":"https://api.github.com/users/official-stockfish/followers","following_url":"https://api.github.com/users/official-stockfish/following{/other_user}","gists_url":"https://api.github.com/users/official-stockfish/gists{/gist_id}","starred_url":"https://api.github.com/users/official-stockfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/official-stockfish/subscriptions","organizations_url":"https://api.github.com/users/official-stockfish/orgs","repos_url":"https://api.github.com/users/official-stockfish/repos","events_url":"https://api.github.com/users/official-stockfish/events{/privacy}","received_events_url":"https://api.github.com/users/official-stockfish/received_events","type":"Organization","site_admin":false},"repo":{"id":20976138,"name":"Stockfish","full_name":"official-stockfish/Stockfish","owner":{"login":"official-stockfish","id":7926882,"avatar_url":"https://avatars.githubusercontent.com/u/7926882?v=3","gravatar_id":"","url":"https://api.github.com/users/official-stockfish","html_url":"https://github.com/official-stockfish","followers_url":"https://api.github.com/users/official-stockfish/followers","following_url":"https://api.github.com/users/official-stockfish/following{/other_user}","gists_url":"https://api.github.com/users/official-stockfish/gists{/gist_id}","starred_url":"https://api.github.com/users/official-stockfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/official-stockfish/subscriptions","organizations_url":"https://api.github.com/users/official-stockfish/orgs","repos_url":"https://api.github.com/users/official-stockfish/repos","events_url":"https://api.github.com/users/official-stockfish/events{/privacy}","received_events_url":"https://api.github.com/users/official-stockfish/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/official-stockfish/Stockfish","description":"UCI chess engine","fork":true,"url":"https://api.github.com/repos/official-stockfish/Stockfish","forks_url":"https://api.github.com/repos/official-stockfish/Stockfish/forks","keys_url":"https://api.github.com/repos/official-stockfish/Stockfish/keys{/key_id}","collaborators_url":"https://api.github.com/repos/official-stockfish/Stockfish/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/official-stockfish/Stockfish/teams","hooks_url":"https://api.github.com/repos/official-stockfish/Stockfish/hooks","issue_events_url":"https://api.github.com/repos/official-stockfish/Stockfish/issues/events{/number}","events_url":"https://api.github.com/repos/official-stockfish/Stockfish/events","assignees_url":"https://api.github.com/repos/official-stockfish/Stockfish/assignees{/user}","branches_url":"https://api.github.com/repos/official-stockfish/Stockfish/branches{/branch}","tags_url":"https://api.github.com/repos/official-stockfish/Stockfish/tags","blobs_url":"https://api.github.com/repos/official-stockfish/Stockfish/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/official-stockfish/Stockfish/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/official-stockfish/Stockfish/git/refs{/sha}","trees_url":"https://api.github.com/repos/official-stockfish/Stockfish/git/trees{/sha}","statuses_url":"https://api.github.com/repos/official-stockfish/Stockfish/statuses/{sha}","languages_url":"https://api.github.com/repos/official-stockfish/Stockfish/languages","stargazers_url":"https://api.github.com/repos/official-stockfish/Stockfish/stargazers","contributors_url":"https://api.github.com/repos/official-stockfish/Stockfish/contributors","subscribers_url":"https://api.github.com/repos/official-stockfish/Stockfish/subscribers","subscription_url":"https://api.github.com/repos/official-stockfish/Stockfish/subscription","commits_url":"https://api.github.com/repos/official-stockfish/Stockfish/commits{/sha}","git_commits_url":"https://api.github.com/repos/official-stockfish/Stockfish/git/commits{/sha}","comments_url":"https://api.github.com/repos/official-stockfish/Stockfish/comments{/number}","issue_comment_url":"https://api.github.com/repos/official-stockfish/Stockfish/issues/comments/{number}","contents_url":"https://api.github.com/repos/official-stockfish/Stockfish/contents/{+path}","compare_url":"https://api.github.com/repos/official-stockfish/Stockfish/compare/{base}...{head}","merges_url":"https://api.github.com/repos/official-stockfish/Stockfish/merges","archive_url":"https://api.github.com/repos/official-stockfish/Stockfish/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/official-stockfish/Stockfish/downloads","issues_url":"https://api.github.com/repos/official-stockfish/Stockfish/issues{/number}","pulls_url":"https://api.github.com/repos/official-stockfish/Stockfish/pulls{/number}","milestones_url":"https://api.github.com/repos/official-stockfish/Stockfish/milestones{/number}","notifications_url":"https://api.github.com/repos/official-stockfish/Stockfish/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/official-stockfish/Stockfish/labels{/name}","releases_url":"https://api.github.com/repos/official-stockfish/Stockfish/releases{/id}","created_at":"2014-06-18T19:59:53Z","updated_at":"2015-01-18T23:47:42Z","pushed_at":"2015-01-18T19:16:54Z","git_url":"git://github.com/official-stockfish/Stockfish.git","ssh_url":"git@github.com:official-stockfish/Stockfish.git","clone_url":"https://github.com/official-stockfish/Stockfish.git","svn_url":"https://github.com/official-stockfish/Stockfish","homepage":"http://www.stockfishchess.com/","size":9316,"stargazers_count":178,"watchers_count":178,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":7,"forks":101,"open_issues":7,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220"},"html":{"href":"https://github.com/official-stockfish/Stockfish/pull/220"},"issue":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/issues/220"},"comments":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/issues/220/comments"},"review_comments":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220/comments"},"review_comment":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/pulls/220/commits"},"statuses":{"href":"https://api.github.com/repos/official-stockfish/Stockfish/statuses/7655b8b2705a58ab8fd52709e553fefe115e8d03"}}}}