{"action":"created","comment":{"url":"https://api.github.com/repos/nipy/dipy/pulls/comments/54593029","id":54593029,"diff_hunk":"@@ -445,20 +479,36 @@ def test_cluster_map_get_small_and_large_clusters():\n     cluster_map = ClusterMap()\n \n     # Randomly generate small clusters\n-    indices = [rng.randint(0, 10, size=i) for i in range(1, nb_clusters+1)]\n+    indices = [rng.randint(0, 10, size=i) for i in range(1, nb_clusters + 1)]\n     small_clusters = [Cluster(indices=indices[i]) for i in range(nb_clusters)]\n     cluster_map.add_cluster(*small_clusters)\n \n     # Randomly generate small clusters\n-    indices = [rng.randint(0, 10, size=i) for i in range(nb_clusters+1, 2*nb_clusters+1)]\n+    indices = [\n+        rng.randint(\n+            0,\n+            10,\n+            size=i) for i in range(\n+            nb_clusters +\n+            1,\n+            2 *\n+            nb_clusters +\n+            1)]","path":"dipy/segment/tests/test_clustering.py","position":251,"original_position":251,"commit_id":"2f7efd2bb99d26702149c1ee0edb656c5e219196","original_commit_id":"2f7efd2bb99d26702149c1ee0edb656c5e219196","user":{"login":"arokem","id":118582,"avatar_url":"https://avatars.githubusercontent.com/u/118582?v=3","gravatar_id":"","url":"https://api.github.com/users/arokem","html_url":"https://github.com/arokem","followers_url":"https://api.github.com/users/arokem/followers","following_url":"https://api.github.com/users/arokem/following{/other_user}","gists_url":"https://api.github.com/users/arokem/gists{/gist_id}","starred_url":"https://api.github.com/users/arokem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arokem/subscriptions","organizations_url":"https://api.github.com/users/arokem/orgs","repos_url":"https://api.github.com/users/arokem/repos","events_url":"https://api.github.com/users/arokem/events{/privacy}","received_events_url":"https://api.github.com/users/arokem/received_events","type":"User","site_admin":false},"body":"This line will be easier to read if you break it at the `for`:\r\n\r\n    indices = [rng.randint(0, 10, size=i) \r\n                    for i in range(nb_clusters+1, 2*nb_clusters+1)]\r\n","created_at":"2016-03-01T16:30:47Z","updated_at":"2016-03-01T16:30:47Z","html_url":"https://github.com/nipy/dipy/pull/953#discussion_r54593029","pull_request_url":"https://api.github.com/repos/nipy/dipy/pulls/953","_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments/54593029"},"html":{"href":"https://github.com/nipy/dipy/pull/953#discussion_r54593029"},"pull_request":{"href":"https://api.github.com/repos/nipy/dipy/pulls/953"}}},"pull_request":{"url":"https://api.github.com/repos/nipy/dipy/pulls/953","id":61257022,"html_url":"https://github.com/nipy/dipy/pull/953","diff_url":"https://github.com/nipy/dipy/pull/953.diff","patch_url":"https://github.com/nipy/dipy/pull/953.patch","issue_url":"https://api.github.com/repos/nipy/dipy/issues/953","number":953,"state":"open","locked":false,"title":"FIX: PEP8 for segment","user":{"login":"souravsingh","id":4314261,"avatar_url":"https://avatars.githubusercontent.com/u/4314261?v=3","gravatar_id":"","url":"https://api.github.com/users/souravsingh","html_url":"https://github.com/souravsingh","followers_url":"https://api.github.com/users/souravsingh/followers","following_url":"https://api.github.com/users/souravsingh/following{/other_user}","gists_url":"https://api.github.com/users/souravsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/souravsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souravsingh/subscriptions","organizations_url":"https://api.github.com/users/souravsingh/orgs","repos_url":"https://api.github.com/users/souravsingh/repos","events_url":"https://api.github.com/users/souravsingh/events{/privacy}","received_events_url":"https://api.github.com/users/souravsingh/received_events","type":"User","site_admin":false},"body":"This PR fixes the scripts mentioned in #883 to some extent.","created_at":"2016-03-01T15:18:37Z","updated_at":"2016-03-01T16:30:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"616c797b3cd45a6f9ee889a5e1ce8b22f696e253","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nipy/dipy/pulls/953/commits","review_comments_url":"https://api.github.com/repos/nipy/dipy/pulls/953/comments","review_comment_url":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nipy/dipy/issues/953/comments","statuses_url":"https://api.github.com/repos/nipy/dipy/statuses/2f7efd2bb99d26702149c1ee0edb656c5e219196","head":{"label":"souravsingh:fix-segment","ref":"fix-segment","sha":"2f7efd2bb99d26702149c1ee0edb656c5e219196","user":{"login":"souravsingh","id":4314261,"avatar_url":"https://avatars.githubusercontent.com/u/4314261?v=3","gravatar_id":"","url":"https://api.github.com/users/souravsingh","html_url":"https://github.com/souravsingh","followers_url":"https://api.github.com/users/souravsingh/followers","following_url":"https://api.github.com/users/souravsingh/following{/other_user}","gists_url":"https://api.github.com/users/souravsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/souravsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souravsingh/subscriptions","organizations_url":"https://api.github.com/users/souravsingh/orgs","repos_url":"https://api.github.com/users/souravsingh/repos","events_url":"https://api.github.com/users/souravsingh/events{/privacy}","received_events_url":"https://api.github.com/users/souravsingh/received_events","type":"User","site_admin":false},"repo":{"id":52811665,"name":"dipy","full_name":"souravsingh/dipy","owner":{"login":"souravsingh","id":4314261,"avatar_url":"https://avatars.githubusercontent.com/u/4314261?v=3","gravatar_id":"","url":"https://api.github.com/users/souravsingh","html_url":"https://github.com/souravsingh","followers_url":"https://api.github.com/users/souravsingh/followers","following_url":"https://api.github.com/users/souravsingh/following{/other_user}","gists_url":"https://api.github.com/users/souravsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/souravsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souravsingh/subscriptions","organizations_url":"https://api.github.com/users/souravsingh/orgs","repos_url":"https://api.github.com/users/souravsingh/repos","events_url":"https://api.github.com/users/souravsingh/events{/privacy}","received_events_url":"https://api.github.com/users/souravsingh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/souravsingh/dipy","description":"Diffusion MR Imaging in Python","fork":true,"url":"https://api.github.com/repos/souravsingh/dipy","forks_url":"https://api.github.com/repos/souravsingh/dipy/forks","keys_url":"https://api.github.com/repos/souravsingh/dipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/souravsingh/dipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/souravsingh/dipy/teams","hooks_url":"https://api.github.com/repos/souravsingh/dipy/hooks","issue_events_url":"https://api.github.com/repos/souravsingh/dipy/issues/events{/number}","events_url":"https://api.github.com/repos/souravsingh/dipy/events","assignees_url":"https://api.github.com/repos/souravsingh/dipy/assignees{/user}","branches_url":"https://api.github.com/repos/souravsingh/dipy/branches{/branch}","tags_url":"https://api.github.com/repos/souravsingh/dipy/tags","blobs_url":"https://api.github.com/repos/souravsingh/dipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/souravsingh/dipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/souravsingh/dipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/souravsingh/dipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/souravsingh/dipy/statuses/{sha}","languages_url":"https://api.github.com/repos/souravsingh/dipy/languages","stargazers_url":"https://api.github.com/repos/souravsingh/dipy/stargazers","contributors_url":"https://api.github.com/repos/souravsingh/dipy/contributors","subscribers_url":"https://api.github.com/repos/souravsingh/dipy/subscribers","subscription_url":"https://api.github.com/repos/souravsingh/dipy/subscription","commits_url":"https://api.github.com/repos/souravsingh/dipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/souravsingh/dipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/souravsingh/dipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/souravsingh/dipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/souravsingh/dipy/contents/{+path}","compare_url":"https://api.github.com/repos/souravsingh/dipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/souravsingh/dipy/merges","archive_url":"https://api.github.com/repos/souravsingh/dipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/souravsingh/dipy/downloads","issues_url":"https://api.github.com/repos/souravsingh/dipy/issues{/number}","pulls_url":"https://api.github.com/repos/souravsingh/dipy/pulls{/number}","milestones_url":"https://api.github.com/repos/souravsingh/dipy/milestones{/number}","notifications_url":"https://api.github.com/repos/souravsingh/dipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/souravsingh/dipy/labels{/name}","releases_url":"https://api.github.com/repos/souravsingh/dipy/releases{/id}","deployments_url":"https://api.github.com/repos/souravsingh/dipy/deployments","created_at":"2016-02-29T17:59:13Z","updated_at":"2016-02-29T17:59:15Z","pushed_at":"2016-03-01T15:17:37Z","git_url":"git://github.com/souravsingh/dipy.git","ssh_url":"git@github.com:souravsingh/dipy.git","clone_url":"https://github.com/souravsingh/dipy.git","svn_url":"https://github.com/souravsingh/dipy","homepage":"http://dipy.org","size":29836,"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":"nipy:master","ref":"master","sha":"8f0cfd245a665dedf27a1ab690ad70c01aa591da","user":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"repo":{"id":505209,"name":"dipy","full_name":"nipy/dipy","owner":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nipy/dipy","description":"Diffusion MR Imaging in Python","fork":false,"url":"https://api.github.com/repos/nipy/dipy","forks_url":"https://api.github.com/repos/nipy/dipy/forks","keys_url":"https://api.github.com/repos/nipy/dipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nipy/dipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nipy/dipy/teams","hooks_url":"https://api.github.com/repos/nipy/dipy/hooks","issue_events_url":"https://api.github.com/repos/nipy/dipy/issues/events{/number}","events_url":"https://api.github.com/repos/nipy/dipy/events","assignees_url":"https://api.github.com/repos/nipy/dipy/assignees{/user}","branches_url":"https://api.github.com/repos/nipy/dipy/branches{/branch}","tags_url":"https://api.github.com/repos/nipy/dipy/tags","blobs_url":"https://api.github.com/repos/nipy/dipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nipy/dipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nipy/dipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/nipy/dipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nipy/dipy/statuses/{sha}","languages_url":"https://api.github.com/repos/nipy/dipy/languages","stargazers_url":"https://api.github.com/repos/nipy/dipy/stargazers","contributors_url":"https://api.github.com/repos/nipy/dipy/contributors","subscribers_url":"https://api.github.com/repos/nipy/dipy/subscribers","subscription_url":"https://api.github.com/repos/nipy/dipy/subscription","commits_url":"https://api.github.com/repos/nipy/dipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/nipy/dipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/nipy/dipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/nipy/dipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/nipy/dipy/contents/{+path}","compare_url":"https://api.github.com/repos/nipy/dipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nipy/dipy/merges","archive_url":"https://api.github.com/repos/nipy/dipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nipy/dipy/downloads","issues_url":"https://api.github.com/repos/nipy/dipy/issues{/number}","pulls_url":"https://api.github.com/repos/nipy/dipy/pulls{/number}","milestones_url":"https://api.github.com/repos/nipy/dipy/milestones{/number}","notifications_url":"https://api.github.com/repos/nipy/dipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nipy/dipy/labels{/name}","releases_url":"https://api.github.com/repos/nipy/dipy/releases{/id}","deployments_url":"https://api.github.com/repos/nipy/dipy/deployments","created_at":"2010-02-06T11:43:08Z","updated_at":"2016-02-21T22:58:42Z","pushed_at":"2016-03-01T16:13:19Z","git_url":"git://github.com/nipy/dipy.git","ssh_url":"git@github.com:nipy/dipy.git","clone_url":"https://github.com/nipy/dipy.git","svn_url":"https://github.com/nipy/dipy","homepage":"http://dipy.org","size":40022,"stargazers_count":84,"watchers_count":84,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":124,"mirror_url":null,"open_issues_count":142,"forks":124,"open_issues":142,"watchers":84,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nipy/dipy/pulls/953"},"html":{"href":"https://github.com/nipy/dipy/pull/953"},"issue":{"href":"https://api.github.com/repos/nipy/dipy/issues/953"},"comments":{"href":"https://api.github.com/repos/nipy/dipy/issues/953/comments"},"review_comments":{"href":"https://api.github.com/repos/nipy/dipy/pulls/953/comments"},"review_comment":{"href":"https://api.github.com/repos/nipy/dipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nipy/dipy/pulls/953/commits"},"statuses":{"href":"https://api.github.com/repos/nipy/dipy/statuses/2f7efd2bb99d26702149c1ee0edb656c5e219196"}}}}