{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments/74801603","id":74801603,"diff_hunk":"@@ -156,36 +157,38 @@ def from_pdoc(cls, element):\n         components = element.refname.split('.')\n \n         mod = __import__(components[0])\n-\n         for comp in components[1:]:\n             mod = getattr(mod, comp)\n \n-        build_source(mod, method)\n+        # Get method line number.\n+        method.add_source_line(get_source_line_number(mod))\n+\n+        # Get method Examples.\n+        examples = get_examples_from_docstring(element.docstring)\n+        if examples:\n+            method.add_example(examples)\n \n         if element.docstring:\n             if not isinstance(element, pdoc.Class) and element.cls:\n-                cls = element.cls.cls\n+                clas = element.cls.cls","path":"scripts/generate_json_docs.py","position":28,"original_position":28,"commit_id":"72e58238ac0ee19004d3f9bdd9695ad84fc8b458","original_commit_id":"fe28dab28a5c1f5e41df35c485a23f1c24852dbe","user":{"login":"daspecster","id":192456,"avatar_url":"https://avatars.githubusercontent.com/u/192456?v=3","gravatar_id":"","url":"https://api.github.com/users/daspecster","html_url":"https://github.com/daspecster","followers_url":"https://api.github.com/users/daspecster/followers","following_url":"https://api.github.com/users/daspecster/following{/other_user}","gists_url":"https://api.github.com/users/daspecster/gists{/gist_id}","starred_url":"https://api.github.com/users/daspecster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daspecster/subscriptions","organizations_url":"https://api.github.com/users/daspecster/orgs","repos_url":"https://api.github.com/users/daspecster/repos","events_url":"https://api.github.com/users/daspecster/events{/privacy}","received_events_url":"https://api.github.com/users/daspecster/received_events","type":"User","site_admin":false},"body":"Somehow I forgot about this. New commits coming!","created_at":"2016-08-15T17:46:53Z","updated_at":"2016-08-15T17:46:53Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/2039#discussion_r74801603","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments/74801603"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/2039#discussion_r74801603"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039","id":79605396,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/2039","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/2039.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/2039.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/2039","number":2039,"state":"open","locked":false,"title":"Fix docs datastore examples","user":{"login":"daspecster","id":192456,"avatar_url":"https://avatars.githubusercontent.com/u/192456?v=3","gravatar_id":"","url":"https://api.github.com/users/daspecster","html_url":"https://github.com/daspecster","followers_url":"https://api.github.com/users/daspecster/followers","following_url":"https://api.github.com/users/daspecster/following{/other_user}","gists_url":"https://api.github.com/users/daspecster/gists{/gist_id}","starred_url":"https://api.github.com/users/daspecster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daspecster/subscriptions","organizations_url":"https://api.github.com/users/daspecster/orgs","repos_url":"https://api.github.com/users/daspecster/repos","events_url":"https://api.github.com/users/daspecster/events{/privacy}","received_events_url":"https://api.github.com/users/daspecster/received_events","type":"User","site_admin":false},"body":"Fixes #2037.\r\n\r\nThis is a partial fix for the datastore docstring issue.\r\n\r\nThe original issue was actually, in part, due to the examples being in the datastore.Connection class. Sphinx put them all on one page for some reason.","created_at":"2016-08-01T17:31:44Z","updated_at":"2016-08-15T17:46:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b21606ff74dab7b8948afa95b273c20218efdf9b","assignee":{"login":"tseaver","id":242750,"avatar_url":"https://avatars.githubusercontent.com/u/242750?v=3","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},"assignees":[{"login":"tseaver","id":242750,"avatar_url":"https://avatars.githubusercontent.com/u/242750?v=3","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/2039/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/statuses/72e58238ac0ee19004d3f9bdd9695ad84fc8b458","head":{"label":"daspecster:fix-docs-datastore-examples","ref":"fix-docs-datastore-examples","sha":"72e58238ac0ee19004d3f9bdd9695ad84fc8b458","user":{"login":"daspecster","id":192456,"avatar_url":"https://avatars.githubusercontent.com/u/192456?v=3","gravatar_id":"","url":"https://api.github.com/users/daspecster","html_url":"https://github.com/daspecster","followers_url":"https://api.github.com/users/daspecster/followers","following_url":"https://api.github.com/users/daspecster/following{/other_user}","gists_url":"https://api.github.com/users/daspecster/gists{/gist_id}","starred_url":"https://api.github.com/users/daspecster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daspecster/subscriptions","organizations_url":"https://api.github.com/users/daspecster/orgs","repos_url":"https://api.github.com/users/daspecster/repos","events_url":"https://api.github.com/users/daspecster/events{/privacy}","received_events_url":"https://api.github.com/users/daspecster/received_events","type":"User","site_admin":false},"repo":{"id":43923717,"name":"gcloud-python","full_name":"daspecster/gcloud-python","owner":{"login":"daspecster","id":192456,"avatar_url":"https://avatars.githubusercontent.com/u/192456?v=3","gravatar_id":"","url":"https://api.github.com/users/daspecster","html_url":"https://github.com/daspecster","followers_url":"https://api.github.com/users/daspecster/followers","following_url":"https://api.github.com/users/daspecster/following{/other_user}","gists_url":"https://api.github.com/users/daspecster/gists{/gist_id}","starred_url":"https://api.github.com/users/daspecster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daspecster/subscriptions","organizations_url":"https://api.github.com/users/daspecster/orgs","repos_url":"https://api.github.com/users/daspecster/repos","events_url":"https://api.github.com/users/daspecster/events{/privacy}","received_events_url":"https://api.github.com/users/daspecster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daspecster/gcloud-python","description":"Google Cloud Client Library for Python","fork":true,"url":"https://api.github.com/repos/daspecster/gcloud-python","forks_url":"https://api.github.com/repos/daspecster/gcloud-python/forks","keys_url":"https://api.github.com/repos/daspecster/gcloud-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daspecster/gcloud-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daspecster/gcloud-python/teams","hooks_url":"https://api.github.com/repos/daspecster/gcloud-python/hooks","issue_events_url":"https://api.github.com/repos/daspecster/gcloud-python/issues/events{/number}","events_url":"https://api.github.com/repos/daspecster/gcloud-python/events","assignees_url":"https://api.github.com/repos/daspecster/gcloud-python/assignees{/user}","branches_url":"https://api.github.com/repos/daspecster/gcloud-python/branches{/branch}","tags_url":"https://api.github.com/repos/daspecster/gcloud-python/tags","blobs_url":"https://api.github.com/repos/daspecster/gcloud-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daspecster/gcloud-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daspecster/gcloud-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/daspecster/gcloud-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daspecster/gcloud-python/statuses/{sha}","languages_url":"https://api.github.com/repos/daspecster/gcloud-python/languages","stargazers_url":"https://api.github.com/repos/daspecster/gcloud-python/stargazers","contributors_url":"https://api.github.com/repos/daspecster/gcloud-python/contributors","subscribers_url":"https://api.github.com/repos/daspecster/gcloud-python/subscribers","subscription_url":"https://api.github.com/repos/daspecster/gcloud-python/subscription","commits_url":"https://api.github.com/repos/daspecster/gcloud-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/daspecster/gcloud-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/daspecster/gcloud-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/daspecster/gcloud-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/daspecster/gcloud-python/contents/{+path}","compare_url":"https://api.github.com/repos/daspecster/gcloud-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daspecster/gcloud-python/merges","archive_url":"https://api.github.com/repos/daspecster/gcloud-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daspecster/gcloud-python/downloads","issues_url":"https://api.github.com/repos/daspecster/gcloud-python/issues{/number}","pulls_url":"https://api.github.com/repos/daspecster/gcloud-python/pulls{/number}","milestones_url":"https://api.github.com/repos/daspecster/gcloud-python/milestones{/number}","notifications_url":"https://api.github.com/repos/daspecster/gcloud-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daspecster/gcloud-python/labels{/name}","releases_url":"https://api.github.com/repos/daspecster/gcloud-python/releases{/id}","deployments_url":"https://api.github.com/repos/daspecster/gcloud-python/deployments","created_at":"2015-10-09T00:31:09Z","updated_at":"2016-04-22T01:09:23Z","pushed_at":"2016-08-15T17:37:07Z","git_url":"git://github.com/daspecster/gcloud-python.git","ssh_url":"git@github.com:daspecster/gcloud-python.git","clone_url":"https://github.com/daspecster/gcloud-python.git","svn_url":"https://github.com/daspecster/gcloud-python","homepage":"https://googlecloudplatform.github.io/gcloud-python/","size":68150,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"ffb3dc78a8d8318bf1970e4b239dc332e90e4aac","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":16316451,"name":"gcloud-python","full_name":"GoogleCloudPlatform/gcloud-python","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-python","description":"Google Cloud Client Library for Python","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/deployments","created_at":"2014-01-28T15:51:47Z","updated_at":"2016-08-15T11:53:33Z","pushed_at":"2016-08-15T17:37:08Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-python.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-python.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-python.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-python","homepage":"https://googlecloudplatform.github.io/gcloud-python/","size":71421,"stargazers_count":367,"watchers_count":367,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":189,"mirror_url":null,"open_issues_count":173,"forks":189,"open_issues":173,"watchers":367,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/2039"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/2039"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/2039/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/2039/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/statuses/72e58238ac0ee19004d3f9bdd9695ad84fc8b458"}}}}
{"actor":{"display_login":"daspecster"}}