GitHub PullRequestReviewCommentEvent at 2014-10-15 20:16:01
Repository: diff
Actor: btracey
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/gonum/diff/pulls/comments/18919277","id":18919277,"diff_hunk":"@@ -0,0 +1,134 @@\n+// Copyright ©2014 The gonum Authors. All rights reserved.\n+// Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+package fd\n+\n+import (\n+\t\"math\"\n+\t\"math/rand\"\n+\t\"testing\"\n+\n+\t\"github.com/gonum/floats\"\n+)\n+\n+type Rosenbrock struct {\n+\tnDim int\n+}\n+\n+func (r Rosenbrock) F(x []float64) (sum float64) {\n+\tderiv := make([]float64, len(x))\n+\treturn r.FDf(x, deriv)\n+}\n+\n+func (r Rosenbrock) FDf(x []float64, deriv []float64) (sum float64) {\n+\tsum = 0","path":"fd/gradient_test.go","position":25,"original_position":25,"commit_id":"98a1d1ac6b2c00916664264b70c981a00f7772b3","original_commit_id":"98a1d1ac6b2c00916664264b70c981a00f7772b3","user":{"login":"btracey","id":3680859,"avatar_url":"https://avatars.githubusercontent.com/u/3680859?v=2","gravatar_id":"","url":"https://api.github.com/users/btracey","html_url":"https://github.com/btracey","followers_url":"https://api.github.com/users/btracey/followers","following_url":"https://api.github.com/users/btracey/following{/other_user}","gists_url":"https://api.github.com/users/btracey/gists{/gist_id}","starred_url":"https://api.github.com/users/btracey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btracey/subscriptions","organizations_url":"https://api.github.com/users/btracey/orgs","repos_url":"https://api.github.com/users/btracey/repos","events_url":"https://api.github.com/users/btracey/events{/privacy}","received_events_url":"https://api.github.com/users/btracey/received_events","type":"User","site_admin":false},"body":"Oh, thanks. I just copied and pasted this from another code and didn't realize it had that wart.","created_at":"2014-10-15T20:16:01Z","updated_at":"2014-10-15T20:16:01Z","html_url":"https://github.com/gonum/diff/pull/4#discussion_r18919277","pull_request_url":"https://api.github.com/repos/gonum/diff/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/gonum/diff/pulls/comments/18919277"},"html":{"href":"https://github.com/gonum/diff/pull/4#discussion_r18919277"},"pull_request":{"href":"https://api.github.com/repos/gonum/diff/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/gonum/diff/pulls/4","id":22752133,"html_url":"https://github.com/gonum/diff/pull/4","diff_url":"https://github.com/gonum/diff/pull/4.diff","patch_url":"https://github.com/gonum/diff/pull/4.patch","issue_url":"https://api.github.com/repos/gonum/diff/issues/4","number":4,"state":"open","locked":false,"title":"Added Gradient method and tests.","user":{"login":"btracey","id":3680859,"avatar_url":"https://avatars.githubusercontent.com/u/3680859?v=2","gravatar_id":"","url":"https://api.github.com/users/btracey","html_url":"https://github.com/btracey","followers_url":"https://api.github.com/users/btracey/followers","following_url":"https://api.github.com/users/btracey/following{/other_user}","gists_url":"https://api.github.com/users/btracey/gists{/gist_id}","starred_url":"https://api.github.com/users/btracey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btracey/subscriptions","organizations_url":"https://api.github.com/users/btracey/orgs","repos_url":"https://api.github.com/users/btracey/repos","events_url":"https://api.github.com/users/btracey/events{/privacy}","received_events_url":"https://api.github.com/users/btracey/received_events","type":"User","site_admin":false},"body":"Gradient computes finite differences of vector-valued function using finite difference","created_at":"2014-10-14T23:47:05Z","updated_at":"2014-10-15T20:16:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6203ccc1d1707ec1d393e38511b9c7734eb03e99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gonum/diff/pulls/4/commits","review_comments_url":"https://api.github.com/repos/gonum/diff/pulls/4/comments","review_comment_url":"https://api.github.com/repos/gonum/diff/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gonum/diff/issues/4/comments","statuses_url":"https://api.github.com/repos/gonum/diff/statuses/98a1d1ac6b2c00916664264b70c981a00f7772b3","head":{"label":"gonum:addgradient","ref":"addgradient","sha":"98a1d1ac6b2c00916664264b70c981a00f7772b3","user":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=2","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"repo":{"id":23779288,"name":"diff","full_name":"gonum/diff","owner":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=2","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gonum/diff","description":"Set of tools for computing derivatives of a function","fork":false,"url":"https://api.github.com/repos/gonum/diff","forks_url":"https://api.github.com/repos/gonum/diff/forks","keys_url":"https://api.github.com/repos/gonum/diff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonum/diff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonum/diff/teams","hooks_url":"https://api.github.com/repos/gonum/diff/hooks","issue_events_url":"https://api.github.com/repos/gonum/diff/issues/events{/number}","events_url":"https://api.github.com/repos/gonum/diff/events","assignees_url":"https://api.github.com/repos/gonum/diff/assignees{/user}","branches_url":"https://api.github.com/repos/gonum/diff/branches{/branch}","tags_url":"https://api.github.com/repos/gonum/diff/tags","blobs_url":"https://api.github.com/repos/gonum/diff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonum/diff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonum/diff/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonum/diff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonum/diff/statuses/{sha}","languages_url":"https://api.github.com/repos/gonum/diff/languages","stargazers_url":"https://api.github.com/repos/gonum/diff/stargazers","contributors_url":"https://api.github.com/repos/gonum/diff/contributors","subscribers_url":"https://api.github.com/repos/gonum/diff/subscribers","subscription_url":"https://api.github.com/repos/gonum/diff/subscription","commits_url":"https://api.github.com/repos/gonum/diff/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonum/diff/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonum/diff/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonum/diff/issues/comments/{number}","contents_url":"https://api.github.com/repos/gonum/diff/contents/{+path}","compare_url":"https://api.github.com/repos/gonum/diff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonum/diff/merges","archive_url":"https://api.github.com/repos/gonum/diff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonum/diff/downloads","issues_url":"https://api.github.com/repos/gonum/diff/issues{/number}","pulls_url":"https://api.github.com/repos/gonum/diff/pulls{/number}","milestones_url":"https://api.github.com/repos/gonum/diff/milestones{/number}","notifications_url":"https://api.github.com/repos/gonum/diff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonum/diff/labels{/name}","releases_url":"https://api.github.com/repos/gonum/diff/releases{/id}","created_at":"2014-09-08T04:35:22Z","updated_at":"2014-09-15T14:35:04Z","pushed_at":"2014-10-15T18:11:28Z","git_url":"git://github.com/gonum/diff.git","ssh_url":"git@github.com:gonum/diff.git","clone_url":"https://github.com/gonum/diff.git","svn_url":"https://github.com/gonum/diff","homepage":null,"size":232,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"gonum:master","ref":"master","sha":"19aaf536f1a525d40909ea9de0698ed8dd5f5e9b","user":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=2","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"repo":{"id":23779288,"name":"diff","full_name":"gonum/diff","owner":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=2","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gonum/diff","description":"Set of tools for computing derivatives of a function","fork":false,"url":"https://api.github.com/repos/gonum/diff","forks_url":"https://api.github.com/repos/gonum/diff/forks","keys_url":"https://api.github.com/repos/gonum/diff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonum/diff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonum/diff/teams","hooks_url":"https://api.github.com/repos/gonum/diff/hooks","issue_events_url":"https://api.github.com/repos/gonum/diff/issues/events{/number}","events_url":"https://api.github.com/repos/gonum/diff/events","assignees_url":"https://api.github.com/repos/gonum/diff/assignees{/user}","branches_url":"https://api.github.com/repos/gonum/diff/branches{/branch}","tags_url":"https://api.github.com/repos/gonum/diff/tags","blobs_url":"https://api.github.com/repos/gonum/diff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonum/diff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonum/diff/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonum/diff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonum/diff/statuses/{sha}","languages_url":"https://api.github.com/repos/gonum/diff/languages","stargazers_url":"https://api.github.com/repos/gonum/diff/stargazers","contributors_url":"https://api.github.com/repos/gonum/diff/contributors","subscribers_url":"https://api.github.com/repos/gonum/diff/subscribers","subscription_url":"https://api.github.com/repos/gonum/diff/subscription","commits_url":"https://api.github.com/repos/gonum/diff/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonum/diff/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonum/diff/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonum/diff/issues/comments/{number}","contents_url":"https://api.github.com/repos/gonum/diff/contents/{+path}","compare_url":"https://api.github.com/repos/gonum/diff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonum/diff/merges","archive_url":"https://api.github.com/repos/gonum/diff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonum/diff/downloads","issues_url":"https://api.github.com/repos/gonum/diff/issues{/number}","pulls_url":"https://api.github.com/repos/gonum/diff/pulls{/number}","milestones_url":"https://api.github.com/repos/gonum/diff/milestones{/number}","notifications_url":"https://api.github.com/repos/gonum/diff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonum/diff/labels{/name}","releases_url":"https://api.github.com/repos/gonum/diff/releases{/id}","created_at":"2014-09-08T04:35:22Z","updated_at":"2014-09-15T14:35:04Z","pushed_at":"2014-10-15T18:11:28Z","git_url":"git://github.com/gonum/diff.git","ssh_url":"git@github.com:gonum/diff.git","clone_url":"https://github.com/gonum/diff.git","svn_url":"https://github.com/gonum/diff","homepage":null,"size":232,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gonum/diff/pulls/4"},"html":{"href":"https://github.com/gonum/diff/pull/4"},"issue":{"href":"https://api.github.com/repos/gonum/diff/issues/4"},"comments":{"href":"https://api.github.com/repos/gonum/diff/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/gonum/diff/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/gonum/diff/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gonum/diff/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/gonum/diff/statuses/98a1d1ac6b2c00916664264b70c981a00f7772b3"}}}}