{"action":"created","comment":{"url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/comments/113155015","pull_request_review_id":34519295,"id":113155015,"diff_hunk":"@@ -0,0 +1,71 @@\n+import System.Environment\n+import qualified Data.Map as Map\n+import qualified Data.List as List\n+import System.Console.GetOpt\n+\n+type Array a = Map.Map Int a\n+\n+type Entry = (String, Int)\n+\n+readInput :: String -> Map.Map Int (Entry, Int)\n+readInput str = let\n+  entries = lines str\n+  (_, triple) = foldl (\\(i, a) e -> (i + 1, (i + 1, readEntry e):a)) (0, []) entries","path":"A3/zouroboros-Hamster.hs","position":13,"original_position":13,"commit_id":"a887b125605ea22e4cca05ac085e99264449ec88","original_commit_id":"a887b125605ea22e4cca05ac085e99264449ec88","user":{"login":"s-will","id":11848365,"avatar_url":"https://avatars1.githubusercontent.com/u/11848365?v=3","gravatar_id":"","url":"https://api.github.com/users/s-will","html_url":"https://github.com/s-will","followers_url":"https://api.github.com/users/s-will/followers","following_url":"https://api.github.com/users/s-will/following{/other_user}","gists_url":"https://api.github.com/users/s-will/gists{/gist_id}","starred_url":"https://api.github.com/users/s-will/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-will/subscriptions","organizations_url":"https://api.github.com/users/s-will/orgs","repos_url":"https://api.github.com/users/s-will/repos","events_url":"https://api.github.com/users/s-will/events{/privacy}","received_events_url":"https://api.github.com/users/s-will/received_events","type":"User","site_admin":false},"body":"isn't this just a map plus some indexing?","created_at":"2017-04-25T10:03:38Z","updated_at":"2017-04-25T10:50:19Z","html_url":"https://github.com/ViennaAPBC/APBC/pull/41#discussion_r113155015","pull_request_url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/comments/113155015"},"html":{"href":"https://github.com/ViennaAPBC/APBC/pull/41#discussion_r113155015"},"pull_request":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41","id":115296355,"html_url":"https://github.com/ViennaAPBC/APBC/pull/41","diff_url":"https://github.com/ViennaAPBC/APBC/pull/41.diff","patch_url":"https://github.com/ViennaAPBC/APBC/pull/41.patch","issue_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues/41","number":41,"state":"open","locked":false,"title":"A3 Solution","user":{"login":"zouroboros","id":17239069,"avatar_url":"https://avatars0.githubusercontent.com/u/17239069?v=3","gravatar_id":"","url":"https://api.github.com/users/zouroboros","html_url":"https://github.com/zouroboros","followers_url":"https://api.github.com/users/zouroboros/followers","following_url":"https://api.github.com/users/zouroboros/following{/other_user}","gists_url":"https://api.github.com/users/zouroboros/gists{/gist_id}","starred_url":"https://api.github.com/users/zouroboros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zouroboros/subscriptions","organizations_url":"https://api.github.com/users/zouroboros/orgs","repos_url":"https://api.github.com/users/zouroboros/repos","events_url":"https://api.github.com/users/zouroboros/events{/privacy}","received_events_url":"https://api.github.com/users/zouroboros/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-11T11:15:45Z","updated_at":"2017-04-25T10:50:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9654dcc2a132222f2f39e91727a9d5d3e4a3fe1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41/commits","review_comments_url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41/comments","review_comment_url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues/41/comments","statuses_url":"https://api.github.com/repos/ViennaAPBC/APBC/statuses/a887b125605ea22e4cca05ac085e99264449ec88","head":{"label":"ViennaAPBC:zouroboros","ref":"zouroboros","sha":"a887b125605ea22e4cca05ac085e99264449ec88","user":{"login":"ViennaAPBC","id":25438500,"avatar_url":"https://avatars3.githubusercontent.com/u/25438500?v=3","gravatar_id":"","url":"https://api.github.com/users/ViennaAPBC","html_url":"https://github.com/ViennaAPBC","followers_url":"https://api.github.com/users/ViennaAPBC/followers","following_url":"https://api.github.com/users/ViennaAPBC/following{/other_user}","gists_url":"https://api.github.com/users/ViennaAPBC/gists{/gist_id}","starred_url":"https://api.github.com/users/ViennaAPBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViennaAPBC/subscriptions","organizations_url":"https://api.github.com/users/ViennaAPBC/orgs","repos_url":"https://api.github.com/users/ViennaAPBC/repos","events_url":"https://api.github.com/users/ViennaAPBC/events{/privacy}","received_events_url":"https://api.github.com/users/ViennaAPBC/received_events","type":"Organization","site_admin":false},"repo":{"id":80447357,"name":"APBC","full_name":"ViennaAPBC/APBC","owner":{"login":"ViennaAPBC","id":25438500,"avatar_url":"https://avatars3.githubusercontent.com/u/25438500?v=3","gravatar_id":"","url":"https://api.github.com/users/ViennaAPBC","html_url":"https://github.com/ViennaAPBC","followers_url":"https://api.github.com/users/ViennaAPBC/followers","following_url":"https://api.github.com/users/ViennaAPBC/following{/other_user}","gists_url":"https://api.github.com/users/ViennaAPBC/gists{/gist_id}","starred_url":"https://api.github.com/users/ViennaAPBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViennaAPBC/subscriptions","organizations_url":"https://api.github.com/users/ViennaAPBC/orgs","repos_url":"https://api.github.com/users/ViennaAPBC/repos","events_url":"https://api.github.com/users/ViennaAPBC/events{/privacy}","received_events_url":"https://api.github.com/users/ViennaAPBC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ViennaAPBC/APBC","description":"270056 Algorithmen und Programmentwicklung für die Biologische Chemie","fork":false,"url":"https://api.github.com/repos/ViennaAPBC/APBC","forks_url":"https://api.github.com/repos/ViennaAPBC/APBC/forks","keys_url":"https://api.github.com/repos/ViennaAPBC/APBC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ViennaAPBC/APBC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ViennaAPBC/APBC/teams","hooks_url":"https://api.github.com/repos/ViennaAPBC/APBC/hooks","issue_events_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues/events{/number}","events_url":"https://api.github.com/repos/ViennaAPBC/APBC/events","assignees_url":"https://api.github.com/repos/ViennaAPBC/APBC/assignees{/user}","branches_url":"https://api.github.com/repos/ViennaAPBC/APBC/branches{/branch}","tags_url":"https://api.github.com/repos/ViennaAPBC/APBC/tags","blobs_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/refs{/sha}","trees_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ViennaAPBC/APBC/statuses/{sha}","languages_url":"https://api.github.com/repos/ViennaAPBC/APBC/languages","stargazers_url":"https://api.github.com/repos/ViennaAPBC/APBC/stargazers","contributors_url":"https://api.github.com/repos/ViennaAPBC/APBC/contributors","subscribers_url":"https://api.github.com/repos/ViennaAPBC/APBC/subscribers","subscription_url":"https://api.github.com/repos/ViennaAPBC/APBC/subscription","commits_url":"https://api.github.com/repos/ViennaAPBC/APBC/commits{/sha}","git_commits_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/commits{/sha}","comments_url":"https://api.github.com/repos/ViennaAPBC/APBC/comments{/number}","issue_comment_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues/comments{/number}","contents_url":"https://api.github.com/repos/ViennaAPBC/APBC/contents/{+path}","compare_url":"https://api.github.com/repos/ViennaAPBC/APBC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ViennaAPBC/APBC/merges","archive_url":"https://api.github.com/repos/ViennaAPBC/APBC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ViennaAPBC/APBC/downloads","issues_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues{/number}","pulls_url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls{/number}","milestones_url":"https://api.github.com/repos/ViennaAPBC/APBC/milestones{/number}","notifications_url":"https://api.github.com/repos/ViennaAPBC/APBC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ViennaAPBC/APBC/labels{/name}","releases_url":"https://api.github.com/repos/ViennaAPBC/APBC/releases{/id}","deployments_url":"https://api.github.com/repos/ViennaAPBC/APBC/deployments","created_at":"2017-01-30T17:56:05Z","updated_at":"2017-03-16T07:14:27Z","pushed_at":"2017-04-25T06:45:47Z","git_url":"git://github.com/ViennaAPBC/APBC.git","ssh_url":"git@github.com:ViennaAPBC/APBC.git","clone_url":"https://github.com/ViennaAPBC/APBC.git","svn_url":"https://github.com/ViennaAPBC/APBC","homepage":null,"size":763,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"ViennaAPBC:master","ref":"master","sha":"6a5d76b0e6d10503778d74d19598b9ca7b5e96a9","user":{"login":"ViennaAPBC","id":25438500,"avatar_url":"https://avatars3.githubusercontent.com/u/25438500?v=3","gravatar_id":"","url":"https://api.github.com/users/ViennaAPBC","html_url":"https://github.com/ViennaAPBC","followers_url":"https://api.github.com/users/ViennaAPBC/followers","following_url":"https://api.github.com/users/ViennaAPBC/following{/other_user}","gists_url":"https://api.github.com/users/ViennaAPBC/gists{/gist_id}","starred_url":"https://api.github.com/users/ViennaAPBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViennaAPBC/subscriptions","organizations_url":"https://api.github.com/users/ViennaAPBC/orgs","repos_url":"https://api.github.com/users/ViennaAPBC/repos","events_url":"https://api.github.com/users/ViennaAPBC/events{/privacy}","received_events_url":"https://api.github.com/users/ViennaAPBC/received_events","type":"Organization","site_admin":false},"repo":{"id":80447357,"name":"APBC","full_name":"ViennaAPBC/APBC","owner":{"login":"ViennaAPBC","id":25438500,"avatar_url":"https://avatars3.githubusercontent.com/u/25438500?v=3","gravatar_id":"","url":"https://api.github.com/users/ViennaAPBC","html_url":"https://github.com/ViennaAPBC","followers_url":"https://api.github.com/users/ViennaAPBC/followers","following_url":"https://api.github.com/users/ViennaAPBC/following{/other_user}","gists_url":"https://api.github.com/users/ViennaAPBC/gists{/gist_id}","starred_url":"https://api.github.com/users/ViennaAPBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViennaAPBC/subscriptions","organizations_url":"https://api.github.com/users/ViennaAPBC/orgs","repos_url":"https://api.github.com/users/ViennaAPBC/repos","events_url":"https://api.github.com/users/ViennaAPBC/events{/privacy}","received_events_url":"https://api.github.com/users/ViennaAPBC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ViennaAPBC/APBC","description":"270056 Algorithmen und Programmentwicklung für die Biologische Chemie","fork":false,"url":"https://api.github.com/repos/ViennaAPBC/APBC","forks_url":"https://api.github.com/repos/ViennaAPBC/APBC/forks","keys_url":"https://api.github.com/repos/ViennaAPBC/APBC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ViennaAPBC/APBC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ViennaAPBC/APBC/teams","hooks_url":"https://api.github.com/repos/ViennaAPBC/APBC/hooks","issue_events_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues/events{/number}","events_url":"https://api.github.com/repos/ViennaAPBC/APBC/events","assignees_url":"https://api.github.com/repos/ViennaAPBC/APBC/assignees{/user}","branches_url":"https://api.github.com/repos/ViennaAPBC/APBC/branches{/branch}","tags_url":"https://api.github.com/repos/ViennaAPBC/APBC/tags","blobs_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/refs{/sha}","trees_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ViennaAPBC/APBC/statuses/{sha}","languages_url":"https://api.github.com/repos/ViennaAPBC/APBC/languages","stargazers_url":"https://api.github.com/repos/ViennaAPBC/APBC/stargazers","contributors_url":"https://api.github.com/repos/ViennaAPBC/APBC/contributors","subscribers_url":"https://api.github.com/repos/ViennaAPBC/APBC/subscribers","subscription_url":"https://api.github.com/repos/ViennaAPBC/APBC/subscription","commits_url":"https://api.github.com/repos/ViennaAPBC/APBC/commits{/sha}","git_commits_url":"https://api.github.com/repos/ViennaAPBC/APBC/git/commits{/sha}","comments_url":"https://api.github.com/repos/ViennaAPBC/APBC/comments{/number}","issue_comment_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues/comments{/number}","contents_url":"https://api.github.com/repos/ViennaAPBC/APBC/contents/{+path}","compare_url":"https://api.github.com/repos/ViennaAPBC/APBC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ViennaAPBC/APBC/merges","archive_url":"https://api.github.com/repos/ViennaAPBC/APBC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ViennaAPBC/APBC/downloads","issues_url":"https://api.github.com/repos/ViennaAPBC/APBC/issues{/number}","pulls_url":"https://api.github.com/repos/ViennaAPBC/APBC/pulls{/number}","milestones_url":"https://api.github.com/repos/ViennaAPBC/APBC/milestones{/number}","notifications_url":"https://api.github.com/repos/ViennaAPBC/APBC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ViennaAPBC/APBC/labels{/name}","releases_url":"https://api.github.com/repos/ViennaAPBC/APBC/releases{/id}","deployments_url":"https://api.github.com/repos/ViennaAPBC/APBC/deployments","created_at":"2017-01-30T17:56:05Z","updated_at":"2017-03-16T07:14:27Z","pushed_at":"2017-04-25T06:45:47Z","git_url":"git://github.com/ViennaAPBC/APBC.git","ssh_url":"git@github.com:ViennaAPBC/APBC.git","clone_url":"https://github.com/ViennaAPBC/APBC.git","svn_url":"https://github.com/ViennaAPBC/APBC","homepage":null,"size":763,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41"},"html":{"href":"https://github.com/ViennaAPBC/APBC/pull/41"},"issue":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/issues/41"},"comments":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/ViennaAPBC/APBC/statuses/a887b125605ea22e4cca05ac085e99264449ec88"}}}}
{"actor":{"display_login":"s-will"}}