{"action":"created","comment":{"url":"https://api.github.com/repos/dwavesystems/dimod/pulls/comments/207695670","pull_request_review_id":143368322,"id":207695670,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzY5NTY3MA==","diff_hunk":"@@ -2073,11 +2074,14 @@ def from_numpy_vectors(cls, linear, quadratic, offset, vartype, variable_order=N\n             :obj:`.BinaryQuadraticModel`\n \n         Examples:\n+            >>> import dimod\n+            >>> import numpy as np\n+            ...\n             >>> linear_vector = np.asarray([-1, 1])\n-            >>> quadratic_vectors = (np.asarray([0]), np.asarray([1]), np.asarray([-1.0])))\n+            >>> quadratic_vectors = (np.asarray([0]), np.asarray([1]), np.asarray([-1.0]))","path":"dimod/binary_quadratic_model.py","position":101,"original_position":101,"commit_id":"fd362595a8d4e0d095e0184c09eec46f645df7a7","original_commit_id":"fd362595a8d4e0d095e0184c09eec46f645df7a7","user":{"login":"randomir","id":447371,"node_id":"MDQ6VXNlcjQ0NzM3MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/447371?v=4","gravatar_id":"","url":"https://api.github.com/users/randomir","html_url":"https://github.com/randomir","followers_url":"https://api.github.com/users/randomir/followers","following_url":"https://api.github.com/users/randomir/following{/other_user}","gists_url":"https://api.github.com/users/randomir/gists{/gist_id}","starred_url":"https://api.github.com/users/randomir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randomir/subscriptions","organizations_url":"https://api.github.com/users/randomir/orgs","repos_url":"https://api.github.com/users/randomir/repos","events_url":"https://api.github.com/users/randomir/events{/privacy}","received_events_url":"https://api.github.com/users/randomir/received_events","type":"User","site_admin":false},"body":"Sidenote: outer parens unnecessary.","created_at":"2018-08-04T01:14:48Z","updated_at":"2018-08-04T01:48:02Z","html_url":"https://github.com/dwavesystems/dimod/pull/243#discussion_r207695670","pull_request_url":"https://api.github.com/repos/dwavesystems/dimod/pulls/243","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dwavesystems/dimod/pulls/comments/207695670"},"html":{"href":"https://github.com/dwavesystems/dimod/pull/243#discussion_r207695670"},"pull_request":{"href":"https://api.github.com/repos/dwavesystems/dimod/pulls/243"}}},"pull_request":{"url":"https://api.github.com/repos/dwavesystems/dimod/pulls/243","id":205888239,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1ODg4MjM5","html_url":"https://github.com/dwavesystems/dimod/pull/243","diff_url":"https://github.com/dwavesystems/dimod/pull/243.diff","patch_url":"https://github.com/dwavesystems/dimod/pull/243.patch","issue_url":"https://api.github.com/repos/dwavesystems/dimod/issues/243","number":243,"state":"open","locked":false,"title":"Refactor Response","user":{"login":"arcondello","id":8395238,"node_id":"MDQ6VXNlcjgzOTUyMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8395238?v=4","gravatar_id":"","url":"https://api.github.com/users/arcondello","html_url":"https://github.com/arcondello","followers_url":"https://api.github.com/users/arcondello/followers","following_url":"https://api.github.com/users/arcondello/following{/other_user}","gists_url":"https://api.github.com/users/arcondello/gists{/gist_id}","starred_url":"https://api.github.com/users/arcondello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcondello/subscriptions","organizations_url":"https://api.github.com/users/arcondello/orgs","repos_url":"https://api.github.com/users/arcondello/repos","events_url":"https://api.github.com/users/arcondello/events{/privacy}","received_events_url":"https://api.github.com/users/arcondello/received_events","type":"User","site_admin":false},"body":"Closes #233 \r\nCloses #228 ","created_at":"2018-08-02T23:26:54Z","updated_at":"2018-08-04T01:48:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9752eed17090d9454b5c2920ef66e92e8c4cef31","assignee":{"login":"arcondello","id":8395238,"node_id":"MDQ6VXNlcjgzOTUyMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8395238?v=4","gravatar_id":"","url":"https://api.github.com/users/arcondello","html_url":"https://github.com/arcondello","followers_url":"https://api.github.com/users/arcondello/followers","following_url":"https://api.github.com/users/arcondello/following{/other_user}","gists_url":"https://api.github.com/users/arcondello/gists{/gist_id}","starred_url":"https://api.github.com/users/arcondello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcondello/subscriptions","organizations_url":"https://api.github.com/users/arcondello/orgs","repos_url":"https://api.github.com/users/arcondello/repos","events_url":"https://api.github.com/users/arcondello/events{/privacy}","received_events_url":"https://api.github.com/users/arcondello/received_events","type":"User","site_admin":false},"assignees":[{"login":"arcondello","id":8395238,"node_id":"MDQ6VXNlcjgzOTUyMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8395238?v=4","gravatar_id":"","url":"https://api.github.com/users/arcondello","html_url":"https://github.com/arcondello","followers_url":"https://api.github.com/users/arcondello/followers","following_url":"https://api.github.com/users/arcondello/following{/other_user}","gists_url":"https://api.github.com/users/arcondello/gists{/gist_id}","starred_url":"https://api.github.com/users/arcondello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcondello/subscriptions","organizations_url":"https://api.github.com/users/arcondello/orgs","repos_url":"https://api.github.com/users/arcondello/repos","events_url":"https://api.github.com/users/arcondello/events{/privacy}","received_events_url":"https://api.github.com/users/arcondello/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"wbernoudy","id":11012124,"node_id":"MDQ6VXNlcjExMDEyMTI0","avatar_url":"https://avatars2.githubusercontent.com/u/11012124?v=4","gravatar_id":"","url":"https://api.github.com/users/wbernoudy","html_url":"https://github.com/wbernoudy","followers_url":"https://api.github.com/users/wbernoudy/followers","following_url":"https://api.github.com/users/wbernoudy/following{/other_user}","gists_url":"https://api.github.com/users/wbernoudy/gists{/gist_id}","starred_url":"https://api.github.com/users/wbernoudy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbernoudy/subscriptions","organizations_url":"https://api.github.com/users/wbernoudy/orgs","repos_url":"https://api.github.com/users/wbernoudy/repos","events_url":"https://api.github.com/users/wbernoudy/events{/privacy}","received_events_url":"https://api.github.com/users/wbernoudy/received_events","type":"User","site_admin":false},{"login":"JoelPasvolsky","id":34041130,"node_id":"MDQ6VXNlcjM0MDQxMTMw","avatar_url":"https://avatars2.githubusercontent.com/u/34041130?v=4","gravatar_id":"","url":"https://api.github.com/users/JoelPasvolsky","html_url":"https://github.com/JoelPasvolsky","followers_url":"https://api.github.com/users/JoelPasvolsky/followers","following_url":"https://api.github.com/users/JoelPasvolsky/following{/other_user}","gists_url":"https://api.github.com/users/JoelPasvolsky/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelPasvolsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelPasvolsky/subscriptions","organizations_url":"https://api.github.com/users/JoelPasvolsky/orgs","repos_url":"https://api.github.com/users/JoelPasvolsky/repos","events_url":"https://api.github.com/users/JoelPasvolsky/events{/privacy}","received_events_url":"https://api.github.com/users/JoelPasvolsky/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dwavesystems/dimod/pulls/243/commits","review_comments_url":"https://api.github.com/repos/dwavesystems/dimod/pulls/243/comments","review_comment_url":"https://api.github.com/repos/dwavesystems/dimod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dwavesystems/dimod/issues/243/comments","statuses_url":"https://api.github.com/repos/dwavesystems/dimod/statuses/fd362595a8d4e0d095e0184c09eec46f645df7a7","head":{"label":"arcondello:new_response","ref":"new_response","sha":"fd362595a8d4e0d095e0184c09eec46f645df7a7","user":{"login":"arcondello","id":8395238,"node_id":"MDQ6VXNlcjgzOTUyMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8395238?v=4","gravatar_id":"","url":"https://api.github.com/users/arcondello","html_url":"https://github.com/arcondello","followers_url":"https://api.github.com/users/arcondello/followers","following_url":"https://api.github.com/users/arcondello/following{/other_user}","gists_url":"https://api.github.com/users/arcondello/gists{/gist_id}","starred_url":"https://api.github.com/users/arcondello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcondello/subscriptions","organizations_url":"https://api.github.com/users/arcondello/orgs","repos_url":"https://api.github.com/users/arcondello/repos","events_url":"https://api.github.com/users/arcondello/events{/privacy}","received_events_url":"https://api.github.com/users/arcondello/received_events","type":"User","site_admin":false},"repo":{"id":115138524,"node_id":"MDEwOlJlcG9zaXRvcnkxMTUxMzg1MjQ=","name":"dimod","full_name":"arcondello/dimod","owner":{"login":"arcondello","id":8395238,"node_id":"MDQ6VXNlcjgzOTUyMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8395238?v=4","gravatar_id":"","url":"https://api.github.com/users/arcondello","html_url":"https://github.com/arcondello","followers_url":"https://api.github.com/users/arcondello/followers","following_url":"https://api.github.com/users/arcondello/following{/other_user}","gists_url":"https://api.github.com/users/arcondello/gists{/gist_id}","starred_url":"https://api.github.com/users/arcondello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcondello/subscriptions","organizations_url":"https://api.github.com/users/arcondello/orgs","repos_url":"https://api.github.com/users/arcondello/repos","events_url":"https://api.github.com/users/arcondello/events{/privacy}","received_events_url":"https://api.github.com/users/arcondello/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arcondello/dimod","description":"A shared API for QUBO/Ising samplers.","fork":true,"url":"https://api.github.com/repos/arcondello/dimod","forks_url":"https://api.github.com/repos/arcondello/dimod/forks","keys_url":"https://api.github.com/repos/arcondello/dimod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arcondello/dimod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arcondello/dimod/teams","hooks_url":"https://api.github.com/repos/arcondello/dimod/hooks","issue_events_url":"https://api.github.com/repos/arcondello/dimod/issues/events{/number}","events_url":"https://api.github.com/repos/arcondello/dimod/events","assignees_url":"https://api.github.com/repos/arcondello/dimod/assignees{/user}","branches_url":"https://api.github.com/repos/arcondello/dimod/branches{/branch}","tags_url":"https://api.github.com/repos/arcondello/dimod/tags","blobs_url":"https://api.github.com/repos/arcondello/dimod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arcondello/dimod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arcondello/dimod/git/refs{/sha}","trees_url":"https://api.github.com/repos/arcondello/dimod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arcondello/dimod/statuses/{sha}","languages_url":"https://api.github.com/repos/arcondello/dimod/languages","stargazers_url":"https://api.github.com/repos/arcondello/dimod/stargazers","contributors_url":"https://api.github.com/repos/arcondello/dimod/contributors","subscribers_url":"https://api.github.com/repos/arcondello/dimod/subscribers","subscription_url":"https://api.github.com/repos/arcondello/dimod/subscription","commits_url":"https://api.github.com/repos/arcondello/dimod/commits{/sha}","git_commits_url":"https://api.github.com/repos/arcondello/dimod/git/commits{/sha}","comments_url":"https://api.github.com/repos/arcondello/dimod/comments{/number}","issue_comment_url":"https://api.github.com/repos/arcondello/dimod/issues/comments{/number}","contents_url":"https://api.github.com/repos/arcondello/dimod/contents/{+path}","compare_url":"https://api.github.com/repos/arcondello/dimod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arcondello/dimod/merges","archive_url":"https://api.github.com/repos/arcondello/dimod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arcondello/dimod/downloads","issues_url":"https://api.github.com/repos/arcondello/dimod/issues{/number}","pulls_url":"https://api.github.com/repos/arcondello/dimod/pulls{/number}","milestones_url":"https://api.github.com/repos/arcondello/dimod/milestones{/number}","notifications_url":"https://api.github.com/repos/arcondello/dimod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arcondello/dimod/labels{/name}","releases_url":"https://api.github.com/repos/arcondello/dimod/releases{/id}","deployments_url":"https://api.github.com/repos/arcondello/dimod/deployments","created_at":"2017-12-22T17:55:46Z","updated_at":"2018-07-19T14:32:22Z","pushed_at":"2018-08-04T00:56:10Z","git_url":"git://github.com/arcondello/dimod.git","ssh_url":"git@github.com:arcondello/dimod.git","clone_url":"https://github.com/arcondello/dimod.git","svn_url":"https://github.com/arcondello/dimod","homepage":"http://dimod.readthedocs.io/en/latest/","size":1138,"stargazers_count":0,"watchers_count":0,"language":"Python","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":{"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":"dwavesystems:master","ref":"master","sha":"61b07497d672591f0b03970403166bef8308b85f","user":{"login":"dwavesystems","id":5449030,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NDkwMzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5449030?v=4","gravatar_id":"","url":"https://api.github.com/users/dwavesystems","html_url":"https://github.com/dwavesystems","followers_url":"https://api.github.com/users/dwavesystems/followers","following_url":"https://api.github.com/users/dwavesystems/following{/other_user}","gists_url":"https://api.github.com/users/dwavesystems/gists{/gist_id}","starred_url":"https://api.github.com/users/dwavesystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwavesystems/subscriptions","organizations_url":"https://api.github.com/users/dwavesystems/orgs","repos_url":"https://api.github.com/users/dwavesystems/repos","events_url":"https://api.github.com/users/dwavesystems/events{/privacy}","received_events_url":"https://api.github.com/users/dwavesystems/received_events","type":"Organization","site_admin":false},"repo":{"id":100658303,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA2NTgzMDM=","name":"dimod","full_name":"dwavesystems/dimod","owner":{"login":"dwavesystems","id":5449030,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NDkwMzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5449030?v=4","gravatar_id":"","url":"https://api.github.com/users/dwavesystems","html_url":"https://github.com/dwavesystems","followers_url":"https://api.github.com/users/dwavesystems/followers","following_url":"https://api.github.com/users/dwavesystems/following{/other_user}","gists_url":"https://api.github.com/users/dwavesystems/gists{/gist_id}","starred_url":"https://api.github.com/users/dwavesystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwavesystems/subscriptions","organizations_url":"https://api.github.com/users/dwavesystems/orgs","repos_url":"https://api.github.com/users/dwavesystems/repos","events_url":"https://api.github.com/users/dwavesystems/events{/privacy}","received_events_url":"https://api.github.com/users/dwavesystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dwavesystems/dimod","description":"A shared API for QUBO/Ising samplers.","fork":false,"url":"https://api.github.com/repos/dwavesystems/dimod","forks_url":"https://api.github.com/repos/dwavesystems/dimod/forks","keys_url":"https://api.github.com/repos/dwavesystems/dimod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwavesystems/dimod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwavesystems/dimod/teams","hooks_url":"https://api.github.com/repos/dwavesystems/dimod/hooks","issue_events_url":"https://api.github.com/repos/dwavesystems/dimod/issues/events{/number}","events_url":"https://api.github.com/repos/dwavesystems/dimod/events","assignees_url":"https://api.github.com/repos/dwavesystems/dimod/assignees{/user}","branches_url":"https://api.github.com/repos/dwavesystems/dimod/branches{/branch}","tags_url":"https://api.github.com/repos/dwavesystems/dimod/tags","blobs_url":"https://api.github.com/repos/dwavesystems/dimod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwavesystems/dimod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwavesystems/dimod/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwavesystems/dimod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwavesystems/dimod/statuses/{sha}","languages_url":"https://api.github.com/repos/dwavesystems/dimod/languages","stargazers_url":"https://api.github.com/repos/dwavesystems/dimod/stargazers","contributors_url":"https://api.github.com/repos/dwavesystems/dimod/contributors","subscribers_url":"https://api.github.com/repos/dwavesystems/dimod/subscribers","subscription_url":"https://api.github.com/repos/dwavesystems/dimod/subscription","commits_url":"https://api.github.com/repos/dwavesystems/dimod/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwavesystems/dimod/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwavesystems/dimod/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwavesystems/dimod/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwavesystems/dimod/contents/{+path}","compare_url":"https://api.github.com/repos/dwavesystems/dimod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwavesystems/dimod/merges","archive_url":"https://api.github.com/repos/dwavesystems/dimod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwavesystems/dimod/downloads","issues_url":"https://api.github.com/repos/dwavesystems/dimod/issues{/number}","pulls_url":"https://api.github.com/repos/dwavesystems/dimod/pulls{/number}","milestones_url":"https://api.github.com/repos/dwavesystems/dimod/milestones{/number}","notifications_url":"https://api.github.com/repos/dwavesystems/dimod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwavesystems/dimod/labels{/name}","releases_url":"https://api.github.com/repos/dwavesystems/dimod/releases{/id}","deployments_url":"https://api.github.com/repos/dwavesystems/dimod/deployments","created_at":"2017-08-18T01:02:17Z","updated_at":"2018-08-02T21:58:24Z","pushed_at":"2018-08-04T00:56:10Z","git_url":"git://github.com/dwavesystems/dimod.git","ssh_url":"git@github.com:dwavesystems/dimod.git","clone_url":"https://github.com/dwavesystems/dimod.git","svn_url":"https://github.com/dwavesystems/dimod","homepage":"http://dimod.readthedocs.io/en/latest/","size":1053,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":27,"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":16,"open_issues":27,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dwavesystems/dimod/pulls/243"},"html":{"href":"https://github.com/dwavesystems/dimod/pull/243"},"issue":{"href":"https://api.github.com/repos/dwavesystems/dimod/issues/243"},"comments":{"href":"https://api.github.com/repos/dwavesystems/dimod/issues/243/comments"},"review_comments":{"href":"https://api.github.com/repos/dwavesystems/dimod/pulls/243/comments"},"review_comment":{"href":"https://api.github.com/repos/dwavesystems/dimod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dwavesystems/dimod/pulls/243/commits"},"statuses":{"href":"https://api.github.com/repos/dwavesystems/dimod/statuses/fd362595a8d4e0d095e0184c09eec46f645df7a7"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"randomir"}}