{"action":"created","comment":{"url":"https://api.github.com/repos/Ribtoks/xpiks/pulls/comments/130253908","pull_request_review_id":53107174,"id":130253908,"diff_hunk":"@@ -0,0 +1,208 @@\n+#include \"duplicatesmodel.h\"\r\n+#include \"../Commands/commandmanager.h\"\r\n+#include <QQmlEngine>\r\n+\r\n+namespace Models {\r\n+    namespace {\r\n+        template<typename T, typename ... Args>\r\n+        std::unique_ptr<T> my_make_unique(Args && ... args) {\r\n+            return std::unique_ptr<T>(new T(std::forward<Args>(args) ...));\r\n+        }\r\n+    }\r\n+\r\n+    SimpleKeywordsModel::SimpleKeywordsModel(const QString &stem, const QStringList &keywords):\r\n+        m_Stem(stem) {\r\n+        int size = keywords.size();\r\n+\r\n+        m_Keywords.reserve(size);\r\n+        for (const QString &keyword : keywords) {\r\n+            m_Keywords.push_back({keyword, false});\r\n+        }\r\n+    }\r\n+\r\n+    QStringList SimpleKeywordsModel::getSelected() const {\r\n+        QStringList result;\r\n+        size_t size = m_Keywords.size();\r\n+\r\n+        for (int i = 0; i < size; i++) {\r\n+            bool selected = m_Keywords[i].second;\r\n+            if (selected) {\r\n+                result.append(m_Keywords[i].first);\r","path":"src/xpiks-qt/Models/duplicatesmodel.cpp","position":30,"original_position":30,"commit_id":"23b0b8a7f16af204fa3425cf2a14581ac77b1590","original_commit_id":"23b0b8a7f16af204fa3425cf2a14581ac77b1590","user":{"login":"RostaTasha","id":13381541,"avatar_url":"https://avatars2.githubusercontent.com/u/13381541?v=4","gravatar_id":"","url":"https://api.github.com/users/RostaTasha","html_url":"https://github.com/RostaTasha","followers_url":"https://api.github.com/users/RostaTasha/followers","following_url":"https://api.github.com/users/RostaTasha/following{/other_user}","gists_url":"https://api.github.com/users/RostaTasha/gists{/gist_id}","starred_url":"https://api.github.com/users/RostaTasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostaTasha/subscriptions","organizations_url":"https://api.github.com/users/RostaTasha/orgs","repos_url":"https://api.github.com/users/RostaTasha/repos","events_url":"https://api.github.com/users/RostaTasha/events{/privacy}","received_events_url":"https://api.github.com/users/RostaTasha/received_events","type":"User","site_admin":false},"body":"Changed implementation","created_at":"2017-07-30T21:57:47Z","updated_at":"2017-07-30T21:57:47Z","html_url":"https://github.com/Ribtoks/xpiks/pull/427#discussion_r130253908","pull_request_url":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427","_links":{"self":{"href":"https://api.github.com/repos/Ribtoks/xpiks/pulls/comments/130253908"},"html":{"href":"https://github.com/Ribtoks/xpiks/pull/427#discussion_r130253908"},"pull_request":{"href":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427"}}},"pull_request":{"url":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427","id":120510082,"html_url":"https://github.com/Ribtoks/xpiks/pull/427","diff_url":"https://github.com/Ribtoks/xpiks/pull/427.diff","patch_url":"https://github.com/Ribtoks/xpiks/pull/427.patch","issue_url":"https://api.github.com/repos/Ribtoks/xpiks/issues/427","number":427,"state":"open","locked":false,"title":"closing #368","user":{"login":"RostaTasha","id":13381541,"avatar_url":"https://avatars2.githubusercontent.com/u/13381541?v=4","gravatar_id":"","url":"https://api.github.com/users/RostaTasha","html_url":"https://github.com/RostaTasha","followers_url":"https://api.github.com/users/RostaTasha/followers","following_url":"https://api.github.com/users/RostaTasha/following{/other_user}","gists_url":"https://api.github.com/users/RostaTasha/gists{/gist_id}","starred_url":"https://api.github.com/users/RostaTasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostaTasha/subscriptions","organizations_url":"https://api.github.com/users/RostaTasha/orgs","repos_url":"https://api.github.com/users/RostaTasha/repos","events_url":"https://api.github.com/users/RostaTasha/events{/privacy}","received_events_url":"https://api.github.com/users/RostaTasha/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-15T00:54:18Z","updated_at":"2017-07-30T21:57:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02269b781f65440a153a6bedffc31214030d7549","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427/commits","review_comments_url":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427/comments","review_comment_url":"https://api.github.com/repos/Ribtoks/xpiks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ribtoks/xpiks/issues/427/comments","statuses_url":"https://api.github.com/repos/Ribtoks/xpiks/statuses/23b0b8a7f16af204fa3425cf2a14581ac77b1590","head":{"label":"RostaTasha:368","ref":"368","sha":"23b0b8a7f16af204fa3425cf2a14581ac77b1590","user":{"login":"RostaTasha","id":13381541,"avatar_url":"https://avatars2.githubusercontent.com/u/13381541?v=4","gravatar_id":"","url":"https://api.github.com/users/RostaTasha","html_url":"https://github.com/RostaTasha","followers_url":"https://api.github.com/users/RostaTasha/followers","following_url":"https://api.github.com/users/RostaTasha/following{/other_user}","gists_url":"https://api.github.com/users/RostaTasha/gists{/gist_id}","starred_url":"https://api.github.com/users/RostaTasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostaTasha/subscriptions","organizations_url":"https://api.github.com/users/RostaTasha/orgs","repos_url":"https://api.github.com/users/RostaTasha/repos","events_url":"https://api.github.com/users/RostaTasha/events{/privacy}","received_events_url":"https://api.github.com/users/RostaTasha/received_events","type":"User","site_admin":false},"repo":{"id":50576043,"name":"xpiks","full_name":"RostaTasha/xpiks","owner":{"login":"RostaTasha","id":13381541,"avatar_url":"https://avatars2.githubusercontent.com/u/13381541?v=4","gravatar_id":"","url":"https://api.github.com/users/RostaTasha","html_url":"https://github.com/RostaTasha","followers_url":"https://api.github.com/users/RostaTasha/followers","following_url":"https://api.github.com/users/RostaTasha/following{/other_user}","gists_url":"https://api.github.com/users/RostaTasha/gists{/gist_id}","starred_url":"https://api.github.com/users/RostaTasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostaTasha/subscriptions","organizations_url":"https://api.github.com/users/RostaTasha/orgs","repos_url":"https://api.github.com/users/RostaTasha/repos","events_url":"https://api.github.com/users/RostaTasha/events{/privacy}","received_events_url":"https://api.github.com/users/RostaTasha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RostaTasha/xpiks","description":"Cross-platform Photo Keywording Software for microstock photographers and illustrators","fork":true,"url":"https://api.github.com/repos/RostaTasha/xpiks","forks_url":"https://api.github.com/repos/RostaTasha/xpiks/forks","keys_url":"https://api.github.com/repos/RostaTasha/xpiks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RostaTasha/xpiks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RostaTasha/xpiks/teams","hooks_url":"https://api.github.com/repos/RostaTasha/xpiks/hooks","issue_events_url":"https://api.github.com/repos/RostaTasha/xpiks/issues/events{/number}","events_url":"https://api.github.com/repos/RostaTasha/xpiks/events","assignees_url":"https://api.github.com/repos/RostaTasha/xpiks/assignees{/user}","branches_url":"https://api.github.com/repos/RostaTasha/xpiks/branches{/branch}","tags_url":"https://api.github.com/repos/RostaTasha/xpiks/tags","blobs_url":"https://api.github.com/repos/RostaTasha/xpiks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RostaTasha/xpiks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RostaTasha/xpiks/git/refs{/sha}","trees_url":"https://api.github.com/repos/RostaTasha/xpiks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RostaTasha/xpiks/statuses/{sha}","languages_url":"https://api.github.com/repos/RostaTasha/xpiks/languages","stargazers_url":"https://api.github.com/repos/RostaTasha/xpiks/stargazers","contributors_url":"https://api.github.com/repos/RostaTasha/xpiks/contributors","subscribers_url":"https://api.github.com/repos/RostaTasha/xpiks/subscribers","subscription_url":"https://api.github.com/repos/RostaTasha/xpiks/subscription","commits_url":"https://api.github.com/repos/RostaTasha/xpiks/commits{/sha}","git_commits_url":"https://api.github.com/repos/RostaTasha/xpiks/git/commits{/sha}","comments_url":"https://api.github.com/repos/RostaTasha/xpiks/comments{/number}","issue_comment_url":"https://api.github.com/repos/RostaTasha/xpiks/issues/comments{/number}","contents_url":"https://api.github.com/repos/RostaTasha/xpiks/contents/{+path}","compare_url":"https://api.github.com/repos/RostaTasha/xpiks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RostaTasha/xpiks/merges","archive_url":"https://api.github.com/repos/RostaTasha/xpiks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RostaTasha/xpiks/downloads","issues_url":"https://api.github.com/repos/RostaTasha/xpiks/issues{/number}","pulls_url":"https://api.github.com/repos/RostaTasha/xpiks/pulls{/number}","milestones_url":"https://api.github.com/repos/RostaTasha/xpiks/milestones{/number}","notifications_url":"https://api.github.com/repos/RostaTasha/xpiks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RostaTasha/xpiks/labels{/name}","releases_url":"https://api.github.com/repos/RostaTasha/xpiks/releases{/id}","deployments_url":"https://api.github.com/repos/RostaTasha/xpiks/deployments","created_at":"2016-01-28T10:42:24Z","updated_at":"2016-01-28T10:42:25Z","pushed_at":"2017-07-17T00:30:27Z","git_url":"git://github.com/RostaTasha/xpiks.git","ssh_url":"git@github.com:RostaTasha/xpiks.git","clone_url":"https://github.com/RostaTasha/xpiks.git","svn_url":"https://github.com/RostaTasha/xpiks","homepage":"","size":50015,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"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":"Ribtoks:master","ref":"master","sha":"87f5572ad26eea0aa31325d0404f9da9e781aab4","user":{"login":"Ribtoks","id":505555,"avatar_url":"https://avatars3.githubusercontent.com/u/505555?v=4","gravatar_id":"","url":"https://api.github.com/users/Ribtoks","html_url":"https://github.com/Ribtoks","followers_url":"https://api.github.com/users/Ribtoks/followers","following_url":"https://api.github.com/users/Ribtoks/following{/other_user}","gists_url":"https://api.github.com/users/Ribtoks/gists{/gist_id}","starred_url":"https://api.github.com/users/Ribtoks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ribtoks/subscriptions","organizations_url":"https://api.github.com/users/Ribtoks/orgs","repos_url":"https://api.github.com/users/Ribtoks/repos","events_url":"https://api.github.com/users/Ribtoks/events{/privacy}","received_events_url":"https://api.github.com/users/Ribtoks/received_events","type":"User","site_admin":false},"repo":{"id":26743142,"name":"xpiks","full_name":"Ribtoks/xpiks","owner":{"login":"Ribtoks","id":505555,"avatar_url":"https://avatars3.githubusercontent.com/u/505555?v=4","gravatar_id":"","url":"https://api.github.com/users/Ribtoks","html_url":"https://github.com/Ribtoks","followers_url":"https://api.github.com/users/Ribtoks/followers","following_url":"https://api.github.com/users/Ribtoks/following{/other_user}","gists_url":"https://api.github.com/users/Ribtoks/gists{/gist_id}","starred_url":"https://api.github.com/users/Ribtoks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ribtoks/subscriptions","organizations_url":"https://api.github.com/users/Ribtoks/orgs","repos_url":"https://api.github.com/users/Ribtoks/repos","events_url":"https://api.github.com/users/Ribtoks/events{/privacy}","received_events_url":"https://api.github.com/users/Ribtoks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ribtoks/xpiks","description":"Cross-Platform Image Keywording Software for microstock photographers and illustrators","fork":false,"url":"https://api.github.com/repos/Ribtoks/xpiks","forks_url":"https://api.github.com/repos/Ribtoks/xpiks/forks","keys_url":"https://api.github.com/repos/Ribtoks/xpiks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ribtoks/xpiks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ribtoks/xpiks/teams","hooks_url":"https://api.github.com/repos/Ribtoks/xpiks/hooks","issue_events_url":"https://api.github.com/repos/Ribtoks/xpiks/issues/events{/number}","events_url":"https://api.github.com/repos/Ribtoks/xpiks/events","assignees_url":"https://api.github.com/repos/Ribtoks/xpiks/assignees{/user}","branches_url":"https://api.github.com/repos/Ribtoks/xpiks/branches{/branch}","tags_url":"https://api.github.com/repos/Ribtoks/xpiks/tags","blobs_url":"https://api.github.com/repos/Ribtoks/xpiks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ribtoks/xpiks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ribtoks/xpiks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ribtoks/xpiks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ribtoks/xpiks/statuses/{sha}","languages_url":"https://api.github.com/repos/Ribtoks/xpiks/languages","stargazers_url":"https://api.github.com/repos/Ribtoks/xpiks/stargazers","contributors_url":"https://api.github.com/repos/Ribtoks/xpiks/contributors","subscribers_url":"https://api.github.com/repos/Ribtoks/xpiks/subscribers","subscription_url":"https://api.github.com/repos/Ribtoks/xpiks/subscription","commits_url":"https://api.github.com/repos/Ribtoks/xpiks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ribtoks/xpiks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ribtoks/xpiks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ribtoks/xpiks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ribtoks/xpiks/contents/{+path}","compare_url":"https://api.github.com/repos/Ribtoks/xpiks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ribtoks/xpiks/merges","archive_url":"https://api.github.com/repos/Ribtoks/xpiks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ribtoks/xpiks/downloads","issues_url":"https://api.github.com/repos/Ribtoks/xpiks/issues{/number}","pulls_url":"https://api.github.com/repos/Ribtoks/xpiks/pulls{/number}","milestones_url":"https://api.github.com/repos/Ribtoks/xpiks/milestones{/number}","notifications_url":"https://api.github.com/repos/Ribtoks/xpiks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ribtoks/xpiks/labels{/name}","releases_url":"https://api.github.com/repos/Ribtoks/xpiks/releases{/id}","deployments_url":"https://api.github.com/repos/Ribtoks/xpiks/deployments","created_at":"2014-11-17T06:23:13Z","updated_at":"2017-06-13T07:10:19Z","pushed_at":"2017-07-30T21:47:45Z","git_url":"git://github.com/Ribtoks/xpiks.git","ssh_url":"git@github.com:Ribtoks/xpiks.git","clone_url":"https://github.com/Ribtoks/xpiks.git","svn_url":"https://github.com/Ribtoks/xpiks","homepage":"https://ribtoks.github.io/xpiks/","size":72123,"stargazers_count":30,"watchers_count":30,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":85,"forks":6,"open_issues":85,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427"},"html":{"href":"https://github.com/Ribtoks/xpiks/pull/427"},"issue":{"href":"https://api.github.com/repos/Ribtoks/xpiks/issues/427"},"comments":{"href":"https://api.github.com/repos/Ribtoks/xpiks/issues/427/comments"},"review_comments":{"href":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427/comments"},"review_comment":{"href":"https://api.github.com/repos/Ribtoks/xpiks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ribtoks/xpiks/pulls/427/commits"},"statuses":{"href":"https://api.github.com/repos/Ribtoks/xpiks/statuses/23b0b8a7f16af204fa3425cf2a14581ac77b1590"}}}}
{"actor":{"display_login":"RostaTasha"}}