{"action":"closed","issue":{"url":"https://api.github.com/repos/milltanya/Python/issues/6","repository_url":"https://api.github.com/repos/milltanya/Python","labels_url":"https://api.github.com/repos/milltanya/Python/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/milltanya/Python/issues/6/comments","events_url":"https://api.github.com/repos/milltanya/Python/issues/6/events","html_url":"https://github.com/milltanya/Python/issues/6","id":312156906,"number":6,"title":"weighted_choice","user":{"login":"kuzmichevdima","id":5394422,"avatar_url":"https://avatars3.githubusercontent.com/u/5394422?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzmichevdima","html_url":"https://github.com/kuzmichevdima","followers_url":"https://api.github.com/users/kuzmichevdima/followers","following_url":"https://api.github.com/users/kuzmichevdima/following{/other_user}","gists_url":"https://api.github.com/users/kuzmichevdima/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzmichevdima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzmichevdima/subscriptions","organizations_url":"https://api.github.com/users/kuzmichevdima/orgs","repos_url":"https://api.github.com/users/kuzmichevdima/repos","events_url":"https://api.github.com/users/kuzmichevdima/events{/privacy}","received_events_url":"https://api.github.com/users/kuzmichevdima/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-07T00:51:28Z","updated_at":"2018-04-19T17:45:46Z","closed_at":"2018-04-19T17:45:46Z","author_association":"NONE","body":"https://github.com/milltanya/Python/blob/1e85ea8bb90975c6a509dc7dd669aebd610323c8/generate.py#L64-L72\r\n\r\nпочему я в другом репозитории вижу тот же самый код с теми же даже названиями?\r\n\r\n```\r\ndef weighted_choice(choices):\r\n   total = sum(w for c, w in choices)\r\n   r = random.uniform(0, total)\r\n   upto = 0\r\n   for c, w in choices:\r\n      if upto + w >= r:\r\n         return c\r\n      upto += w\r\n   return None\r\n```\r\n\r\nКто у кого списывает?"}}
{"actor":{"display_login":"kuzmichevdima"}}