{"action":"created","comment":{"url":"https://api.github.com/repos/DlangScience/libcerf/pulls/comments/36946150","id":36946150,"diff_hunk":"@@ -65,13 +65,10 @@ double erfcx(in double x) @safe @nogc nothrow\n         }\n         return erfcx_y100(400/(4+x));\n     }\n-    else\n-        return \n-            x < -26.7 ? \n-                double.infinity :\n-                x < -6.1 ? \n-                    2*exp(x*x) :\n-                    2*exp(x*x) - erfcx_y100(400/(4-x));\n+    else if(x < -26.7) return double.infinity;\n+    else if(x < -6.1)  return 2*exp(x*x);\n+    else if(x.isNaN)   return double.nan;","path":"source/libcerf/erfcx_.d","position":22,"original_position":22,"commit_id":"830d1b605a2e7b81ada81ea39b6284efa9c76b8e","original_commit_id":"830d1b605a2e7b81ada81ea39b6284efa9c76b8e","user":{"login":"9il","id":845083,"avatar_url":"https://avatars.githubusercontent.com/u/845083?v=3","gravatar_id":"","url":"https://api.github.com/users/9il","html_url":"https://github.com/9il","followers_url":"https://api.github.com/users/9il/followers","following_url":"https://api.github.com/users/9il/following{/other_user}","gists_url":"https://api.github.com/users/9il/gists{/gist_id}","starred_url":"https://api.github.com/users/9il/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9il/subscriptions","organizations_url":"https://api.github.com/users/9il/orgs","repos_url":"https://api.github.com/users/9il/repos","events_url":"https://api.github.com/users/9il/events{/privacy}","received_events_url":"https://api.github.com/users/9il/received_events","type":"User","site_admin":false},"body":"`else if(x.isNaN) return x`, this code is faster and saves payload.","created_at":"2015-08-13T07:09:54Z","updated_at":"2015-08-13T07:09:54Z","html_url":"https://github.com/DlangScience/libcerf/pull/2#discussion_r36946150","pull_request_url":"https://api.github.com/repos/DlangScience/libcerf/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/DlangScience/libcerf/pulls/comments/36946150"},"html":{"href":"https://github.com/DlangScience/libcerf/pull/2#discussion_r36946150"},"pull_request":{"href":"https://api.github.com/repos/DlangScience/libcerf/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/DlangScience/libcerf/pulls/2","id":42240372,"html_url":"https://github.com/DlangScience/libcerf/pull/2","diff_url":"https://github.com/DlangScience/libcerf/pull/2.diff","patch_url":"https://github.com/DlangScience/libcerf/pull/2.patch","issue_url":"https://api.github.com/repos/DlangScience/libcerf/issues/2","number":2,"state":"open","locked":false,"title":"2.068.0fix check for nan","user":{"login":"John-Colvin","id":1867189,"avatar_url":"https://avatars.githubusercontent.com/u/1867189?v=3","gravatar_id":"","url":"https://api.github.com/users/John-Colvin","html_url":"https://github.com/John-Colvin","followers_url":"https://api.github.com/users/John-Colvin/followers","following_url":"https://api.github.com/users/John-Colvin/following{/other_user}","gists_url":"https://api.github.com/users/John-Colvin/gists{/gist_id}","starred_url":"https://api.github.com/users/John-Colvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/John-Colvin/subscriptions","organizations_url":"https://api.github.com/users/John-Colvin/orgs","repos_url":"https://api.github.com/users/John-Colvin/repos","events_url":"https://api.github.com/users/John-Colvin/events{/privacy}","received_events_url":"https://api.github.com/users/John-Colvin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T13:39:04Z","updated_at":"2015-08-13T07:09:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"737c639694adb72ee87fdc78098994fb8e724cfe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DlangScience/libcerf/pulls/2/commits","review_comments_url":"https://api.github.com/repos/DlangScience/libcerf/pulls/2/comments","review_comment_url":"https://api.github.com/repos/DlangScience/libcerf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DlangScience/libcerf/issues/2/comments","statuses_url":"https://api.github.com/repos/DlangScience/libcerf/statuses/830d1b605a2e7b81ada81ea39b6284efa9c76b8e","head":{"label":"DlangScience:fix2.068.0","ref":"fix2.068.0","sha":"830d1b605a2e7b81ada81ea39b6284efa9c76b8e","user":{"login":"DlangScience","id":12515762,"avatar_url":"https://avatars.githubusercontent.com/u/12515762?v=3","gravatar_id":"","url":"https://api.github.com/users/DlangScience","html_url":"https://github.com/DlangScience","followers_url":"https://api.github.com/users/DlangScience/followers","following_url":"https://api.github.com/users/DlangScience/following{/other_user}","gists_url":"https://api.github.com/users/DlangScience/gists{/gist_id}","starred_url":"https://api.github.com/users/DlangScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DlangScience/subscriptions","organizations_url":"https://api.github.com/users/DlangScience/orgs","repos_url":"https://api.github.com/users/DlangScience/repos","events_url":"https://api.github.com/users/DlangScience/events{/privacy}","received_events_url":"https://api.github.com/users/DlangScience/received_events","type":"Organization","site_admin":false},"repo":{"id":24291324,"name":"libcerf","full_name":"DlangScience/libcerf","owner":{"login":"DlangScience","id":12515762,"avatar_url":"https://avatars.githubusercontent.com/u/12515762?v=3","gravatar_id":"","url":"https://api.github.com/users/DlangScience","html_url":"https://github.com/DlangScience","followers_url":"https://api.github.com/users/DlangScience/followers","following_url":"https://api.github.com/users/DlangScience/following{/other_user}","gists_url":"https://api.github.com/users/DlangScience/gists{/gist_id}","starred_url":"https://api.github.com/users/DlangScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DlangScience/subscriptions","organizations_url":"https://api.github.com/users/DlangScience/orgs","repos_url":"https://api.github.com/users/DlangScience/repos","events_url":"https://api.github.com/users/DlangScience/events{/privacy}","received_events_url":"https://api.github.com/users/DlangScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DlangScience/libcerf","description":"Complex error functions, along with Dawson, Faddeeva, and Voigt functions.","fork":false,"url":"https://api.github.com/repos/DlangScience/libcerf","forks_url":"https://api.github.com/repos/DlangScience/libcerf/forks","keys_url":"https://api.github.com/repos/DlangScience/libcerf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DlangScience/libcerf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DlangScience/libcerf/teams","hooks_url":"https://api.github.com/repos/DlangScience/libcerf/hooks","issue_events_url":"https://api.github.com/repos/DlangScience/libcerf/issues/events{/number}","events_url":"https://api.github.com/repos/DlangScience/libcerf/events","assignees_url":"https://api.github.com/repos/DlangScience/libcerf/assignees{/user}","branches_url":"https://api.github.com/repos/DlangScience/libcerf/branches{/branch}","tags_url":"https://api.github.com/repos/DlangScience/libcerf/tags","blobs_url":"https://api.github.com/repos/DlangScience/libcerf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DlangScience/libcerf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DlangScience/libcerf/git/refs{/sha}","trees_url":"https://api.github.com/repos/DlangScience/libcerf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DlangScience/libcerf/statuses/{sha}","languages_url":"https://api.github.com/repos/DlangScience/libcerf/languages","stargazers_url":"https://api.github.com/repos/DlangScience/libcerf/stargazers","contributors_url":"https://api.github.com/repos/DlangScience/libcerf/contributors","subscribers_url":"https://api.github.com/repos/DlangScience/libcerf/subscribers","subscription_url":"https://api.github.com/repos/DlangScience/libcerf/subscription","commits_url":"https://api.github.com/repos/DlangScience/libcerf/commits{/sha}","git_commits_url":"https://api.github.com/repos/DlangScience/libcerf/git/commits{/sha}","comments_url":"https://api.github.com/repos/DlangScience/libcerf/comments{/number}","issue_comment_url":"https://api.github.com/repos/DlangScience/libcerf/issues/comments{/number}","contents_url":"https://api.github.com/repos/DlangScience/libcerf/contents/{+path}","compare_url":"https://api.github.com/repos/DlangScience/libcerf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DlangScience/libcerf/merges","archive_url":"https://api.github.com/repos/DlangScience/libcerf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DlangScience/libcerf/downloads","issues_url":"https://api.github.com/repos/DlangScience/libcerf/issues{/number}","pulls_url":"https://api.github.com/repos/DlangScience/libcerf/pulls{/number}","milestones_url":"https://api.github.com/repos/DlangScience/libcerf/milestones{/number}","notifications_url":"https://api.github.com/repos/DlangScience/libcerf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DlangScience/libcerf/labels{/name}","releases_url":"https://api.github.com/repos/DlangScience/libcerf/releases{/id}","created_at":"2014-09-21T13:14:10Z","updated_at":"2015-06-14T14:02:32Z","pushed_at":"2015-08-12T22:20:45Z","git_url":"git://github.com/DlangScience/libcerf.git","ssh_url":"git@github.com:DlangScience/libcerf.git","clone_url":"https://github.com/DlangScience/libcerf.git","svn_url":"https://github.com/DlangScience/libcerf","homepage":"","size":304,"stargazers_count":3,"watchers_count":3,"language":"D","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"DlangScience:master","ref":"master","sha":"f892a58d7155ec6358f3ec75fac432f4c608f099","user":{"login":"DlangScience","id":12515762,"avatar_url":"https://avatars.githubusercontent.com/u/12515762?v=3","gravatar_id":"","url":"https://api.github.com/users/DlangScience","html_url":"https://github.com/DlangScience","followers_url":"https://api.github.com/users/DlangScience/followers","following_url":"https://api.github.com/users/DlangScience/following{/other_user}","gists_url":"https://api.github.com/users/DlangScience/gists{/gist_id}","starred_url":"https://api.github.com/users/DlangScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DlangScience/subscriptions","organizations_url":"https://api.github.com/users/DlangScience/orgs","repos_url":"https://api.github.com/users/DlangScience/repos","events_url":"https://api.github.com/users/DlangScience/events{/privacy}","received_events_url":"https://api.github.com/users/DlangScience/received_events","type":"Organization","site_admin":false},"repo":{"id":24291324,"name":"libcerf","full_name":"DlangScience/libcerf","owner":{"login":"DlangScience","id":12515762,"avatar_url":"https://avatars.githubusercontent.com/u/12515762?v=3","gravatar_id":"","url":"https://api.github.com/users/DlangScience","html_url":"https://github.com/DlangScience","followers_url":"https://api.github.com/users/DlangScience/followers","following_url":"https://api.github.com/users/DlangScience/following{/other_user}","gists_url":"https://api.github.com/users/DlangScience/gists{/gist_id}","starred_url":"https://api.github.com/users/DlangScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DlangScience/subscriptions","organizations_url":"https://api.github.com/users/DlangScience/orgs","repos_url":"https://api.github.com/users/DlangScience/repos","events_url":"https://api.github.com/users/DlangScience/events{/privacy}","received_events_url":"https://api.github.com/users/DlangScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DlangScience/libcerf","description":"Complex error functions, along with Dawson, Faddeeva, and Voigt functions.","fork":false,"url":"https://api.github.com/repos/DlangScience/libcerf","forks_url":"https://api.github.com/repos/DlangScience/libcerf/forks","keys_url":"https://api.github.com/repos/DlangScience/libcerf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DlangScience/libcerf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DlangScience/libcerf/teams","hooks_url":"https://api.github.com/repos/DlangScience/libcerf/hooks","issue_events_url":"https://api.github.com/repos/DlangScience/libcerf/issues/events{/number}","events_url":"https://api.github.com/repos/DlangScience/libcerf/events","assignees_url":"https://api.github.com/repos/DlangScience/libcerf/assignees{/user}","branches_url":"https://api.github.com/repos/DlangScience/libcerf/branches{/branch}","tags_url":"https://api.github.com/repos/DlangScience/libcerf/tags","blobs_url":"https://api.github.com/repos/DlangScience/libcerf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DlangScience/libcerf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DlangScience/libcerf/git/refs{/sha}","trees_url":"https://api.github.com/repos/DlangScience/libcerf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DlangScience/libcerf/statuses/{sha}","languages_url":"https://api.github.com/repos/DlangScience/libcerf/languages","stargazers_url":"https://api.github.com/repos/DlangScience/libcerf/stargazers","contributors_url":"https://api.github.com/repos/DlangScience/libcerf/contributors","subscribers_url":"https://api.github.com/repos/DlangScience/libcerf/subscribers","subscription_url":"https://api.github.com/repos/DlangScience/libcerf/subscription","commits_url":"https://api.github.com/repos/DlangScience/libcerf/commits{/sha}","git_commits_url":"https://api.github.com/repos/DlangScience/libcerf/git/commits{/sha}","comments_url":"https://api.github.com/repos/DlangScience/libcerf/comments{/number}","issue_comment_url":"https://api.github.com/repos/DlangScience/libcerf/issues/comments{/number}","contents_url":"https://api.github.com/repos/DlangScience/libcerf/contents/{+path}","compare_url":"https://api.github.com/repos/DlangScience/libcerf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DlangScience/libcerf/merges","archive_url":"https://api.github.com/repos/DlangScience/libcerf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DlangScience/libcerf/downloads","issues_url":"https://api.github.com/repos/DlangScience/libcerf/issues{/number}","pulls_url":"https://api.github.com/repos/DlangScience/libcerf/pulls{/number}","milestones_url":"https://api.github.com/repos/DlangScience/libcerf/milestones{/number}","notifications_url":"https://api.github.com/repos/DlangScience/libcerf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DlangScience/libcerf/labels{/name}","releases_url":"https://api.github.com/repos/DlangScience/libcerf/releases{/id}","created_at":"2014-09-21T13:14:10Z","updated_at":"2015-06-14T14:02:32Z","pushed_at":"2015-08-12T22:20:45Z","git_url":"git://github.com/DlangScience/libcerf.git","ssh_url":"git@github.com:DlangScience/libcerf.git","clone_url":"https://github.com/DlangScience/libcerf.git","svn_url":"https://github.com/DlangScience/libcerf","homepage":"","size":304,"stargazers_count":3,"watchers_count":3,"language":"D","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DlangScience/libcerf/pulls/2"},"html":{"href":"https://github.com/DlangScience/libcerf/pull/2"},"issue":{"href":"https://api.github.com/repos/DlangScience/libcerf/issues/2"},"comments":{"href":"https://api.github.com/repos/DlangScience/libcerf/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/DlangScience/libcerf/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/DlangScience/libcerf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DlangScience/libcerf/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/DlangScience/libcerf/statuses/830d1b605a2e7b81ada81ea39b6284efa9c76b8e"}}}}