{"action":"created","comment":{"url":"https://api.github.com/repos/grpc/grpc-tools/pulls/comments/33992282","id":33992282,"diff_hunk":"@@ -0,0 +1,283 @@\n+#\n+# Copyright 2015, Google Inc.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions are\n+# met:\n+#\n+#     * Redistributions of source code must retain the above copyright\n+# notice, this list of conditions and the following disclaimer.\n+#     * Redistributions in binary form must reproduce the above\n+# copyright notice, this list of conditions and the following disclaimer\n+# in the documentation and/or other materials provided with the\n+# distribution.\n+#     * Neither the name of Google Inc. nor the names of its\n+# contributors may be used to endorse or promote products derived from\n+# this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+#\n+#!/usr/bin/python\n+\n+import perf_db_pb2\n+import qpstest_pb2\n+import re\n+from collections import defaultdict\n+from django.conf import settings\n+\n+# Class to communicate with performance database server","path":"benchmarking/performance_db/performance_db_frontend/app/user_data.py","position":39,"original_position":39,"commit_id":"d4627a6c485fdafd7162c89c59739edc1205bbe8","original_commit_id":"d4627a6c485fdafd7162c89c59739edc1205bbe8","user":{"login":"soltanmm","id":4889063,"avatar_url":"https://avatars.githubusercontent.com/u/4889063?v=3","gravatar_id":"","url":"https://api.github.com/users/soltanmm","html_url":"https://github.com/soltanmm","followers_url":"https://api.github.com/users/soltanmm/followers","following_url":"https://api.github.com/users/soltanmm/following{/other_user}","gists_url":"https://api.github.com/users/soltanmm/gists{/gist_id}","starred_url":"https://api.github.com/users/soltanmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltanmm/subscriptions","organizations_url":"https://api.github.com/users/soltanmm/orgs","repos_url":"https://api.github.com/users/soltanmm/repos","events_url":"https://api.github.com/users/soltanmm/events{/privacy}","received_events_url":"https://api.github.com/users/soltanmm/received_events","type":"User","site_admin":false},"body":"If `UserData` is part of the public API of this module, the comments for it ought to be docstrings as opposed to inline comments (or perhaps with a bit more snark: your C-family comment habits are showing :-P ). The same goes for the methods forming the public API of the class - they ought to have docstring comments as opposed to inline comments.","created_at":"2015-07-06T22:59:41Z","updated_at":"2015-07-06T22:59:41Z","html_url":"https://github.com/grpc/grpc-tools/pull/2#discussion_r33992282","pull_request_url":"https://api.github.com/repos/grpc/grpc-tools/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc-tools/pulls/comments/33992282"},"html":{"href":"https://github.com/grpc/grpc-tools/pull/2#discussion_r33992282"},"pull_request":{"href":"https://api.github.com/repos/grpc/grpc-tools/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/grpc/grpc-tools/pulls/2","id":38158916,"html_url":"https://github.com/grpc/grpc-tools/pull/2","diff_url":"https://github.com/grpc/grpc-tools/pull/2.diff","patch_url":"https://github.com/grpc/grpc-tools/pull/2.patch","issue_url":"https://api.github.com/repos/grpc/grpc-tools/issues/2","number":2,"state":"open","locked":false,"title":"Performance database tool","user":{"login":"sidrakesh93","id":12348100,"avatar_url":"https://avatars.githubusercontent.com/u/12348100?v=3","gravatar_id":"","url":"https://api.github.com/users/sidrakesh93","html_url":"https://github.com/sidrakesh93","followers_url":"https://api.github.com/users/sidrakesh93/followers","following_url":"https://api.github.com/users/sidrakesh93/following{/other_user}","gists_url":"https://api.github.com/users/sidrakesh93/gists{/gist_id}","starred_url":"https://api.github.com/users/sidrakesh93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidrakesh93/subscriptions","organizations_url":"https://api.github.com/users/sidrakesh93/orgs","repos_url":"https://api.github.com/users/sidrakesh93/repos","events_url":"https://api.github.com/users/sidrakesh93/events{/privacy}","received_events_url":"https://api.github.com/users/sidrakesh93/received_events","type":"User","site_admin":false},"body":"Added the server and frontend for performance database tool","created_at":"2015-06-20T00:25:24Z","updated_at":"2015-07-06T22:59:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a13e993bf7786281deedc6b291aedfb6d3e8f7d","assignee":{"login":"soltanmm","id":4889063,"avatar_url":"https://avatars.githubusercontent.com/u/4889063?v=3","gravatar_id":"","url":"https://api.github.com/users/soltanmm","html_url":"https://github.com/soltanmm","followers_url":"https://api.github.com/users/soltanmm/followers","following_url":"https://api.github.com/users/soltanmm/following{/other_user}","gists_url":"https://api.github.com/users/soltanmm/gists{/gist_id}","starred_url":"https://api.github.com/users/soltanmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltanmm/subscriptions","organizations_url":"https://api.github.com/users/soltanmm/orgs","repos_url":"https://api.github.com/users/soltanmm/repos","events_url":"https://api.github.com/users/soltanmm/events{/privacy}","received_events_url":"https://api.github.com/users/soltanmm/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/grpc/grpc-tools/pulls/2/commits","review_comments_url":"https://api.github.com/repos/grpc/grpc-tools/pulls/2/comments","review_comment_url":"https://api.github.com/repos/grpc/grpc-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grpc/grpc-tools/issues/2/comments","statuses_url":"https://api.github.com/repos/grpc/grpc-tools/statuses/d4627a6c485fdafd7162c89c59739edc1205bbe8","head":{"label":"sidrakesh93:master","ref":"master","sha":"d4627a6c485fdafd7162c89c59739edc1205bbe8","user":{"login":"sidrakesh93","id":12348100,"avatar_url":"https://avatars.githubusercontent.com/u/12348100?v=3","gravatar_id":"","url":"https://api.github.com/users/sidrakesh93","html_url":"https://github.com/sidrakesh93","followers_url":"https://api.github.com/users/sidrakesh93/followers","following_url":"https://api.github.com/users/sidrakesh93/following{/other_user}","gists_url":"https://api.github.com/users/sidrakesh93/gists{/gist_id}","starred_url":"https://api.github.com/users/sidrakesh93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidrakesh93/subscriptions","organizations_url":"https://api.github.com/users/sidrakesh93/orgs","repos_url":"https://api.github.com/users/sidrakesh93/repos","events_url":"https://api.github.com/users/sidrakesh93/events{/privacy}","received_events_url":"https://api.github.com/users/sidrakesh93/received_events","type":"User","site_admin":false},"repo":{"id":37623550,"name":"grpc-tools","full_name":"sidrakesh93/grpc-tools","owner":{"login":"sidrakesh93","id":12348100,"avatar_url":"https://avatars.githubusercontent.com/u/12348100?v=3","gravatar_id":"","url":"https://api.github.com/users/sidrakesh93","html_url":"https://github.com/sidrakesh93","followers_url":"https://api.github.com/users/sidrakesh93/followers","following_url":"https://api.github.com/users/sidrakesh93/following{/other_user}","gists_url":"https://api.github.com/users/sidrakesh93/gists{/gist_id}","starred_url":"https://api.github.com/users/sidrakesh93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidrakesh93/subscriptions","organizations_url":"https://api.github.com/users/sidrakesh93/orgs","repos_url":"https://api.github.com/users/sidrakesh93/repos","events_url":"https://api.github.com/users/sidrakesh93/events{/privacy}","received_events_url":"https://api.github.com/users/sidrakesh93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sidrakesh93/grpc-tools","description":"Tools useful with gRPC libraries","fork":true,"url":"https://api.github.com/repos/sidrakesh93/grpc-tools","forks_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/forks","keys_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/teams","hooks_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/hooks","issue_events_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/issues/events{/number}","events_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/events","assignees_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/assignees{/user}","branches_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/branches{/branch}","tags_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/tags","blobs_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/languages","stargazers_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/stargazers","contributors_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/contributors","subscribers_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/subscribers","subscription_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/subscription","commits_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/contents/{+path}","compare_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/merges","archive_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/downloads","issues_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/issues{/number}","pulls_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/labels{/name}","releases_url":"https://api.github.com/repos/sidrakesh93/grpc-tools/releases{/id}","created_at":"2015-06-17T22:07:23Z","updated_at":"2015-06-25T17:29:30Z","pushed_at":"2015-07-06T04:41:56Z","git_url":"git://github.com/sidrakesh93/grpc-tools.git","ssh_url":"git@github.com:sidrakesh93/grpc-tools.git","clone_url":"https://github.com/sidrakesh93/grpc-tools.git","svn_url":"https://github.com/sidrakesh93/grpc-tools","homepage":null,"size":2775,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"grpc:master","ref":"master","sha":"3d25ebe416dfe648a371ec1e13d2319744399162","user":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"repo":{"id":37097823,"name":"grpc-tools","full_name":"grpc/grpc-tools","owner":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grpc/grpc-tools","description":"Tools useful with gRPC libraries","fork":false,"url":"https://api.github.com/repos/grpc/grpc-tools","forks_url":"https://api.github.com/repos/grpc/grpc-tools/forks","keys_url":"https://api.github.com/repos/grpc/grpc-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grpc/grpc-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grpc/grpc-tools/teams","hooks_url":"https://api.github.com/repos/grpc/grpc-tools/hooks","issue_events_url":"https://api.github.com/repos/grpc/grpc-tools/issues/events{/number}","events_url":"https://api.github.com/repos/grpc/grpc-tools/events","assignees_url":"https://api.github.com/repos/grpc/grpc-tools/assignees{/user}","branches_url":"https://api.github.com/repos/grpc/grpc-tools/branches{/branch}","tags_url":"https://api.github.com/repos/grpc/grpc-tools/tags","blobs_url":"https://api.github.com/repos/grpc/grpc-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grpc/grpc-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grpc/grpc-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/grpc/grpc-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grpc/grpc-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/grpc/grpc-tools/languages","stargazers_url":"https://api.github.com/repos/grpc/grpc-tools/stargazers","contributors_url":"https://api.github.com/repos/grpc/grpc-tools/contributors","subscribers_url":"https://api.github.com/repos/grpc/grpc-tools/subscribers","subscription_url":"https://api.github.com/repos/grpc/grpc-tools/subscription","commits_url":"https://api.github.com/repos/grpc/grpc-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/grpc/grpc-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/grpc/grpc-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/grpc/grpc-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/grpc/grpc-tools/contents/{+path}","compare_url":"https://api.github.com/repos/grpc/grpc-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grpc/grpc-tools/merges","archive_url":"https://api.github.com/repos/grpc/grpc-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grpc/grpc-tools/downloads","issues_url":"https://api.github.com/repos/grpc/grpc-tools/issues{/number}","pulls_url":"https://api.github.com/repos/grpc/grpc-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/grpc/grpc-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/grpc/grpc-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grpc/grpc-tools/labels{/name}","releases_url":"https://api.github.com/repos/grpc/grpc-tools/releases{/id}","created_at":"2015-06-08T23:05:26Z","updated_at":"2015-07-03T06:20:46Z","pushed_at":"2015-07-06T04:41:57Z","git_url":"git://github.com/grpc/grpc-tools.git","ssh_url":"git@github.com:grpc/grpc-tools.git","clone_url":"https://github.com/grpc/grpc-tools.git","svn_url":"https://github.com/grpc/grpc-tools","homepage":null,"size":2925,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc-tools/pulls/2"},"html":{"href":"https://github.com/grpc/grpc-tools/pull/2"},"issue":{"href":"https://api.github.com/repos/grpc/grpc-tools/issues/2"},"comments":{"href":"https://api.github.com/repos/grpc/grpc-tools/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/grpc/grpc-tools/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/grpc/grpc-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grpc/grpc-tools/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/grpc/grpc-tools/statuses/d4627a6c485fdafd7162c89c59739edc1205bbe8"}}}}