{"action":"created","comment":{"url":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments/200340110","pull_request_review_id":134635442,"id":200340110,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDM0MDExMA==","diff_hunk":"@@ -78,6 +78,31 @@ def _get_vector_from_list(self, arg):\n \n         return reqd_vec\n \n+    def get_num_entries(self):\n+        \"\"\"\n+        Gets the number of entries in\n+        the given dataset.\n+\n+        \"\"\"\n+        if isinstance(self.args[0], int):\n+            # If there's only one argument\n+            # which is an integer, return it.\n+            return self.args[0]\n+","path":"PyRDF/RDataFrame.py","position":null,"original_position":14,"commit_id":"a1b8bc38f1a45020aa14b5c11e901345eae981c8","original_commit_id":"12aae70ab07a7709397e3d5b4f49f7c66565027c","user":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"body":"Shall I also add a test for the `ROOT.TTree` case @etejedor ?","created_at":"2018-07-05T12:53:30Z","updated_at":"2018-07-05T12:53:30Z","html_url":"https://github.com/shravan97/PyRDF/pull/37#discussion_r200340110","pull_request_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/37","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments/200340110"},"html":{"href":"https://github.com/shravan97/PyRDF/pull/37#discussion_r200340110"},"pull_request":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/37"}},"in_reply_to_id":200334308},"pull_request":{"url":"https://api.github.com/repos/shravan97/PyRDF/pulls/37","id":198887901,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4ODg3OTAx","html_url":"https://github.com/shravan97/PyRDF/pull/37","diff_url":"https://github.com/shravan97/PyRDF/pull/37.diff","patch_url":"https://github.com/shravan97/PyRDF/pull/37.patch","issue_url":"https://api.github.com/repos/shravan97/PyRDF/issues/37","number":37,"state":"open","locked":false,"title":"Add a function to compute number of entries in the input dataset","user":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"body":"Features in this PR : \r\n* Implement `get_num_entries` in `RDataFrame` to get the number of entries in the input dataset\r\n* Add unit tests for `get_num_entries()`  method","created_at":"2018-07-03T08:35:19Z","updated_at":"2018-07-05T12:53:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e39fd9a46426303c3151976a12c202ab2d97682","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/37/commits","review_comments_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/37/comments","review_comment_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shravan97/PyRDF/issues/37/comments","statuses_url":"https://api.github.com/repos/shravan97/PyRDF/statuses/a1b8bc38f1a45020aa14b5c11e901345eae981c8","head":{"label":"shravan97:nentries","ref":"nentries","sha":"a1b8bc38f1a45020aa14b5c11e901345eae981c8","user":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"repo":{"id":133717643,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM3MTc2NDM=","name":"PyRDF","full_name":"shravan97/PyRDF","owner":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shravan97/PyRDF","description":"Python Library for doing RDataFrame Analysis","fork":false,"url":"https://api.github.com/repos/shravan97/PyRDF","forks_url":"https://api.github.com/repos/shravan97/PyRDF/forks","keys_url":"https://api.github.com/repos/shravan97/PyRDF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shravan97/PyRDF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shravan97/PyRDF/teams","hooks_url":"https://api.github.com/repos/shravan97/PyRDF/hooks","issue_events_url":"https://api.github.com/repos/shravan97/PyRDF/issues/events{/number}","events_url":"https://api.github.com/repos/shravan97/PyRDF/events","assignees_url":"https://api.github.com/repos/shravan97/PyRDF/assignees{/user}","branches_url":"https://api.github.com/repos/shravan97/PyRDF/branches{/branch}","tags_url":"https://api.github.com/repos/shravan97/PyRDF/tags","blobs_url":"https://api.github.com/repos/shravan97/PyRDF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shravan97/PyRDF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shravan97/PyRDF/git/refs{/sha}","trees_url":"https://api.github.com/repos/shravan97/PyRDF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shravan97/PyRDF/statuses/{sha}","languages_url":"https://api.github.com/repos/shravan97/PyRDF/languages","stargazers_url":"https://api.github.com/repos/shravan97/PyRDF/stargazers","contributors_url":"https://api.github.com/repos/shravan97/PyRDF/contributors","subscribers_url":"https://api.github.com/repos/shravan97/PyRDF/subscribers","subscription_url":"https://api.github.com/repos/shravan97/PyRDF/subscription","commits_url":"https://api.github.com/repos/shravan97/PyRDF/commits{/sha}","git_commits_url":"https://api.github.com/repos/shravan97/PyRDF/git/commits{/sha}","comments_url":"https://api.github.com/repos/shravan97/PyRDF/comments{/number}","issue_comment_url":"https://api.github.com/repos/shravan97/PyRDF/issues/comments{/number}","contents_url":"https://api.github.com/repos/shravan97/PyRDF/contents/{+path}","compare_url":"https://api.github.com/repos/shravan97/PyRDF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shravan97/PyRDF/merges","archive_url":"https://api.github.com/repos/shravan97/PyRDF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shravan97/PyRDF/downloads","issues_url":"https://api.github.com/repos/shravan97/PyRDF/issues{/number}","pulls_url":"https://api.github.com/repos/shravan97/PyRDF/pulls{/number}","milestones_url":"https://api.github.com/repos/shravan97/PyRDF/milestones{/number}","notifications_url":"https://api.github.com/repos/shravan97/PyRDF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shravan97/PyRDF/labels{/name}","releases_url":"https://api.github.com/repos/shravan97/PyRDF/releases{/id}","deployments_url":"https://api.github.com/repos/shravan97/PyRDF/deployments","created_at":"2018-05-16T20:08:04Z","updated_at":"2018-07-03T07:49:28Z","pushed_at":"2018-07-05T12:48:16Z","git_url":"git://github.com/shravan97/PyRDF.git","ssh_url":"git@github.com:shravan97/PyRDF.git","clone_url":"https://github.com/shravan97/PyRDF.git","svn_url":"https://github.com/shravan97/PyRDF","homepage":"","size":114,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"shravan97:master","ref":"master","sha":"1d1005e16c7f3212d419f457fc0f29fdf6a37bca","user":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"repo":{"id":133717643,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM3MTc2NDM=","name":"PyRDF","full_name":"shravan97/PyRDF","owner":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shravan97/PyRDF","description":"Python Library for doing RDataFrame Analysis","fork":false,"url":"https://api.github.com/repos/shravan97/PyRDF","forks_url":"https://api.github.com/repos/shravan97/PyRDF/forks","keys_url":"https://api.github.com/repos/shravan97/PyRDF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shravan97/PyRDF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shravan97/PyRDF/teams","hooks_url":"https://api.github.com/repos/shravan97/PyRDF/hooks","issue_events_url":"https://api.github.com/repos/shravan97/PyRDF/issues/events{/number}","events_url":"https://api.github.com/repos/shravan97/PyRDF/events","assignees_url":"https://api.github.com/repos/shravan97/PyRDF/assignees{/user}","branches_url":"https://api.github.com/repos/shravan97/PyRDF/branches{/branch}","tags_url":"https://api.github.com/repos/shravan97/PyRDF/tags","blobs_url":"https://api.github.com/repos/shravan97/PyRDF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shravan97/PyRDF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shravan97/PyRDF/git/refs{/sha}","trees_url":"https://api.github.com/repos/shravan97/PyRDF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shravan97/PyRDF/statuses/{sha}","languages_url":"https://api.github.com/repos/shravan97/PyRDF/languages","stargazers_url":"https://api.github.com/repos/shravan97/PyRDF/stargazers","contributors_url":"https://api.github.com/repos/shravan97/PyRDF/contributors","subscribers_url":"https://api.github.com/repos/shravan97/PyRDF/subscribers","subscription_url":"https://api.github.com/repos/shravan97/PyRDF/subscription","commits_url":"https://api.github.com/repos/shravan97/PyRDF/commits{/sha}","git_commits_url":"https://api.github.com/repos/shravan97/PyRDF/git/commits{/sha}","comments_url":"https://api.github.com/repos/shravan97/PyRDF/comments{/number}","issue_comment_url":"https://api.github.com/repos/shravan97/PyRDF/issues/comments{/number}","contents_url":"https://api.github.com/repos/shravan97/PyRDF/contents/{+path}","compare_url":"https://api.github.com/repos/shravan97/PyRDF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shravan97/PyRDF/merges","archive_url":"https://api.github.com/repos/shravan97/PyRDF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shravan97/PyRDF/downloads","issues_url":"https://api.github.com/repos/shravan97/PyRDF/issues{/number}","pulls_url":"https://api.github.com/repos/shravan97/PyRDF/pulls{/number}","milestones_url":"https://api.github.com/repos/shravan97/PyRDF/milestones{/number}","notifications_url":"https://api.github.com/repos/shravan97/PyRDF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shravan97/PyRDF/labels{/name}","releases_url":"https://api.github.com/repos/shravan97/PyRDF/releases{/id}","deployments_url":"https://api.github.com/repos/shravan97/PyRDF/deployments","created_at":"2018-05-16T20:08:04Z","updated_at":"2018-07-03T07:49:28Z","pushed_at":"2018-07-05T12:48:16Z","git_url":"git://github.com/shravan97/PyRDF.git","ssh_url":"git@github.com:shravan97/PyRDF.git","clone_url":"https://github.com/shravan97/PyRDF.git","svn_url":"https://github.com/shravan97/PyRDF","homepage":"","size":114,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/37"},"html":{"href":"https://github.com/shravan97/PyRDF/pull/37"},"issue":{"href":"https://api.github.com/repos/shravan97/PyRDF/issues/37"},"comments":{"href":"https://api.github.com/repos/shravan97/PyRDF/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/shravan97/PyRDF/statuses/a1b8bc38f1a45020aa14b5c11e901345eae981c8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"shravan97"}}