{"action":"created","comment":{"url":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/comments/77367410","id":77367410,"diff_hunk":"@@ -0,0 +1,118 @@\n+//=============================================================================================================\n+/**\n+* @file     Extract.cpp\n+* @author   Louis Eichhorst <louis.eichhorst@tu-ilmenau.de>;\n+*           Matti Hamalainen <msh@nmr.mgh.harvard.edu>\n+* @version  1.0\n+* @date     August, 2016\n+*\n+* @section  LICENSE\n+*\n+* Copyright (C) 2016, Louis Eichhorst and Matti Hamalainen. All rights reserved.\n+*\n+* Redistribution and use in source and binary forms, with or without modification, are permitted provided that\n+* the following conditions are met:\n+*     * Redistributions of source code must retain the above copyright notice, this list of conditions and the\n+*       following disclaimer.\n+*     * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and\n+*       the following disclaimer in the documentation and/or other materials provided with the distribution.\n+*     * Neither the name of MNE-CPP authors nor the names of its contributors may be used\n+*       to endorse or promote products derived from this software without specific prior written permission.\n+*\n+* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED\n+* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n+* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n+* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n+* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n+* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n+* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+* POSSIBILITY OF SUCH DAMAGE.\n+*\n+*\n+* @brief    Extract class definition.\n+*\n+*/\n+\n+\n+//*************************************************************************************************************\n+//=============================================================================================================\n+// INCLUDES\n+//=============================================================================================================\n+\n+#include \"Extract.h\"\n+\n+//*************************************************************************************************************\n+//=============================================================================================================\n+// DEFINE MEMBER METHODS\n+//=============================================================================================================\n+\n+Extract::Extract(QWidget *parent) :\n+    QMainWindow(parent)\n+{\n+\n+}\n+\n+#ifdef _WIN32\n+\n+\n+void Extract::extractTar()\n+{\n+\n+    QProcess *m_qp7zipTar = new QProcess(this);\n+    m_qArguments.removeLast();\n+    m_qArguments << (m_qCurrentPath + \"\\\\MNE-Sample-Data.tar\");\n+    connect(m_qp7zipTar, SIGNAL(finished(int,QProcess::ExitStatus)), m_qp7zipTar, SLOT(deleteLater()));\n+    m_qp7zipTar->start(m_q7zipPath, m_qArguments);\n+    m_qp7zipTar->waitForFinished(-1);\n+\n+    QFile tarFile(\"MNE-Sample-Data.tar\");\n+    tarFile.remove();\n+    tarFile.close();\n+\n+    emit extractionDone();\n+\n+}\n+\n+void Extract::extractGz(QString archivePath)","path":"applications/mne_sample_set_downloader/extract.cpp","position":76,"original_position":76,"commit_id":"84eefcb5bcd16f8efeb84355f8ed1a5cb251c510","original_commit_id":"84eefcb5bcd16f8efeb84355f8ed1a5cb251c510","user":{"login":"LorenzE","id":5374202,"avatar_url":"https://avatars.githubusercontent.com/u/5374202?v=3","gravatar_id":"","url":"https://api.github.com/users/LorenzE","html_url":"https://github.com/LorenzE","followers_url":"https://api.github.com/users/LorenzE/followers","following_url":"https://api.github.com/users/LorenzE/following{/other_user}","gists_url":"https://api.github.com/users/LorenzE/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenzE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenzE/subscriptions","organizations_url":"https://api.github.com/users/LorenzE/orgs","repos_url":"https://api.github.com/users/LorenzE/repos","events_url":"https://api.github.com/users/LorenzE/events{/privacy}","received_events_url":"https://api.github.com/users/LorenzE/received_events","type":"User","site_admin":false},"body":"use const QString& archivePath instead","created_at":"2016-09-02T15:40:58Z","updated_at":"2016-09-02T15:40:59Z","html_url":"https://github.com/mne-tools/mne-cpp/pull/230#discussion_r77367410","pull_request_url":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230","_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/comments/77367410"},"html":{"href":"https://github.com/mne-tools/mne-cpp/pull/230#discussion_r77367410"},"pull_request":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230"}}},"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230","id":83793657,"html_url":"https://github.com/mne-tools/mne-cpp/pull/230","diff_url":"https://github.com/mne-tools/mne-cpp/pull/230.diff","patch_url":"https://github.com/mne-tools/mne-cpp/pull/230.patch","issue_url":"https://api.github.com/repos/mne-tools/mne-cpp/issues/230","number":230,"state":"open","locked":false,"title":"Automatic sample set downloader","user":{"login":"louiseichhorst","id":20768432,"avatar_url":"https://avatars.githubusercontent.com/u/20768432?v=3","gravatar_id":"","url":"https://api.github.com/users/louiseichhorst","html_url":"https://github.com/louiseichhorst","followers_url":"https://api.github.com/users/louiseichhorst/followers","following_url":"https://api.github.com/users/louiseichhorst/following{/other_user}","gists_url":"https://api.github.com/users/louiseichhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/louiseichhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louiseichhorst/subscriptions","organizations_url":"https://api.github.com/users/louiseichhorst/orgs","repos_url":"https://api.github.com/users/louiseichhorst/repos","events_url":"https://api.github.com/users/louiseichhorst/events{/privacy}","received_events_url":"https://api.github.com/users/louiseichhorst/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-02T12:30:45Z","updated_at":"2016-09-02T15:40:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ce04e0cdbc38c04b1620072ecf8bc4a5483d08c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230/commits","review_comments_url":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230/comments","review_comment_url":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mne-tools/mne-cpp/issues/230/comments","statuses_url":"https://api.github.com/repos/mne-tools/mne-cpp/statuses/84eefcb5bcd16f8efeb84355f8ed1a5cb251c510","head":{"label":"louiseichhorst:master","ref":"master","sha":"84eefcb5bcd16f8efeb84355f8ed1a5cb251c510","user":{"login":"louiseichhorst","id":20768432,"avatar_url":"https://avatars.githubusercontent.com/u/20768432?v=3","gravatar_id":"","url":"https://api.github.com/users/louiseichhorst","html_url":"https://github.com/louiseichhorst","followers_url":"https://api.github.com/users/louiseichhorst/followers","following_url":"https://api.github.com/users/louiseichhorst/following{/other_user}","gists_url":"https://api.github.com/users/louiseichhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/louiseichhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louiseichhorst/subscriptions","organizations_url":"https://api.github.com/users/louiseichhorst/orgs","repos_url":"https://api.github.com/users/louiseichhorst/repos","events_url":"https://api.github.com/users/louiseichhorst/events{/privacy}","received_events_url":"https://api.github.com/users/louiseichhorst/received_events","type":"User","site_admin":false},"repo":{"id":64653837,"name":"mne-cpp","full_name":"louiseichhorst/mne-cpp","owner":{"login":"louiseichhorst","id":20768432,"avatar_url":"https://avatars.githubusercontent.com/u/20768432?v=3","gravatar_id":"","url":"https://api.github.com/users/louiseichhorst","html_url":"https://github.com/louiseichhorst","followers_url":"https://api.github.com/users/louiseichhorst/followers","following_url":"https://api.github.com/users/louiseichhorst/following{/other_user}","gists_url":"https://api.github.com/users/louiseichhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/louiseichhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louiseichhorst/subscriptions","organizations_url":"https://api.github.com/users/louiseichhorst/orgs","repos_url":"https://api.github.com/users/louiseichhorst/repos","events_url":"https://api.github.com/users/louiseichhorst/events{/privacy}","received_events_url":"https://api.github.com/users/louiseichhorst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/louiseichhorst/mne-cpp","description":"Cross-platform medical (real-time) applications for EEG and MEG data analysis","fork":true,"url":"https://api.github.com/repos/louiseichhorst/mne-cpp","forks_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/forks","keys_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/teams","hooks_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/hooks","issue_events_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/events","assignees_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/tags","blobs_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/languages","stargazers_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/stargazers","contributors_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/contributors","subscribers_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/subscribers","subscription_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/subscription","commits_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/merges","archive_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/downloads","issues_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/labels{/name}","releases_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/louiseichhorst/mne-cpp/deployments","created_at":"2016-08-01T09:24:32Z","updated_at":"2016-08-01T09:24:38Z","pushed_at":"2016-09-02T12:28:49Z","git_url":"git://github.com/louiseichhorst/mne-cpp.git","ssh_url":"git@github.com:louiseichhorst/mne-cpp.git","clone_url":"https://github.com/louiseichhorst/mne-cpp.git","svn_url":"https://github.com/louiseichhorst/mne-cpp","homepage":"http://www.mne-cpp.org","size":242885,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"mne-tools:master","ref":"master","sha":"c0b7473c1e9cf9370c920f4f0e9025043c79ec5f","user":{"login":"mne-tools","id":583875,"avatar_url":"https://avatars.githubusercontent.com/u/583875?v=3","gravatar_id":"","url":"https://api.github.com/users/mne-tools","html_url":"https://github.com/mne-tools","followers_url":"https://api.github.com/users/mne-tools/followers","following_url":"https://api.github.com/users/mne-tools/following{/other_user}","gists_url":"https://api.github.com/users/mne-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/mne-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mne-tools/subscriptions","organizations_url":"https://api.github.com/users/mne-tools/orgs","repos_url":"https://api.github.com/users/mne-tools/repos","events_url":"https://api.github.com/users/mne-tools/events{/privacy}","received_events_url":"https://api.github.com/users/mne-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":5600932,"name":"mne-cpp","full_name":"mne-tools/mne-cpp","owner":{"login":"mne-tools","id":583875,"avatar_url":"https://avatars.githubusercontent.com/u/583875?v=3","gravatar_id":"","url":"https://api.github.com/users/mne-tools","html_url":"https://github.com/mne-tools","followers_url":"https://api.github.com/users/mne-tools/followers","following_url":"https://api.github.com/users/mne-tools/following{/other_user}","gists_url":"https://api.github.com/users/mne-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/mne-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mne-tools/subscriptions","organizations_url":"https://api.github.com/users/mne-tools/orgs","repos_url":"https://api.github.com/users/mne-tools/repos","events_url":"https://api.github.com/users/mne-tools/events{/privacy}","received_events_url":"https://api.github.com/users/mne-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mne-tools/mne-cpp","description":"Cross-platform medical (real-time) applications for EEG and MEG data analysis","fork":false,"url":"https://api.github.com/repos/mne-tools/mne-cpp","forks_url":"https://api.github.com/repos/mne-tools/mne-cpp/forks","keys_url":"https://api.github.com/repos/mne-tools/mne-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mne-tools/mne-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mne-tools/mne-cpp/teams","hooks_url":"https://api.github.com/repos/mne-tools/mne-cpp/hooks","issue_events_url":"https://api.github.com/repos/mne-tools/mne-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/mne-tools/mne-cpp/events","assignees_url":"https://api.github.com/repos/mne-tools/mne-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/mne-tools/mne-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/mne-tools/mne-cpp/tags","blobs_url":"https://api.github.com/repos/mne-tools/mne-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mne-tools/mne-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mne-tools/mne-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/mne-tools/mne-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mne-tools/mne-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/mne-tools/mne-cpp/languages","stargazers_url":"https://api.github.com/repos/mne-tools/mne-cpp/stargazers","contributors_url":"https://api.github.com/repos/mne-tools/mne-cpp/contributors","subscribers_url":"https://api.github.com/repos/mne-tools/mne-cpp/subscribers","subscription_url":"https://api.github.com/repos/mne-tools/mne-cpp/subscription","commits_url":"https://api.github.com/repos/mne-tools/mne-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/mne-tools/mne-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/mne-tools/mne-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/mne-tools/mne-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/mne-tools/mne-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/mne-tools/mne-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mne-tools/mne-cpp/merges","archive_url":"https://api.github.com/repos/mne-tools/mne-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mne-tools/mne-cpp/downloads","issues_url":"https://api.github.com/repos/mne-tools/mne-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/mne-tools/mne-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/mne-tools/mne-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/mne-tools/mne-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mne-tools/mne-cpp/labels{/name}","releases_url":"https://api.github.com/repos/mne-tools/mne-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/mne-tools/mne-cpp/deployments","created_at":"2012-08-29T13:33:22Z","updated_at":"2016-08-31T12:38:29Z","pushed_at":"2016-09-02T15:25:11Z","git_url":"git://github.com/mne-tools/mne-cpp.git","ssh_url":"git@github.com:mne-tools/mne-cpp.git","clone_url":"https://github.com/mne-tools/mne-cpp.git","svn_url":"https://github.com/mne-tools/mne-cpp","homepage":"http://www.mne-cpp.org","size":247055,"stargazers_count":26,"watchers_count":26,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":9,"forks":40,"open_issues":9,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230"},"html":{"href":"https://github.com/mne-tools/mne-cpp/pull/230"},"issue":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/issues/230"},"comments":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/mne-tools/mne-cpp/statuses/84eefcb5bcd16f8efeb84355f8ed1a5cb251c510"}}}}
{"actor":{"display_login":"LorenzE"}}