{"action":"created","comment":{"url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/comments/28968779","id":28968779,"diff_hunk":"@@ -0,0 +1,66 @@\n+package contextproject.loaders;\n+\n+import java.io.File;\n+import java.util.ArrayList;\n+\n+/**\n+ * Class to read all the mp3 files from a given folder.\n+ *\n+ */\n+public class FolderLoader implements PlaylistLoader {\n+\n+  private File folder;\n+  private ArrayList<String> list;\n+\n+  /**\n+   * Constructor.\n+   * \n+   * @param location\n+   *          location of the folder.\n+   */\n+  public FolderLoader(String location) {\n+    folder = new File(location);\n+    list = new ArrayList<String>();\n+  }\n+\n+  /**\n+   * Method to add all mp3 files from the folder and folders within this folder to the list.\n+   * \n+   * @param directory\n+   *          location of the folder.\n+   */\n+  void addToList(File directory) {","path":"contextproject-ms3/src/main/java/contextproject/loaders/FolderLoader.java","position":32,"original_position":32,"commit_id":"591f30746dfed6fd20c628d1311d6f91ddbca386","original_commit_id":"591f30746dfed6fd20c628d1311d6f91ddbca386","user":{"login":"daveystruijk","id":1928309,"avatar_url":"https://avatars.githubusercontent.com/u/1928309?v=3","gravatar_id":"","url":"https://api.github.com/users/daveystruijk","html_url":"https://github.com/daveystruijk","followers_url":"https://api.github.com/users/daveystruijk/followers","following_url":"https://api.github.com/users/daveystruijk/following{/other_user}","gists_url":"https://api.github.com/users/daveystruijk/gists{/gist_id}","starred_url":"https://api.github.com/users/daveystruijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveystruijk/subscriptions","organizations_url":"https://api.github.com/users/daveystruijk/orgs","repos_url":"https://api.github.com/users/daveystruijk/repos","events_url":"https://api.github.com/users/daveystruijk/events{/privacy}","received_events_url":"https://api.github.com/users/daveystruijk/received_events","type":"User","site_admin":false},"body":"This should actually be private, now it's still accessible for your test cases.","created_at":"2015-04-23T14:45:59Z","updated_at":"2015-04-23T14:45:59Z","html_url":"https://github.com/daveystruijk/contextproject-ms3/pull/5#discussion_r28968779","pull_request_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/comments/28968779"},"html":{"href":"https://github.com/daveystruijk/contextproject-ms3/pull/5#discussion_r28968779"},"pull_request":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5","id":33946428,"html_url":"https://github.com/daveystruijk/contextproject-ms3/pull/5","diff_url":"https://github.com/daveystruijk/contextproject-ms3/pull/5.diff","patch_url":"https://github.com/daveystruijk/contextproject-ms3/pull/5.patch","issue_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/5","number":5,"state":"open","locked":false,"title":"Feature loaders","user":{"login":"Emiel94","id":5955399,"avatar_url":"https://avatars.githubusercontent.com/u/5955399?v=3","gravatar_id":"","url":"https://api.github.com/users/Emiel94","html_url":"https://github.com/Emiel94","followers_url":"https://api.github.com/users/Emiel94/followers","following_url":"https://api.github.com/users/Emiel94/following{/other_user}","gists_url":"https://api.github.com/users/Emiel94/gists{/gist_id}","starred_url":"https://api.github.com/users/Emiel94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Emiel94/subscriptions","organizations_url":"https://api.github.com/users/Emiel94/orgs","repos_url":"https://api.github.com/users/Emiel94/repos","events_url":"https://api.github.com/users/Emiel94/events{/privacy}","received_events_url":"https://api.github.com/users/Emiel94/received_events","type":"User","site_admin":false},"body":"Pull request for the folder loader. It is tested.","created_at":"2015-04-23T11:29:32Z","updated_at":"2015-04-23T14:45:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5/commits","review_comments_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5/comments","review_comment_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/5/comments","statuses_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/statuses/591f30746dfed6fd20c628d1311d6f91ddbca386","head":{"label":"daveystruijk:feature-loaders","ref":"feature-loaders","sha":"591f30746dfed6fd20c628d1311d6f91ddbca386","user":{"login":"daveystruijk","id":1928309,"avatar_url":"https://avatars.githubusercontent.com/u/1928309?v=3","gravatar_id":"","url":"https://api.github.com/users/daveystruijk","html_url":"https://github.com/daveystruijk","followers_url":"https://api.github.com/users/daveystruijk/followers","following_url":"https://api.github.com/users/daveystruijk/following{/other_user}","gists_url":"https://api.github.com/users/daveystruijk/gists{/gist_id}","starred_url":"https://api.github.com/users/daveystruijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveystruijk/subscriptions","organizations_url":"https://api.github.com/users/daveystruijk/orgs","repos_url":"https://api.github.com/users/daveystruijk/repos","events_url":"https://api.github.com/users/daveystruijk/events{/privacy}","received_events_url":"https://api.github.com/users/daveystruijk/received_events","type":"User","site_admin":false},"repo":{"id":34248714,"name":"contextproject-ms3","full_name":"daveystruijk/contextproject-ms3","owner":{"login":"daveystruijk","id":1928309,"avatar_url":"https://avatars.githubusercontent.com/u/1928309?v=3","gravatar_id":"","url":"https://api.github.com/users/daveystruijk","html_url":"https://github.com/daveystruijk","followers_url":"https://api.github.com/users/daveystruijk/followers","following_url":"https://api.github.com/users/daveystruijk/following{/other_user}","gists_url":"https://api.github.com/users/daveystruijk/gists{/gist_id}","starred_url":"https://api.github.com/users/daveystruijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveystruijk/subscriptions","organizations_url":"https://api.github.com/users/daveystruijk/orgs","repos_url":"https://api.github.com/users/daveystruijk/repos","events_url":"https://api.github.com/users/daveystruijk/events{/privacy}","received_events_url":"https://api.github.com/users/daveystruijk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daveystruijk/contextproject-ms3","description":"Contextproject Multimedia Services, for 2nd year of BSC Computer Science.","fork":false,"url":"https://api.github.com/repos/daveystruijk/contextproject-ms3","forks_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/forks","keys_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/teams","hooks_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/hooks","issue_events_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/events{/number}","events_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/events","assignees_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/assignees{/user}","branches_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/branches{/branch}","tags_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/tags","blobs_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/refs{/sha}","trees_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/statuses/{sha}","languages_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/languages","stargazers_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/stargazers","contributors_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/contributors","subscribers_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/subscribers","subscription_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/subscription","commits_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/commits{/sha}","git_commits_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/commits{/sha}","comments_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/comments{/number}","issue_comment_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/comments{/number}","contents_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/contents/{+path}","compare_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/merges","archive_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/downloads","issues_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues{/number}","pulls_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls{/number}","milestones_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/milestones{/number}","notifications_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/labels{/name}","releases_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/releases{/id}","created_at":"2015-04-20T08:38:28Z","updated_at":"2015-04-23T09:15:21Z","pushed_at":"2015-04-23T13:40:26Z","git_url":"git://github.com/daveystruijk/contextproject-ms3.git","ssh_url":"git@github.com:daveystruijk/contextproject-ms3.git","clone_url":"https://github.com/daveystruijk/contextproject-ms3.git","svn_url":"https://github.com/daveystruijk/contextproject-ms3","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"daveystruijk:develop","ref":"develop","sha":"78a61a4698ed1cbd8b974e768ec48d70e7ddaa00","user":{"login":"daveystruijk","id":1928309,"avatar_url":"https://avatars.githubusercontent.com/u/1928309?v=3","gravatar_id":"","url":"https://api.github.com/users/daveystruijk","html_url":"https://github.com/daveystruijk","followers_url":"https://api.github.com/users/daveystruijk/followers","following_url":"https://api.github.com/users/daveystruijk/following{/other_user}","gists_url":"https://api.github.com/users/daveystruijk/gists{/gist_id}","starred_url":"https://api.github.com/users/daveystruijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveystruijk/subscriptions","organizations_url":"https://api.github.com/users/daveystruijk/orgs","repos_url":"https://api.github.com/users/daveystruijk/repos","events_url":"https://api.github.com/users/daveystruijk/events{/privacy}","received_events_url":"https://api.github.com/users/daveystruijk/received_events","type":"User","site_admin":false},"repo":{"id":34248714,"name":"contextproject-ms3","full_name":"daveystruijk/contextproject-ms3","owner":{"login":"daveystruijk","id":1928309,"avatar_url":"https://avatars.githubusercontent.com/u/1928309?v=3","gravatar_id":"","url":"https://api.github.com/users/daveystruijk","html_url":"https://github.com/daveystruijk","followers_url":"https://api.github.com/users/daveystruijk/followers","following_url":"https://api.github.com/users/daveystruijk/following{/other_user}","gists_url":"https://api.github.com/users/daveystruijk/gists{/gist_id}","starred_url":"https://api.github.com/users/daveystruijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveystruijk/subscriptions","organizations_url":"https://api.github.com/users/daveystruijk/orgs","repos_url":"https://api.github.com/users/daveystruijk/repos","events_url":"https://api.github.com/users/daveystruijk/events{/privacy}","received_events_url":"https://api.github.com/users/daveystruijk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daveystruijk/contextproject-ms3","description":"Contextproject Multimedia Services, for 2nd year of BSC Computer Science.","fork":false,"url":"https://api.github.com/repos/daveystruijk/contextproject-ms3","forks_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/forks","keys_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/teams","hooks_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/hooks","issue_events_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/events{/number}","events_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/events","assignees_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/assignees{/user}","branches_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/branches{/branch}","tags_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/tags","blobs_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/refs{/sha}","trees_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/statuses/{sha}","languages_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/languages","stargazers_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/stargazers","contributors_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/contributors","subscribers_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/subscribers","subscription_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/subscription","commits_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/commits{/sha}","git_commits_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/git/commits{/sha}","comments_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/comments{/number}","issue_comment_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/comments{/number}","contents_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/contents/{+path}","compare_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/merges","archive_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/downloads","issues_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues{/number}","pulls_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls{/number}","milestones_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/milestones{/number}","notifications_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/labels{/name}","releases_url":"https://api.github.com/repos/daveystruijk/contextproject-ms3/releases{/id}","created_at":"2015-04-20T08:38:28Z","updated_at":"2015-04-23T09:15:21Z","pushed_at":"2015-04-23T13:40:26Z","git_url":"git://github.com/daveystruijk/contextproject-ms3.git","ssh_url":"git@github.com:daveystruijk/contextproject-ms3.git","clone_url":"https://github.com/daveystruijk/contextproject-ms3.git","svn_url":"https://github.com/daveystruijk/contextproject-ms3","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5"},"html":{"href":"https://github.com/daveystruijk/contextproject-ms3/pull/5"},"issue":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/5"},"comments":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/daveystruijk/contextproject-ms3/statuses/591f30746dfed6fd20c628d1311d6f91ddbca386"}}}}