{"action":"created","comment":{"url":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/comments/23296696","id":23296696,"diff_hunk":"@@ -0,0 +1,78 @@\n+import tornado.web\n+import json\n+import cStringIO\n+\n+import matplotlib.gridspec as gridspec\n+from matplotlib.figure import Figure\n+from matplotlib.backends.backend_agg import FigureCanvasAgg\n+\n+from status.util import SafeHandler\n+\n+class ClustersPerLaneHandler(SafeHandler):\n+    \"\"\" Serves a page with a plot of distribution of lane read production for a provided\n+    time interval.\n+    \"\"\"\n+    def get(self):\n+        names= self.application.flowcells_db.view(\"lanes/clusters\")\n+        start=names.rows[0].key[0][:6]\n+        end=names.rows[-1].key[0][:6]\n+        start=start[:4]+'01'\n+        end=end[:4]+'31'\n+        t = self.application.loader.load(\"clusters_per_lane.html\")\n+        self.write(t.generate(user = self.get_current_user_name(), start=start, end=end, deprecated=True))","path":"status/clusters_per_lane.py","position":22,"original_position":22,"commit_id":"86f633ab9767bfd4f22cf0220a3ed704a4845c9d","original_commit_id":"86f633ab9767bfd4f22cf0220a3ed704a4845c9d","user":{"login":"pekrau","id":419036,"avatar_url":"https://avatars.githubusercontent.com/u/419036?v=3","gravatar_id":"","url":"https://api.github.com/users/pekrau","html_url":"https://github.com/pekrau","followers_url":"https://api.github.com/users/pekrau/followers","following_url":"https://api.github.com/users/pekrau/following{/other_user}","gists_url":"https://api.github.com/users/pekrau/gists{/gist_id}","starred_url":"https://api.github.com/users/pekrau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekrau/subscriptions","organizations_url":"https://api.github.com/users/pekrau/orgs","repos_url":"https://api.github.com/users/pekrau/repos","events_url":"https://api.github.com/users/pekrau/events{/privacy}","received_events_url":"https://api.github.com/users/pekrau/received_events","type":"User","site_admin":false},"body":"http://www.merriam-webster.com/dictionary/deprecate","created_at":"2015-01-21T12:58:04Z","updated_at":"2015-01-21T12:58:04Z","html_url":"https://github.com/SciLifeLab/genomics-status/pull/166#discussion_r23296696","pull_request_url":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/comments/23296696"},"html":{"href":"https://github.com/SciLifeLab/genomics-status/pull/166#discussion_r23296696"},"pull_request":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166","id":27749980,"html_url":"https://github.com/SciLifeLab/genomics-status/pull/166","diff_url":"https://github.com/SciLifeLab/genomics-status/pull/166.diff","patch_url":"https://github.com/SciLifeLab/genomics-status/pull/166.patch","issue_url":"https://api.github.com/repos/SciLifeLab/genomics-status/issues/166","number":166,"state":"open","locked":false,"title":"clusters per lane","user":{"login":"Galithil","id":7523280,"avatar_url":"https://avatars.githubusercontent.com/u/7523280?v=3","gravatar_id":"","url":"https://api.github.com/users/Galithil","html_url":"https://github.com/Galithil","followers_url":"https://api.github.com/users/Galithil/followers","following_url":"https://api.github.com/users/Galithil/following{/other_user}","gists_url":"https://api.github.com/users/Galithil/gists{/gist_id}","starred_url":"https://api.github.com/users/Galithil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galithil/subscriptions","organizations_url":"https://api.github.com/users/Galithil/orgs","repos_url":"https://api.github.com/users/Galithil/repos","events_url":"https://api.github.com/users/Galithil/events{/privacy}","received_events_url":"https://api.github.com/users/Galithil/received_events","type":"User","site_admin":false},"body":"adds the clusters per lane view","created_at":"2015-01-21T10:44:30Z","updated_at":"2015-01-21T12:58:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed28f969c6aef5f9f851bc2cf018296cb74e7bce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166/commits","review_comments_url":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166/comments","review_comment_url":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/comments/{number}","comments_url":"https://api.github.com/repos/SciLifeLab/genomics-status/issues/166/comments","statuses_url":"https://api.github.com/repos/SciLifeLab/genomics-status/statuses/86f633ab9767bfd4f22cf0220a3ed704a4845c9d","head":{"label":"Galithil:master","ref":"master","sha":"86f633ab9767bfd4f22cf0220a3ed704a4845c9d","user":{"login":"Galithil","id":7523280,"avatar_url":"https://avatars.githubusercontent.com/u/7523280?v=3","gravatar_id":"","url":"https://api.github.com/users/Galithil","html_url":"https://github.com/Galithil","followers_url":"https://api.github.com/users/Galithil/followers","following_url":"https://api.github.com/users/Galithil/following{/other_user}","gists_url":"https://api.github.com/users/Galithil/gists{/gist_id}","starred_url":"https://api.github.com/users/Galithil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galithil/subscriptions","organizations_url":"https://api.github.com/users/Galithil/orgs","repos_url":"https://api.github.com/users/Galithil/repos","events_url":"https://api.github.com/users/Galithil/events{/privacy}","received_events_url":"https://api.github.com/users/Galithil/received_events","type":"User","site_admin":false},"repo":{"id":21605183,"name":"status","full_name":"Galithil/status","owner":{"login":"Galithil","id":7523280,"avatar_url":"https://avatars.githubusercontent.com/u/7523280?v=3","gravatar_id":"","url":"https://api.github.com/users/Galithil","html_url":"https://github.com/Galithil","followers_url":"https://api.github.com/users/Galithil/followers","following_url":"https://api.github.com/users/Galithil/following{/other_user}","gists_url":"https://api.github.com/users/Galithil/gists{/gist_id}","starred_url":"https://api.github.com/users/Galithil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Galithil/subscriptions","organizations_url":"https://api.github.com/users/Galithil/orgs","repos_url":"https://api.github.com/users/Galithil/repos","events_url":"https://api.github.com/users/Galithil/events{/privacy}","received_events_url":"https://api.github.com/users/Galithil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Galithil/status","description":"","fork":true,"url":"https://api.github.com/repos/Galithil/status","forks_url":"https://api.github.com/repos/Galithil/status/forks","keys_url":"https://api.github.com/repos/Galithil/status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Galithil/status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Galithil/status/teams","hooks_url":"https://api.github.com/repos/Galithil/status/hooks","issue_events_url":"https://api.github.com/repos/Galithil/status/issues/events{/number}","events_url":"https://api.github.com/repos/Galithil/status/events","assignees_url":"https://api.github.com/repos/Galithil/status/assignees{/user}","branches_url":"https://api.github.com/repos/Galithil/status/branches{/branch}","tags_url":"https://api.github.com/repos/Galithil/status/tags","blobs_url":"https://api.github.com/repos/Galithil/status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Galithil/status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Galithil/status/git/refs{/sha}","trees_url":"https://api.github.com/repos/Galithil/status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Galithil/status/statuses/{sha}","languages_url":"https://api.github.com/repos/Galithil/status/languages","stargazers_url":"https://api.github.com/repos/Galithil/status/stargazers","contributors_url":"https://api.github.com/repos/Galithil/status/contributors","subscribers_url":"https://api.github.com/repos/Galithil/status/subscribers","subscription_url":"https://api.github.com/repos/Galithil/status/subscription","commits_url":"https://api.github.com/repos/Galithil/status/commits{/sha}","git_commits_url":"https://api.github.com/repos/Galithil/status/git/commits{/sha}","comments_url":"https://api.github.com/repos/Galithil/status/comments{/number}","issue_comment_url":"https://api.github.com/repos/Galithil/status/issues/comments/{number}","contents_url":"https://api.github.com/repos/Galithil/status/contents/{+path}","compare_url":"https://api.github.com/repos/Galithil/status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Galithil/status/merges","archive_url":"https://api.github.com/repos/Galithil/status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Galithil/status/downloads","issues_url":"https://api.github.com/repos/Galithil/status/issues{/number}","pulls_url":"https://api.github.com/repos/Galithil/status/pulls{/number}","milestones_url":"https://api.github.com/repos/Galithil/status/milestones{/number}","notifications_url":"https://api.github.com/repos/Galithil/status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Galithil/status/labels{/name}","releases_url":"https://api.github.com/repos/Galithil/status/releases{/id}","created_at":"2014-07-08T08:33:09Z","updated_at":"2015-01-21T10:46:11Z","pushed_at":"2015-01-21T10:46:11Z","git_url":"git://github.com/Galithil/status.git","ssh_url":"git@github.com:Galithil/status.git","clone_url":"https://github.com/Galithil/status.git","svn_url":"https://github.com/Galithil/status","homepage":"","size":3245,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SciLifeLab:master","ref":"master","sha":"f57262f7b8bf0a4566a9332d9cbd2b399b1c4dda","user":{"login":"SciLifeLab","id":713611,"avatar_url":"https://avatars.githubusercontent.com/u/713611?v=3","gravatar_id":"","url":"https://api.github.com/users/SciLifeLab","html_url":"https://github.com/SciLifeLab","followers_url":"https://api.github.com/users/SciLifeLab/followers","following_url":"https://api.github.com/users/SciLifeLab/following{/other_user}","gists_url":"https://api.github.com/users/SciLifeLab/gists{/gist_id}","starred_url":"https://api.github.com/users/SciLifeLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciLifeLab/subscriptions","organizations_url":"https://api.github.com/users/SciLifeLab/orgs","repos_url":"https://api.github.com/users/SciLifeLab/repos","events_url":"https://api.github.com/users/SciLifeLab/events{/privacy}","received_events_url":"https://api.github.com/users/SciLifeLab/received_events","type":"Organization","site_admin":false},"repo":{"id":4652091,"name":"genomics-status","full_name":"SciLifeLab/genomics-status","owner":{"login":"SciLifeLab","id":713611,"avatar_url":"https://avatars.githubusercontent.com/u/713611?v=3","gravatar_id":"","url":"https://api.github.com/users/SciLifeLab","html_url":"https://github.com/SciLifeLab","followers_url":"https://api.github.com/users/SciLifeLab/followers","following_url":"https://api.github.com/users/SciLifeLab/following{/other_user}","gists_url":"https://api.github.com/users/SciLifeLab/gists{/gist_id}","starred_url":"https://api.github.com/users/SciLifeLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciLifeLab/subscriptions","organizations_url":"https://api.github.com/users/SciLifeLab/orgs","repos_url":"https://api.github.com/users/SciLifeLab/repos","events_url":"https://api.github.com/users/SciLifeLab/events{/privacy}","received_events_url":"https://api.github.com/users/SciLifeLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SciLifeLab/genomics-status","description":"","fork":true,"url":"https://api.github.com/repos/SciLifeLab/genomics-status","forks_url":"https://api.github.com/repos/SciLifeLab/genomics-status/forks","keys_url":"https://api.github.com/repos/SciLifeLab/genomics-status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SciLifeLab/genomics-status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SciLifeLab/genomics-status/teams","hooks_url":"https://api.github.com/repos/SciLifeLab/genomics-status/hooks","issue_events_url":"https://api.github.com/repos/SciLifeLab/genomics-status/issues/events{/number}","events_url":"https://api.github.com/repos/SciLifeLab/genomics-status/events","assignees_url":"https://api.github.com/repos/SciLifeLab/genomics-status/assignees{/user}","branches_url":"https://api.github.com/repos/SciLifeLab/genomics-status/branches{/branch}","tags_url":"https://api.github.com/repos/SciLifeLab/genomics-status/tags","blobs_url":"https://api.github.com/repos/SciLifeLab/genomics-status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SciLifeLab/genomics-status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SciLifeLab/genomics-status/git/refs{/sha}","trees_url":"https://api.github.com/repos/SciLifeLab/genomics-status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SciLifeLab/genomics-status/statuses/{sha}","languages_url":"https://api.github.com/repos/SciLifeLab/genomics-status/languages","stargazers_url":"https://api.github.com/repos/SciLifeLab/genomics-status/stargazers","contributors_url":"https://api.github.com/repos/SciLifeLab/genomics-status/contributors","subscribers_url":"https://api.github.com/repos/SciLifeLab/genomics-status/subscribers","subscription_url":"https://api.github.com/repos/SciLifeLab/genomics-status/subscription","commits_url":"https://api.github.com/repos/SciLifeLab/genomics-status/commits{/sha}","git_commits_url":"https://api.github.com/repos/SciLifeLab/genomics-status/git/commits{/sha}","comments_url":"https://api.github.com/repos/SciLifeLab/genomics-status/comments{/number}","issue_comment_url":"https://api.github.com/repos/SciLifeLab/genomics-status/issues/comments/{number}","contents_url":"https://api.github.com/repos/SciLifeLab/genomics-status/contents/{+path}","compare_url":"https://api.github.com/repos/SciLifeLab/genomics-status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SciLifeLab/genomics-status/merges","archive_url":"https://api.github.com/repos/SciLifeLab/genomics-status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SciLifeLab/genomics-status/downloads","issues_url":"https://api.github.com/repos/SciLifeLab/genomics-status/issues{/number}","pulls_url":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls{/number}","milestones_url":"https://api.github.com/repos/SciLifeLab/genomics-status/milestones{/number}","notifications_url":"https://api.github.com/repos/SciLifeLab/genomics-status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SciLifeLab/genomics-status/labels{/name}","releases_url":"https://api.github.com/repos/SciLifeLab/genomics-status/releases{/id}","created_at":"2012-06-13T14:39:29Z","updated_at":"2015-01-19T10:31:07Z","pushed_at":"2015-01-19T10:31:07Z","git_url":"git://github.com/SciLifeLab/genomics-status.git","ssh_url":"git@github.com:SciLifeLab/genomics-status.git","clone_url":"https://github.com/SciLifeLab/genomics-status.git","svn_url":"https://github.com/SciLifeLab/genomics-status","homepage":"","size":3832,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":8,"forks":7,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166"},"html":{"href":"https://github.com/SciLifeLab/genomics-status/pull/166"},"issue":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/issues/166"},"comments":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/SciLifeLab/genomics-status/statuses/86f633ab9767bfd4f22cf0220a3ed704a4845c9d"}}}}