{"action":"created","issue":{"url":"https://api.github.com/repos/greggwilliams58/WordFrequencyCount/issues/2","repository_url":"https://api.github.com/repos/greggwilliams58/WordFrequencyCount","labels_url":"https://api.github.com/repos/greggwilliams58/WordFrequencyCount/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/greggwilliams58/WordFrequencyCount/issues/2/comments","events_url":"https://api.github.com/repos/greggwilliams58/WordFrequencyCount/issues/2/events","html_url":"https://github.com/greggwilliams58/WordFrequencyCount/issues/2","id":381906446,"node_id":"MDU6SXNzdWUzODE5MDY0NDY=","number":2,"title":"Next issue","user":{"login":"xposix","id":17210993,"node_id":"MDQ6VXNlcjE3MjEwOTkz","avatar_url":"https://avatars1.githubusercontent.com/u/17210993?v=4","gravatar_id":"","url":"https://api.github.com/users/xposix","html_url":"https://github.com/xposix","followers_url":"https://api.github.com/users/xposix/followers","following_url":"https://api.github.com/users/xposix/following{/other_user}","gists_url":"https://api.github.com/users/xposix/gists{/gist_id}","starred_url":"https://api.github.com/users/xposix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xposix/subscriptions","organizations_url":"https://api.github.com/users/xposix/orgs","repos_url":"https://api.github.com/users/xposix/repos","events_url":"https://api.github.com/users/xposix/events{/privacy}","received_events_url":"https://api.github.com/users/xposix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-17T22:16:49Z","updated_at":"2018-11-30T10:42:02Z","closed_at":null,"author_association":"NONE","body":"https://github.com/greggwilliams58/WordFrequencyCount/blob/f648c1668ade046e6d08ee6acd7bb128966f5d7c/WordFrequencyCount/frequencycount.py#L4\r\n\r\n> Frequency.py\r\n> 1) Line 4 I converted the whole list to a giant string, which feels clunky and produced characters like \"['\" \r\n> and \"']\" appearing in the results set. \r\n> \tI had tried to append the list items into a new string: new_string = new_string + frequencies[item], > but that crashed the PC due to runaway demand\r\n\r\nyou should be able to provide other type of hashable object to Counter, string won't do. Try with tuples:\r\nc = collections.Counter(tuple(textlist))\r\n\r\nNot sure, data is not my speciality, I just came out with this googling for hashable objects :)"},"comment":{"url":"https://api.github.com/repos/greggwilliams58/WordFrequencyCount/issues/comments/443164147","html_url":"https://github.com/greggwilliams58/WordFrequencyCount/issues/2#issuecomment-443164147","issue_url":"https://api.github.com/repos/greggwilliams58/WordFrequencyCount/issues/2","id":443164147,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzE2NDE0Nw==","user":{"login":"greggwilliams58","id":26231012,"node_id":"MDQ6VXNlcjI2MjMxMDEy","avatar_url":"https://avatars3.githubusercontent.com/u/26231012?v=4","gravatar_id":"","url":"https://api.github.com/users/greggwilliams58","html_url":"https://github.com/greggwilliams58","followers_url":"https://api.github.com/users/greggwilliams58/followers","following_url":"https://api.github.com/users/greggwilliams58/following{/other_user}","gists_url":"https://api.github.com/users/greggwilliams58/gists{/gist_id}","starred_url":"https://api.github.com/users/greggwilliams58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greggwilliams58/subscriptions","organizations_url":"https://api.github.com/users/greggwilliams58/orgs","repos_url":"https://api.github.com/users/greggwilliams58/repos","events_url":"https://api.github.com/users/greggwilliams58/events{/privacy}","received_events_url":"https://api.github.com/users/greggwilliams58/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T10:42:02Z","updated_at":"2018-11-30T10:42:02Z","author_association":"OWNER","body":"Unfortunately, the .split() function serves the purpose of breaking the paragraphs of text into separate words for later frequency counting and that doesn't play nicely with textlist as a tuple object.  I think some kind of loop accessing the tuple, but then I end up appending again and crashing out with memory issues... A Generator possibily?"}}
{"actor":{"display_login":"greggwilliams58"}}