{"action":"created","comment":{"url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/comments/24717337","id":24717337,"diff_hunk":"@@ -0,0 +1,21 @@\n+from . import errors\n+\n+\n+class ParamError(Exception):\n+    \n+    def __init__(self, error):\n+        super().__init__()\n+        self.error = error\n+\n+def read_param(request, param, default=None, type=str):\n+    try:\n+        value = request.args.get(param, request.form.get(param, default))\n+        return type(value)\n+    except (ValueError, TypeError) as e:\n+        error = errors.bad_request(\"Could not interpret {0}. {1}\" \\\n+                                   .format(param, str(e)))\n+        raise ParamError(error)\n+\n+def read_bar_split_param(request, param, type=str):","path":"ores/wsgi/util.py","position":19,"original_position":19,"commit_id":"d91e136adeaec321ced926e95b19d0afdd60800a","original_commit_id":"d91e136adeaec321ced926e95b19d0afdd60800a","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"body":"Updated to make use of them and fix the URL format. ","created_at":"2015-02-14T21:01:54Z","updated_at":"2015-02-14T21:01:54Z","html_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service/pull/6#discussion_r24717337","pull_request_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/comments/24717337"},"html":{"href":"https://github.com/halfak/Objective-Revision-Evaluation-Service/pull/6#discussion_r24717337"},"pull_request":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6","id":29289520,"html_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service/pull/6","diff_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service/pull/6.diff","patch_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service/pull/6.patch","issue_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/6","number":6,"state":"open","locked":false,"title":"Minimal implementations of a Flask WSGI server.  ","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"body":"Minimal implementations of a Flask WSGI server.  \r\n\r\nAlso, adds ptwiki model descriptions.  ","created_at":"2015-02-13T18:59:24Z","updated_at":"2015-02-14T21:01:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6056a95f8df3d1a06b90307e6df5b3be006ed17","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6/commits","review_comments_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6/comments","review_comment_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/comments/{number}","comments_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/6/comments","statuses_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/statuses/d91e136adeaec321ced926e95b19d0afdd60800a","head":{"label":"halfak:wsgi","ref":"wsgi","sha":"d91e136adeaec321ced926e95b19d0afdd60800a","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"repo":{"id":29100542,"name":"Objective-Revision-Evaluation-Service","full_name":"halfak/Objective-Revision-Evaluation-Service","owner":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service","description":"","fork":false,"url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service","forks_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/forks","keys_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/teams","hooks_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/hooks","issue_events_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/events{/number}","events_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/events","assignees_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/assignees{/user}","branches_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/branches{/branch}","tags_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/tags","blobs_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/refs{/sha}","trees_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/statuses/{sha}","languages_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/languages","stargazers_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/stargazers","contributors_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/contributors","subscribers_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/subscribers","subscription_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/subscription","commits_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/commits{/sha}","git_commits_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/commits{/sha}","comments_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/comments{/number}","issue_comment_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/comments/{number}","contents_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/contents/{+path}","compare_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/merges","archive_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/downloads","issues_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues{/number}","pulls_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls{/number}","milestones_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/milestones{/number}","notifications_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/labels{/name}","releases_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/releases{/id}","created_at":"2015-01-11T18:04:09Z","updated_at":"2015-02-06T00:37:26Z","pushed_at":"2015-02-13T18:58:40Z","git_url":"git://github.com/halfak/Objective-Revision-Evaluation-Service.git","ssh_url":"git@github.com:halfak/Objective-Revision-Evaluation-Service.git","clone_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service.git","svn_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service","homepage":null,"size":370,"stargazers_count":1,"watchers_count":1,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"halfak:master","ref":"master","sha":"3a4f03723bfb7428764472f3b75a33b9062455a5","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"repo":{"id":29100542,"name":"Objective-Revision-Evaluation-Service","full_name":"halfak/Objective-Revision-Evaluation-Service","owner":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service","description":"","fork":false,"url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service","forks_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/forks","keys_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/teams","hooks_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/hooks","issue_events_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/events{/number}","events_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/events","assignees_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/assignees{/user}","branches_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/branches{/branch}","tags_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/tags","blobs_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/refs{/sha}","trees_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/statuses/{sha}","languages_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/languages","stargazers_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/stargazers","contributors_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/contributors","subscribers_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/subscribers","subscription_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/subscription","commits_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/commits{/sha}","git_commits_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/git/commits{/sha}","comments_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/comments{/number}","issue_comment_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/comments/{number}","contents_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/contents/{+path}","compare_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/merges","archive_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/downloads","issues_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues{/number}","pulls_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls{/number}","milestones_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/milestones{/number}","notifications_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/labels{/name}","releases_url":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/releases{/id}","created_at":"2015-01-11T18:04:09Z","updated_at":"2015-02-06T00:37:26Z","pushed_at":"2015-02-13T18:58:40Z","git_url":"git://github.com/halfak/Objective-Revision-Evaluation-Service.git","ssh_url":"git@github.com:halfak/Objective-Revision-Evaluation-Service.git","clone_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service.git","svn_url":"https://github.com/halfak/Objective-Revision-Evaluation-Service","homepage":null,"size":370,"stargazers_count":1,"watchers_count":1,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6"},"html":{"href":"https://github.com/halfak/Objective-Revision-Evaluation-Service/pull/6"},"issue":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/6"},"comments":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/halfak/Objective-Revision-Evaluation-Service/statuses/d91e136adeaec321ced926e95b19d0afdd60800a"}}}}