{"action":"created","comment":{"url":"https://api.github.com/repos/process-asl/process-asl/pulls/comments/53441650","id":53441650,"diff_hunk":"@@ -0,0 +1,81 @@\n+import os\n+import glob\n+\n+\n+def _single_glob(pattern):\n+    \"\"\"Returns the file matching a given pattern. An error is raised if\n+    no file/multiple files match the pattern\n+\n+    Parameters\n+    ----------\n+    pattern : str\n+        The pattern to match.\n+\n+    Returns\n+    -------\n+    output : str or None\n+        The filename if existant.\n+    \"\"\"\n+    filenames = glob.glob(pattern)\n+    if not filenames:\n+        raise ValueError('Non exitant file with pattern {}'.format(pattern))","path":"procasl/datasets.py","position":21,"original_position":21,"commit_id":"69a07ca3d73410136cb71147460b954d2326fc8c","original_commit_id":"69a07ca3d73410136cb71147460b954d2326fc8c","user":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"body":"rather {0}","created_at":"2016-02-19T09:58:04Z","updated_at":"2016-02-19T09:58:04Z","html_url":"https://github.com/process-asl/process-asl/pull/1#discussion_r53441650","pull_request_url":"https://api.github.com/repos/process-asl/process-asl/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/process-asl/process-asl/pulls/comments/53441650"},"html":{"href":"https://github.com/process-asl/process-asl/pull/1#discussion_r53441650"},"pull_request":{"href":"https://api.github.com/repos/process-asl/process-asl/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/process-asl/process-asl/pulls/1","id":59799904,"html_url":"https://github.com/process-asl/process-asl/pull/1","diff_url":"https://github.com/process-asl/process-asl/pull/1.diff","patch_url":"https://github.com/process-asl/process-asl/pull/1.patch","issue_url":"https://api.github.com/repos/process-asl/process-asl/issues/1","number":1,"state":"open","locked":false,"title":"basic api","user":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"body":"basic functions, classes and some tests","created_at":"2016-02-18T13:42:52Z","updated_at":"2016-02-19T09:58:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fe186a53565add03c89acd93d00902d468f3952","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/process-asl/process-asl/pulls/1/commits","review_comments_url":"https://api.github.com/repos/process-asl/process-asl/pulls/1/comments","review_comment_url":"https://api.github.com/repos/process-asl/process-asl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/process-asl/process-asl/issues/1/comments","statuses_url":"https://api.github.com/repos/process-asl/process-asl/statuses/69a07ca3d73410136cb71147460b954d2326fc8c","head":{"label":"salma1601:api","ref":"api","sha":"69a07ca3d73410136cb71147460b954d2326fc8c","user":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"repo":{"id":52009128,"name":"process-asl","full_name":"salma1601/process-asl","owner":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/salma1601/process-asl","description":"Arterial spin labeling data processing","fork":true,"url":"https://api.github.com/repos/salma1601/process-asl","forks_url":"https://api.github.com/repos/salma1601/process-asl/forks","keys_url":"https://api.github.com/repos/salma1601/process-asl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salma1601/process-asl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salma1601/process-asl/teams","hooks_url":"https://api.github.com/repos/salma1601/process-asl/hooks","issue_events_url":"https://api.github.com/repos/salma1601/process-asl/issues/events{/number}","events_url":"https://api.github.com/repos/salma1601/process-asl/events","assignees_url":"https://api.github.com/repos/salma1601/process-asl/assignees{/user}","branches_url":"https://api.github.com/repos/salma1601/process-asl/branches{/branch}","tags_url":"https://api.github.com/repos/salma1601/process-asl/tags","blobs_url":"https://api.github.com/repos/salma1601/process-asl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salma1601/process-asl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salma1601/process-asl/git/refs{/sha}","trees_url":"https://api.github.com/repos/salma1601/process-asl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salma1601/process-asl/statuses/{sha}","languages_url":"https://api.github.com/repos/salma1601/process-asl/languages","stargazers_url":"https://api.github.com/repos/salma1601/process-asl/stargazers","contributors_url":"https://api.github.com/repos/salma1601/process-asl/contributors","subscribers_url":"https://api.github.com/repos/salma1601/process-asl/subscribers","subscription_url":"https://api.github.com/repos/salma1601/process-asl/subscription","commits_url":"https://api.github.com/repos/salma1601/process-asl/commits{/sha}","git_commits_url":"https://api.github.com/repos/salma1601/process-asl/git/commits{/sha}","comments_url":"https://api.github.com/repos/salma1601/process-asl/comments{/number}","issue_comment_url":"https://api.github.com/repos/salma1601/process-asl/issues/comments{/number}","contents_url":"https://api.github.com/repos/salma1601/process-asl/contents/{+path}","compare_url":"https://api.github.com/repos/salma1601/process-asl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salma1601/process-asl/merges","archive_url":"https://api.github.com/repos/salma1601/process-asl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salma1601/process-asl/downloads","issues_url":"https://api.github.com/repos/salma1601/process-asl/issues{/number}","pulls_url":"https://api.github.com/repos/salma1601/process-asl/pulls{/number}","milestones_url":"https://api.github.com/repos/salma1601/process-asl/milestones{/number}","notifications_url":"https://api.github.com/repos/salma1601/process-asl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salma1601/process-asl/labels{/name}","releases_url":"https://api.github.com/repos/salma1601/process-asl/releases{/id}","deployments_url":"https://api.github.com/repos/salma1601/process-asl/deployments","created_at":"2016-02-18T13:30:15Z","updated_at":"2016-02-17T17:34:56Z","pushed_at":"2016-02-19T09:53:02Z","git_url":"git://github.com/salma1601/process-asl.git","ssh_url":"git@github.com:salma1601/process-asl.git","clone_url":"https://github.com/salma1601/process-asl.git","svn_url":"https://github.com/salma1601/process-asl","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":null,"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":"process-asl:master","ref":"master","sha":"e0c5b9d467f277356488c828e833a877ea28f971","user":{"login":"process-asl","id":17299310,"avatar_url":"https://avatars.githubusercontent.com/u/17299310?v=3","gravatar_id":"","url":"https://api.github.com/users/process-asl","html_url":"https://github.com/process-asl","followers_url":"https://api.github.com/users/process-asl/followers","following_url":"https://api.github.com/users/process-asl/following{/other_user}","gists_url":"https://api.github.com/users/process-asl/gists{/gist_id}","starred_url":"https://api.github.com/users/process-asl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-asl/subscriptions","organizations_url":"https://api.github.com/users/process-asl/orgs","repos_url":"https://api.github.com/users/process-asl/repos","events_url":"https://api.github.com/users/process-asl/events{/privacy}","received_events_url":"https://api.github.com/users/process-asl/received_events","type":"Organization","site_admin":false},"repo":{"id":51941642,"name":"process-asl","full_name":"process-asl/process-asl","owner":{"login":"process-asl","id":17299310,"avatar_url":"https://avatars.githubusercontent.com/u/17299310?v=3","gravatar_id":"","url":"https://api.github.com/users/process-asl","html_url":"https://github.com/process-asl","followers_url":"https://api.github.com/users/process-asl/followers","following_url":"https://api.github.com/users/process-asl/following{/other_user}","gists_url":"https://api.github.com/users/process-asl/gists{/gist_id}","starred_url":"https://api.github.com/users/process-asl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-asl/subscriptions","organizations_url":"https://api.github.com/users/process-asl/orgs","repos_url":"https://api.github.com/users/process-asl/repos","events_url":"https://api.github.com/users/process-asl/events{/privacy}","received_events_url":"https://api.github.com/users/process-asl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/process-asl/process-asl","description":"Arterial spin labeling data processing","fork":false,"url":"https://api.github.com/repos/process-asl/process-asl","forks_url":"https://api.github.com/repos/process-asl/process-asl/forks","keys_url":"https://api.github.com/repos/process-asl/process-asl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/process-asl/process-asl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/process-asl/process-asl/teams","hooks_url":"https://api.github.com/repos/process-asl/process-asl/hooks","issue_events_url":"https://api.github.com/repos/process-asl/process-asl/issues/events{/number}","events_url":"https://api.github.com/repos/process-asl/process-asl/events","assignees_url":"https://api.github.com/repos/process-asl/process-asl/assignees{/user}","branches_url":"https://api.github.com/repos/process-asl/process-asl/branches{/branch}","tags_url":"https://api.github.com/repos/process-asl/process-asl/tags","blobs_url":"https://api.github.com/repos/process-asl/process-asl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/process-asl/process-asl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/process-asl/process-asl/git/refs{/sha}","trees_url":"https://api.github.com/repos/process-asl/process-asl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/process-asl/process-asl/statuses/{sha}","languages_url":"https://api.github.com/repos/process-asl/process-asl/languages","stargazers_url":"https://api.github.com/repos/process-asl/process-asl/stargazers","contributors_url":"https://api.github.com/repos/process-asl/process-asl/contributors","subscribers_url":"https://api.github.com/repos/process-asl/process-asl/subscribers","subscription_url":"https://api.github.com/repos/process-asl/process-asl/subscription","commits_url":"https://api.github.com/repos/process-asl/process-asl/commits{/sha}","git_commits_url":"https://api.github.com/repos/process-asl/process-asl/git/commits{/sha}","comments_url":"https://api.github.com/repos/process-asl/process-asl/comments{/number}","issue_comment_url":"https://api.github.com/repos/process-asl/process-asl/issues/comments{/number}","contents_url":"https://api.github.com/repos/process-asl/process-asl/contents/{+path}","compare_url":"https://api.github.com/repos/process-asl/process-asl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/process-asl/process-asl/merges","archive_url":"https://api.github.com/repos/process-asl/process-asl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/process-asl/process-asl/downloads","issues_url":"https://api.github.com/repos/process-asl/process-asl/issues{/number}","pulls_url":"https://api.github.com/repos/process-asl/process-asl/pulls{/number}","milestones_url":"https://api.github.com/repos/process-asl/process-asl/milestones{/number}","notifications_url":"https://api.github.com/repos/process-asl/process-asl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/process-asl/process-asl/labels{/name}","releases_url":"https://api.github.com/repos/process-asl/process-asl/releases{/id}","deployments_url":"https://api.github.com/repos/process-asl/process-asl/deployments","created_at":"2016-02-17T17:34:56Z","updated_at":"2016-02-18T18:36:12Z","pushed_at":"2016-02-19T09:53:04Z","git_url":"git://github.com/process-asl/process-asl.git","ssh_url":"git@github.com:process-asl/process-asl.git","clone_url":"https://github.com/process-asl/process-asl.git","svn_url":"https://github.com/process-asl/process-asl","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/process-asl/process-asl/pulls/1"},"html":{"href":"https://github.com/process-asl/process-asl/pull/1"},"issue":{"href":"https://api.github.com/repos/process-asl/process-asl/issues/1"},"comments":{"href":"https://api.github.com/repos/process-asl/process-asl/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/process-asl/process-asl/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/process-asl/process-asl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/process-asl/process-asl/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/process-asl/process-asl/statuses/69a07ca3d73410136cb71147460b954d2326fc8c"}}}}