{"action":"created","comment":{"url":"https://api.github.com/repos/jleclanche/fireplace/pulls/comments/59978121","id":59978121,"diff_hunk":"@@ -1,79 +1,97 @@\n import random\n from hearthstone.enums import CardType, Race, Rarity\n from .lazynum import LazyValue\n+from copy import copy\n+from .. import cards","path":"fireplace/dsl/random_picker.py","position":5,"original_position":5,"commit_id":"8b44e07ed95ab68c714d94f2b18fe338b7204289","original_commit_id":"cb27600a6ec209fb5dfdd248e967967de29b9370","user":{"login":"djkaty","id":4500319,"avatar_url":"https://avatars.githubusercontent.com/u/4500319?v=3","gravatar_id":"","url":"https://api.github.com/users/djkaty","html_url":"https://github.com/djkaty","followers_url":"https://api.github.com/users/djkaty/followers","following_url":"https://api.github.com/users/djkaty/following{/other_user}","gists_url":"https://api.github.com/users/djkaty/gists{/gist_id}","starred_url":"https://api.github.com/users/djkaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkaty/subscriptions","organizations_url":"https://api.github.com/users/djkaty/orgs","repos_url":"https://api.github.com/users/djkaty/repos","events_url":"https://api.github.com/users/djkaty/events{/privacy}","received_events_url":"https://api.github.com/users/djkaty/received_events","type":"User","site_admin":false},"body":"Fixed in next commit","created_at":"2016-04-17T04:27:08Z","updated_at":"2016-04-17T04:27:08Z","html_url":"https://github.com/jleclanche/fireplace/pull/339#discussion_r59978121","pull_request_url":"https://api.github.com/repos/jleclanche/fireplace/pulls/339","_links":{"self":{"href":"https://api.github.com/repos/jleclanche/fireplace/pulls/comments/59978121"},"html":{"href":"https://github.com/jleclanche/fireplace/pull/339#discussion_r59978121"},"pull_request":{"href":"https://api.github.com/repos/jleclanche/fireplace/pulls/339"}}},"pull_request":{"url":"https://api.github.com/repos/jleclanche/fireplace/pulls/339","id":66578758,"html_url":"https://github.com/jleclanche/fireplace/pull/339","diff_url":"https://github.com/jleclanche/fireplace/pull/339.diff","patch_url":"https://github.com/jleclanche/fireplace/pull/339.patch","issue_url":"https://api.github.com/repos/jleclanche/fireplace/issues/339","number":339,"state":"open","locked":false,"title":"Re-write pickers to allow weighted selection","user":{"login":"djkaty","id":4500319,"avatar_url":"https://avatars.githubusercontent.com/u/4500319?v=3","gravatar_id":"","url":"https://api.github.com/users/djkaty","html_url":"https://github.com/djkaty","followers_url":"https://api.github.com/users/djkaty/followers","following_url":"https://api.github.com/users/djkaty/following{/other_user}","gists_url":"https://api.github.com/users/djkaty/gists{/gist_id}","starred_url":"https://api.github.com/users/djkaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkaty/subscriptions","organizations_url":"https://api.github.com/users/djkaty/orgs","repos_url":"https://api.github.com/users/djkaty/repos","events_url":"https://api.github.com/users/djkaty/events{/privacy}","received_events_url":"https://api.github.com/users/djkaty/received_events","type":"User","site_admin":false},"body":"Add weighted_card_choice() to cards/utils.py\r\nAdd weighted pick test to tests/test_dsl.py\r\n\r\nUnnecessary fluff removed.\r\n\r\nStolen Winter Veil's Gift is (temporarily) broken.\r\n","created_at":"2016-04-15T01:31:25Z","updated_at":"2016-04-17T04:27:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e179e75fb9ee9a526c82653fafe73af6c9099939","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jleclanche/fireplace/pulls/339/commits","review_comments_url":"https://api.github.com/repos/jleclanche/fireplace/pulls/339/comments","review_comment_url":"https://api.github.com/repos/jleclanche/fireplace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jleclanche/fireplace/issues/339/comments","statuses_url":"https://api.github.com/repos/jleclanche/fireplace/statuses/8b44e07ed95ab68c714d94f2b18fe338b7204289","head":{"label":"djkaty:upstreamfixes/singleweightcardpicker","ref":"upstreamfixes/singleweightcardpicker","sha":"8b44e07ed95ab68c714d94f2b18fe338b7204289","user":{"login":"djkaty","id":4500319,"avatar_url":"https://avatars.githubusercontent.com/u/4500319?v=3","gravatar_id":"","url":"https://api.github.com/users/djkaty","html_url":"https://github.com/djkaty","followers_url":"https://api.github.com/users/djkaty/followers","following_url":"https://api.github.com/users/djkaty/following{/other_user}","gists_url":"https://api.github.com/users/djkaty/gists{/gist_id}","starred_url":"https://api.github.com/users/djkaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkaty/subscriptions","organizations_url":"https://api.github.com/users/djkaty/orgs","repos_url":"https://api.github.com/users/djkaty/repos","events_url":"https://api.github.com/users/djkaty/events{/privacy}","received_events_url":"https://api.github.com/users/djkaty/received_events","type":"User","site_admin":false},"repo":{"id":55860122,"name":"fireplace","full_name":"djkaty/fireplace","owner":{"login":"djkaty","id":4500319,"avatar_url":"https://avatars.githubusercontent.com/u/4500319?v=3","gravatar_id":"","url":"https://api.github.com/users/djkaty","html_url":"https://github.com/djkaty","followers_url":"https://api.github.com/users/djkaty/followers","following_url":"https://api.github.com/users/djkaty/following{/other_user}","gists_url":"https://api.github.com/users/djkaty/gists{/gist_id}","starred_url":"https://api.github.com/users/djkaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djkaty/subscriptions","organizations_url":"https://api.github.com/users/djkaty/orgs","repos_url":"https://api.github.com/users/djkaty/repos","events_url":"https://api.github.com/users/djkaty/events{/privacy}","received_events_url":"https://api.github.com/users/djkaty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djkaty/fireplace","description":"A Hearthstone simulator in Python","fork":true,"url":"https://api.github.com/repos/djkaty/fireplace","forks_url":"https://api.github.com/repos/djkaty/fireplace/forks","keys_url":"https://api.github.com/repos/djkaty/fireplace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djkaty/fireplace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djkaty/fireplace/teams","hooks_url":"https://api.github.com/repos/djkaty/fireplace/hooks","issue_events_url":"https://api.github.com/repos/djkaty/fireplace/issues/events{/number}","events_url":"https://api.github.com/repos/djkaty/fireplace/events","assignees_url":"https://api.github.com/repos/djkaty/fireplace/assignees{/user}","branches_url":"https://api.github.com/repos/djkaty/fireplace/branches{/branch}","tags_url":"https://api.github.com/repos/djkaty/fireplace/tags","blobs_url":"https://api.github.com/repos/djkaty/fireplace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djkaty/fireplace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djkaty/fireplace/git/refs{/sha}","trees_url":"https://api.github.com/repos/djkaty/fireplace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djkaty/fireplace/statuses/{sha}","languages_url":"https://api.github.com/repos/djkaty/fireplace/languages","stargazers_url":"https://api.github.com/repos/djkaty/fireplace/stargazers","contributors_url":"https://api.github.com/repos/djkaty/fireplace/contributors","subscribers_url":"https://api.github.com/repos/djkaty/fireplace/subscribers","subscription_url":"https://api.github.com/repos/djkaty/fireplace/subscription","commits_url":"https://api.github.com/repos/djkaty/fireplace/commits{/sha}","git_commits_url":"https://api.github.com/repos/djkaty/fireplace/git/commits{/sha}","comments_url":"https://api.github.com/repos/djkaty/fireplace/comments{/number}","issue_comment_url":"https://api.github.com/repos/djkaty/fireplace/issues/comments{/number}","contents_url":"https://api.github.com/repos/djkaty/fireplace/contents/{+path}","compare_url":"https://api.github.com/repos/djkaty/fireplace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djkaty/fireplace/merges","archive_url":"https://api.github.com/repos/djkaty/fireplace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djkaty/fireplace/downloads","issues_url":"https://api.github.com/repos/djkaty/fireplace/issues{/number}","pulls_url":"https://api.github.com/repos/djkaty/fireplace/pulls{/number}","milestones_url":"https://api.github.com/repos/djkaty/fireplace/milestones{/number}","notifications_url":"https://api.github.com/repos/djkaty/fireplace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djkaty/fireplace/labels{/name}","releases_url":"https://api.github.com/repos/djkaty/fireplace/releases{/id}","deployments_url":"https://api.github.com/repos/djkaty/fireplace/deployments","created_at":"2016-04-09T18:19:48Z","updated_at":"2016-04-09T18:19:49Z","pushed_at":"2016-04-17T03:17:33Z","git_url":"git://github.com/djkaty/fireplace.git","ssh_url":"git@github.com:djkaty/fireplace.git","clone_url":"https://github.com/djkaty/fireplace.git","svn_url":"https://github.com/djkaty/fireplace","homepage":"http://hearthsim.info","size":2542,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"jleclanche:master","ref":"master","sha":"faf412c3bcd271d1ccdc38af0b6d282efbf5789c","user":{"login":"jleclanche","id":235410,"avatar_url":"https://avatars.githubusercontent.com/u/235410?v=3","gravatar_id":"","url":"https://api.github.com/users/jleclanche","html_url":"https://github.com/jleclanche","followers_url":"https://api.github.com/users/jleclanche/followers","following_url":"https://api.github.com/users/jleclanche/following{/other_user}","gists_url":"https://api.github.com/users/jleclanche/gists{/gist_id}","starred_url":"https://api.github.com/users/jleclanche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleclanche/subscriptions","organizations_url":"https://api.github.com/users/jleclanche/orgs","repos_url":"https://api.github.com/users/jleclanche/repos","events_url":"https://api.github.com/users/jleclanche/events{/privacy}","received_events_url":"https://api.github.com/users/jleclanche/received_events","type":"User","site_admin":false},"repo":{"id":23332997,"name":"fireplace","full_name":"jleclanche/fireplace","owner":{"login":"jleclanche","id":235410,"avatar_url":"https://avatars.githubusercontent.com/u/235410?v=3","gravatar_id":"","url":"https://api.github.com/users/jleclanche","html_url":"https://github.com/jleclanche","followers_url":"https://api.github.com/users/jleclanche/followers","following_url":"https://api.github.com/users/jleclanche/following{/other_user}","gists_url":"https://api.github.com/users/jleclanche/gists{/gist_id}","starred_url":"https://api.github.com/users/jleclanche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleclanche/subscriptions","organizations_url":"https://api.github.com/users/jleclanche/orgs","repos_url":"https://api.github.com/users/jleclanche/repos","events_url":"https://api.github.com/users/jleclanche/events{/privacy}","received_events_url":"https://api.github.com/users/jleclanche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jleclanche/fireplace","description":"A Hearthstone simulator in Python","fork":false,"url":"https://api.github.com/repos/jleclanche/fireplace","forks_url":"https://api.github.com/repos/jleclanche/fireplace/forks","keys_url":"https://api.github.com/repos/jleclanche/fireplace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jleclanche/fireplace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jleclanche/fireplace/teams","hooks_url":"https://api.github.com/repos/jleclanche/fireplace/hooks","issue_events_url":"https://api.github.com/repos/jleclanche/fireplace/issues/events{/number}","events_url":"https://api.github.com/repos/jleclanche/fireplace/events","assignees_url":"https://api.github.com/repos/jleclanche/fireplace/assignees{/user}","branches_url":"https://api.github.com/repos/jleclanche/fireplace/branches{/branch}","tags_url":"https://api.github.com/repos/jleclanche/fireplace/tags","blobs_url":"https://api.github.com/repos/jleclanche/fireplace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jleclanche/fireplace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jleclanche/fireplace/git/refs{/sha}","trees_url":"https://api.github.com/repos/jleclanche/fireplace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jleclanche/fireplace/statuses/{sha}","languages_url":"https://api.github.com/repos/jleclanche/fireplace/languages","stargazers_url":"https://api.github.com/repos/jleclanche/fireplace/stargazers","contributors_url":"https://api.github.com/repos/jleclanche/fireplace/contributors","subscribers_url":"https://api.github.com/repos/jleclanche/fireplace/subscribers","subscription_url":"https://api.github.com/repos/jleclanche/fireplace/subscription","commits_url":"https://api.github.com/repos/jleclanche/fireplace/commits{/sha}","git_commits_url":"https://api.github.com/repos/jleclanche/fireplace/git/commits{/sha}","comments_url":"https://api.github.com/repos/jleclanche/fireplace/comments{/number}","issue_comment_url":"https://api.github.com/repos/jleclanche/fireplace/issues/comments{/number}","contents_url":"https://api.github.com/repos/jleclanche/fireplace/contents/{+path}","compare_url":"https://api.github.com/repos/jleclanche/fireplace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jleclanche/fireplace/merges","archive_url":"https://api.github.com/repos/jleclanche/fireplace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jleclanche/fireplace/downloads","issues_url":"https://api.github.com/repos/jleclanche/fireplace/issues{/number}","pulls_url":"https://api.github.com/repos/jleclanche/fireplace/pulls{/number}","milestones_url":"https://api.github.com/repos/jleclanche/fireplace/milestones{/number}","notifications_url":"https://api.github.com/repos/jleclanche/fireplace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jleclanche/fireplace/labels{/name}","releases_url":"https://api.github.com/repos/jleclanche/fireplace/releases{/id}","deployments_url":"https://api.github.com/repos/jleclanche/fireplace/deployments","created_at":"2014-08-26T00:14:09Z","updated_at":"2016-04-16T02:49:21Z","pushed_at":"2016-04-17T03:17:34Z","git_url":"git://github.com/jleclanche/fireplace.git","ssh_url":"git@github.com:jleclanche/fireplace.git","clone_url":"https://github.com/jleclanche/fireplace.git","svn_url":"https://github.com/jleclanche/fireplace","homepage":"http://hearthsim.info","size":3489,"stargazers_count":295,"watchers_count":295,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":47,"forks":69,"open_issues":47,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jleclanche/fireplace/pulls/339"},"html":{"href":"https://github.com/jleclanche/fireplace/pull/339"},"issue":{"href":"https://api.github.com/repos/jleclanche/fireplace/issues/339"},"comments":{"href":"https://api.github.com/repos/jleclanche/fireplace/issues/339/comments"},"review_comments":{"href":"https://api.github.com/repos/jleclanche/fireplace/pulls/339/comments"},"review_comment":{"href":"https://api.github.com/repos/jleclanche/fireplace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jleclanche/fireplace/pulls/339/commits"},"statuses":{"href":"https://api.github.com/repos/jleclanche/fireplace/statuses/8b44e07ed95ab68c714d94f2b18fe338b7204289"}}}}