{"action":"created","issue":{"url":"https://api.github.com/repos/libmoon/libmoon/issues/82","repository_url":"https://api.github.com/repos/libmoon/libmoon","labels_url":"https://api.github.com/repos/libmoon/libmoon/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/libmoon/libmoon/issues/82/comments","events_url":"https://api.github.com/repos/libmoon/libmoon/issues/82/events","html_url":"https://github.com/libmoon/libmoon/issues/82","id":362248330,"node_id":"MDU6SXNzdWUzNjIyNDgzMzA=","number":82,"title":"cannot call histogram:avg()","user":{"login":"thomas-schultz","id":14003896,"node_id":"MDQ6VXNlcjE0MDAzODk2","avatar_url":"https://avatars1.githubusercontent.com/u/14003896?v=4","gravatar_id":"","url":"https://api.github.com/users/thomas-schultz","html_url":"https://github.com/thomas-schultz","followers_url":"https://api.github.com/users/thomas-schultz/followers","following_url":"https://api.github.com/users/thomas-schultz/following{/other_user}","gists_url":"https://api.github.com/users/thomas-schultz/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-schultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-schultz/subscriptions","organizations_url":"https://api.github.com/users/thomas-schultz/orgs","repos_url":"https://api.github.com/users/thomas-schultz/repos","events_url":"https://api.github.com/users/thomas-schultz/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-schultz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-20T15:42:22Z","updated_at":"2018-09-28T16:04:49Z","closed_at":"2018-09-28T16:04:11Z","author_association":"CONTRIBUTOR","body":"Variable and function name are identical, so lua raises:\r\n`attempt to call method 'avg' (a number value)`\r\n\r\nCode:\r\n```\r\nfunction histogram:avg()\r\n\tif self.dirty then self:calc() end\r\n\r\n\treturn self.avg\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/libmoon/libmoon/issues/comments/425484543","html_url":"https://github.com/libmoon/libmoon/issues/82#issuecomment-425484543","issue_url":"https://api.github.com/repos/libmoon/libmoon/issues/82","id":425484543,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTQ4NDU0Mw==","user":{"login":"emmericp","id":8938753,"node_id":"MDQ6VXNlcjg5Mzg3NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8938753?v=4","gravatar_id":"","url":"https://api.github.com/users/emmericp","html_url":"https://github.com/emmericp","followers_url":"https://api.github.com/users/emmericp/followers","following_url":"https://api.github.com/users/emmericp/following{/other_user}","gists_url":"https://api.github.com/users/emmericp/gists{/gist_id}","starred_url":"https://api.github.com/users/emmericp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmericp/subscriptions","organizations_url":"https://api.github.com/users/emmericp/orgs","repos_url":"https://api.github.com/users/emmericp/repos","events_url":"https://api.github.com/users/emmericp/events{/privacy}","received_events_url":"https://api.github.com/users/emmericp/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T16:04:49Z","updated_at":"2018-09-28T16:04:49Z","author_association":"MEMBER","body":"thanks for reporting. fixed by renaming to :average(); other code might rely on doing :calc() followed by an access to .avg"}}
{"actor":{"display_login":"emmericp"}}