{"action":"created","comment":{"url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/comments/234346220","pull_request_review_id":175978789,"id":234346220,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDM0NjIyMA==","diff_hunk":"@@ -185,13 +187,16 @@ def extract_instance(sample, data, sample_rate, extraction_modules):\n     if not os.path.isdir(current_dir): continue   # Skip this genre if not defined\n \n     # Loop over every file in the song directory\n+    # for file in tqdm(os.listdir(current_dir)):\n     for file in os.listdir(current_dir):\n         # Read in audio data and sanitize\n         sample_rate, data = wavfile.read(os.path.join(*SONG_DIR, genre, file))\n \n-        # Convert to mono\n-        data = data[:,0]\n+        # Convert to mono if not already\n+        if len(data.shape) > 1:","path":"arff_driver.py","position":27,"original_position":27,"commit_id":"8aecda8026fdcf9785351eafcf23630981adc0bb","original_commit_id":"8aecda8026fdcf9785351eafcf23630981adc0bb","user":{"login":"ALMerrill","id":26172355,"node_id":"MDQ6VXNlcjI2MTcyMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/26172355?v=4","gravatar_id":"","url":"https://api.github.com/users/ALMerrill","html_url":"https://github.com/ALMerrill","followers_url":"https://api.github.com/users/ALMerrill/followers","following_url":"https://api.github.com/users/ALMerrill/following{/other_user}","gists_url":"https://api.github.com/users/ALMerrill/gists{/gist_id}","starred_url":"https://api.github.com/users/ALMerrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ALMerrill/subscriptions","organizations_url":"https://api.github.com/users/ALMerrill/orgs","repos_url":"https://api.github.com/users/ALMerrill/repos","events_url":"https://api.github.com/users/ALMerrill/events{/privacy}","received_events_url":"https://api.github.com/users/ALMerrill/received_events","type":"User","site_admin":false},"body":"Cool. I'll take it out of my PR.","created_at":"2018-11-16T21:00:50Z","updated_at":"2018-11-16T21:00:50Z","html_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition/pull/6#discussion_r234346220","pull_request_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/comments/234346220"},"html":{"href":"https://github.com/CS-478-Group-Project/MusicGenreRecognition/pull/6#discussion_r234346220"},"pull_request":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6"}},"in_reply_to_id":233906381},"pull_request":{"url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6","id":230964266,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwOTY0MjY2","html_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition/pull/6","diff_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition/pull/6.diff","patch_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition/pull/6.patch","issue_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/6","number":6,"state":"open","locked":false,"title":"Am/features","user":{"login":"ALMerrill","id":26172355,"node_id":"MDQ6VXNlcjI2MTcyMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/26172355?v=4","gravatar_id":"","url":"https://api.github.com/users/ALMerrill","html_url":"https://github.com/ALMerrill","followers_url":"https://api.github.com/users/ALMerrill/followers","following_url":"https://api.github.com/users/ALMerrill/following{/other_user}","gists_url":"https://api.github.com/users/ALMerrill/gists{/gist_id}","starred_url":"https://api.github.com/users/ALMerrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ALMerrill/subscriptions","organizations_url":"https://api.github.com/users/ALMerrill/orgs","repos_url":"https://api.github.com/users/ALMerrill/repos","events_url":"https://api.github.com/users/ALMerrill/events{/privacy}","received_events_url":"https://api.github.com/users/ALMerrill/received_events","type":"User","site_admin":false},"body":"Note: I added tqdm as a requirement and put commented out for loops in the driver file. It's a nice wrapper that shows progress bars since it takes awhile to extract features. You can choose to use it if you want.","created_at":"2018-11-14T20:04:38Z","updated_at":"2018-11-16T21:00:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bbfa8b23cde6c92ee19500a1981370d3ba3a4bf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6/commits","review_comments_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6/comments","review_comment_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/6/comments","statuses_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/statuses/8aecda8026fdcf9785351eafcf23630981adc0bb","head":{"label":"CS-478-Group-Project:am/features","ref":"am/features","sha":"8aecda8026fdcf9785351eafcf23630981adc0bb","user":{"login":"CS-478-Group-Project","id":44617452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NjE3NDUy","avatar_url":"https://avatars0.githubusercontent.com/u/44617452?v=4","gravatar_id":"","url":"https://api.github.com/users/CS-478-Group-Project","html_url":"https://github.com/CS-478-Group-Project","followers_url":"https://api.github.com/users/CS-478-Group-Project/followers","following_url":"https://api.github.com/users/CS-478-Group-Project/following{/other_user}","gists_url":"https://api.github.com/users/CS-478-Group-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/CS-478-Group-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS-478-Group-Project/subscriptions","organizations_url":"https://api.github.com/users/CS-478-Group-Project/orgs","repos_url":"https://api.github.com/users/CS-478-Group-Project/repos","events_url":"https://api.github.com/users/CS-478-Group-Project/events{/privacy}","received_events_url":"https://api.github.com/users/CS-478-Group-Project/received_events","type":"Organization","site_admin":false},"repo":{"id":155428339,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0MjgzMzk=","name":"MusicGenreRecognition","full_name":"CS-478-Group-Project/MusicGenreRecognition","private":false,"owner":{"login":"CS-478-Group-Project","id":44617452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NjE3NDUy","avatar_url":"https://avatars0.githubusercontent.com/u/44617452?v=4","gravatar_id":"","url":"https://api.github.com/users/CS-478-Group-Project","html_url":"https://github.com/CS-478-Group-Project","followers_url":"https://api.github.com/users/CS-478-Group-Project/followers","following_url":"https://api.github.com/users/CS-478-Group-Project/following{/other_user}","gists_url":"https://api.github.com/users/CS-478-Group-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/CS-478-Group-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS-478-Group-Project/subscriptions","organizations_url":"https://api.github.com/users/CS-478-Group-Project/orgs","repos_url":"https://api.github.com/users/CS-478-Group-Project/repos","events_url":"https://api.github.com/users/CS-478-Group-Project/events{/privacy}","received_events_url":"https://api.github.com/users/CS-478-Group-Project/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition","description":"Machine learning project on music genre recognition","fork":false,"url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition","forks_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/forks","keys_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/teams","hooks_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/hooks","issue_events_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/events{/number}","events_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/events","assignees_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/assignees{/user}","branches_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/branches{/branch}","tags_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/tags","blobs_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/statuses/{sha}","languages_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/languages","stargazers_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/stargazers","contributors_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/contributors","subscribers_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/subscribers","subscription_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/subscription","commits_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/contents/{+path}","compare_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/merges","archive_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/downloads","issues_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues{/number}","pulls_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls{/number}","milestones_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/milestones{/number}","notifications_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/labels{/name}","releases_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/releases{/id}","deployments_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/deployments","created_at":"2018-10-30T17:28:23Z","updated_at":"2018-11-15T16:06:07Z","pushed_at":"2018-11-15T18:57:40Z","git_url":"git://github.com/CS-478-Group-Project/MusicGenreRecognition.git","ssh_url":"git@github.com:CS-478-Group-Project/MusicGenreRecognition.git","clone_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition.git","svn_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition","homepage":null,"size":32,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"CS-478-Group-Project:master","ref":"master","sha":"e895640017a93182377317f3020ffe9d76e00b0f","user":{"login":"CS-478-Group-Project","id":44617452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NjE3NDUy","avatar_url":"https://avatars0.githubusercontent.com/u/44617452?v=4","gravatar_id":"","url":"https://api.github.com/users/CS-478-Group-Project","html_url":"https://github.com/CS-478-Group-Project","followers_url":"https://api.github.com/users/CS-478-Group-Project/followers","following_url":"https://api.github.com/users/CS-478-Group-Project/following{/other_user}","gists_url":"https://api.github.com/users/CS-478-Group-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/CS-478-Group-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS-478-Group-Project/subscriptions","organizations_url":"https://api.github.com/users/CS-478-Group-Project/orgs","repos_url":"https://api.github.com/users/CS-478-Group-Project/repos","events_url":"https://api.github.com/users/CS-478-Group-Project/events{/privacy}","received_events_url":"https://api.github.com/users/CS-478-Group-Project/received_events","type":"Organization","site_admin":false},"repo":{"id":155428339,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0MjgzMzk=","name":"MusicGenreRecognition","full_name":"CS-478-Group-Project/MusicGenreRecognition","private":false,"owner":{"login":"CS-478-Group-Project","id":44617452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NjE3NDUy","avatar_url":"https://avatars0.githubusercontent.com/u/44617452?v=4","gravatar_id":"","url":"https://api.github.com/users/CS-478-Group-Project","html_url":"https://github.com/CS-478-Group-Project","followers_url":"https://api.github.com/users/CS-478-Group-Project/followers","following_url":"https://api.github.com/users/CS-478-Group-Project/following{/other_user}","gists_url":"https://api.github.com/users/CS-478-Group-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/CS-478-Group-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS-478-Group-Project/subscriptions","organizations_url":"https://api.github.com/users/CS-478-Group-Project/orgs","repos_url":"https://api.github.com/users/CS-478-Group-Project/repos","events_url":"https://api.github.com/users/CS-478-Group-Project/events{/privacy}","received_events_url":"https://api.github.com/users/CS-478-Group-Project/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition","description":"Machine learning project on music genre recognition","fork":false,"url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition","forks_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/forks","keys_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/teams","hooks_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/hooks","issue_events_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/events{/number}","events_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/events","assignees_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/assignees{/user}","branches_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/branches{/branch}","tags_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/tags","blobs_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/statuses/{sha}","languages_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/languages","stargazers_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/stargazers","contributors_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/contributors","subscribers_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/subscribers","subscription_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/subscription","commits_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/contents/{+path}","compare_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/merges","archive_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/downloads","issues_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues{/number}","pulls_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls{/number}","milestones_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/milestones{/number}","notifications_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/labels{/name}","releases_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/releases{/id}","deployments_url":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/deployments","created_at":"2018-10-30T17:28:23Z","updated_at":"2018-11-15T16:06:07Z","pushed_at":"2018-11-15T18:57:40Z","git_url":"git://github.com/CS-478-Group-Project/MusicGenreRecognition.git","ssh_url":"git@github.com:CS-478-Group-Project/MusicGenreRecognition.git","clone_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition.git","svn_url":"https://github.com/CS-478-Group-Project/MusicGenreRecognition","homepage":null,"size":32,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6"},"html":{"href":"https://github.com/CS-478-Group-Project/MusicGenreRecognition/pull/6"},"issue":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/6"},"comments":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/CS-478-Group-Project/MusicGenreRecognition/statuses/8aecda8026fdcf9785351eafcf23630981adc0bb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ALMerrill"}}