{"action":"created","comment":{"url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/comments/73527497","id":73527497,"diff_hunk":"@@ -0,0 +1,36 @@\n+\n+#ifndef SELECTION_SORT_H\n+#define SELECTION_SORT_H\n+\n+#include <algorithm>\n+\n+#include \"Sort.h\"\n+\n+namespace llama {\n+\ttemplate<class T>\n+\tclass SelectionSort : public Sort<T> {\n+\tpublic:\n+\t\tSelectionSort() {}\n+\t\tSelectionSort(std::vector<T> *inputArray) { this->sort(inputArray); }\n+\n+\t\tvoid doSort(std::vector<SortObject<T>> *reformedArray) override {\n+\t\t\tfor (int i = 0; i < reformedArray->size(); i++) {\n+\t\t\t\tSortObject<T> key = reformedArray->at(i);\n+\t\t\t\tint flag = i;\n+\t\t\t\t// Select the min value\n+\t\t\t\tfor (int j = i; j < reformedArray->size(); j++){\n+\t\t\t\t\tif (key > reformedArray->at(j)){","path":"llama_cpp/src/Sort/SelectionSort.h","position":22,"original_position":22,"commit_id":"e115c1f412875834601b6b2ad8252db90b056288","original_commit_id":"e115c1f412875834601b6b2ad8252db90b056288","user":{"login":"al1enSuu","id":2240132,"avatar_url":"https://avatars.githubusercontent.com/u/2240132?v=3","gravatar_id":"","url":"https://api.github.com/users/al1enSuu","html_url":"https://github.com/al1enSuu","followers_url":"https://api.github.com/users/al1enSuu/followers","following_url":"https://api.github.com/users/al1enSuu/following{/other_user}","gists_url":"https://api.github.com/users/al1enSuu/gists{/gist_id}","starred_url":"https://api.github.com/users/al1enSuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al1enSuu/subscriptions","organizations_url":"https://api.github.com/users/al1enSuu/orgs","repos_url":"https://api.github.com/users/al1enSuu/repos","events_url":"https://api.github.com/users/al1enSuu/events{/privacy}","received_events_url":"https://api.github.com/users/al1enSuu/received_events","type":"User","site_admin":false},"body":"Space","created_at":"2016-08-04T14:04:15Z","updated_at":"2016-08-04T14:04:15Z","html_url":"https://github.com/Llama-Group/Project-Llama/pull/60#discussion_r73527497","pull_request_url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/comments/73527497"},"html":{"href":"https://github.com/Llama-Group/Project-Llama/pull/60#discussion_r73527497"},"pull_request":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60","id":80083070,"html_url":"https://github.com/Llama-Group/Project-Llama/pull/60","diff_url":"https://github.com/Llama-Group/Project-Llama/pull/60.diff","patch_url":"https://github.com/Llama-Group/Project-Llama/pull/60.patch","issue_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/60","number":60,"state":"open","locked":false,"title":"Feature/add bubble and selection sort","user":{"login":"Sunbelife","id":6279167,"avatar_url":"https://avatars.githubusercontent.com/u/6279167?v=3","gravatar_id":"","url":"https://api.github.com/users/Sunbelife","html_url":"https://github.com/Sunbelife","followers_url":"https://api.github.com/users/Sunbelife/followers","following_url":"https://api.github.com/users/Sunbelife/following{/other_user}","gists_url":"https://api.github.com/users/Sunbelife/gists{/gist_id}","starred_url":"https://api.github.com/users/Sunbelife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sunbelife/subscriptions","organizations_url":"https://api.github.com/users/Sunbelife/orgs","repos_url":"https://api.github.com/users/Sunbelife/repos","events_url":"https://api.github.com/users/Sunbelife/events{/privacy}","received_events_url":"https://api.github.com/users/Sunbelife/received_events","type":"User","site_admin":false},"body":"add bubble and selection sort","created_at":"2016-08-04T13:59:10Z","updated_at":"2016-08-04T14:04:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb89e7cad436bbc6cf4ad103855d49589c9f179c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60/commits","review_comments_url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60/comments","review_comment_url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/60/comments","statuses_url":"https://api.github.com/repos/Llama-Group/Project-Llama/statuses/e115c1f412875834601b6b2ad8252db90b056288","head":{"label":"Llama-Group:feature/add-bubble-and-selection-sort","ref":"feature/add-bubble-and-selection-sort","sha":"e115c1f412875834601b6b2ad8252db90b056288","user":{"login":"Llama-Group","id":20226508,"avatar_url":"https://avatars.githubusercontent.com/u/20226508?v=3","gravatar_id":"","url":"https://api.github.com/users/Llama-Group","html_url":"https://github.com/Llama-Group","followers_url":"https://api.github.com/users/Llama-Group/followers","following_url":"https://api.github.com/users/Llama-Group/following{/other_user}","gists_url":"https://api.github.com/users/Llama-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/Llama-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Llama-Group/subscriptions","organizations_url":"https://api.github.com/users/Llama-Group/orgs","repos_url":"https://api.github.com/users/Llama-Group/repos","events_url":"https://api.github.com/users/Llama-Group/events{/privacy}","received_events_url":"https://api.github.com/users/Llama-Group/received_events","type":"Organization","site_admin":false},"repo":{"id":63898156,"name":"Project-Llama","full_name":"Llama-Group/Project-Llama","owner":{"login":"Llama-Group","id":20226508,"avatar_url":"https://avatars.githubusercontent.com/u/20226508?v=3","gravatar_id":"","url":"https://api.github.com/users/Llama-Group","html_url":"https://github.com/Llama-Group","followers_url":"https://api.github.com/users/Llama-Group/followers","following_url":"https://api.github.com/users/Llama-Group/following{/other_user}","gists_url":"https://api.github.com/users/Llama-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/Llama-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Llama-Group/subscriptions","organizations_url":"https://api.github.com/users/Llama-Group/orgs","repos_url":"https://api.github.com/users/Llama-Group/repos","events_url":"https://api.github.com/users/Llama-Group/events{/privacy}","received_events_url":"https://api.github.com/users/Llama-Group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Llama-Group/Project-Llama","description":"An educational purposed project intends to implement algorithms and models learned during bachelor computer science study, and allow them to solve real-life problems and OJ.","fork":false,"url":"https://api.github.com/repos/Llama-Group/Project-Llama","forks_url":"https://api.github.com/repos/Llama-Group/Project-Llama/forks","keys_url":"https://api.github.com/repos/Llama-Group/Project-Llama/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Llama-Group/Project-Llama/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Llama-Group/Project-Llama/teams","hooks_url":"https://api.github.com/repos/Llama-Group/Project-Llama/hooks","issue_events_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/events{/number}","events_url":"https://api.github.com/repos/Llama-Group/Project-Llama/events","assignees_url":"https://api.github.com/repos/Llama-Group/Project-Llama/assignees{/user}","branches_url":"https://api.github.com/repos/Llama-Group/Project-Llama/branches{/branch}","tags_url":"https://api.github.com/repos/Llama-Group/Project-Llama/tags","blobs_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/refs{/sha}","trees_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Llama-Group/Project-Llama/statuses/{sha}","languages_url":"https://api.github.com/repos/Llama-Group/Project-Llama/languages","stargazers_url":"https://api.github.com/repos/Llama-Group/Project-Llama/stargazers","contributors_url":"https://api.github.com/repos/Llama-Group/Project-Llama/contributors","subscribers_url":"https://api.github.com/repos/Llama-Group/Project-Llama/subscribers","subscription_url":"https://api.github.com/repos/Llama-Group/Project-Llama/subscription","commits_url":"https://api.github.com/repos/Llama-Group/Project-Llama/commits{/sha}","git_commits_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/commits{/sha}","comments_url":"https://api.github.com/repos/Llama-Group/Project-Llama/comments{/number}","issue_comment_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/comments{/number}","contents_url":"https://api.github.com/repos/Llama-Group/Project-Llama/contents/{+path}","compare_url":"https://api.github.com/repos/Llama-Group/Project-Llama/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Llama-Group/Project-Llama/merges","archive_url":"https://api.github.com/repos/Llama-Group/Project-Llama/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Llama-Group/Project-Llama/downloads","issues_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues{/number}","pulls_url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls{/number}","milestones_url":"https://api.github.com/repos/Llama-Group/Project-Llama/milestones{/number}","notifications_url":"https://api.github.com/repos/Llama-Group/Project-Llama/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Llama-Group/Project-Llama/labels{/name}","releases_url":"https://api.github.com/repos/Llama-Group/Project-Llama/releases{/id}","deployments_url":"https://api.github.com/repos/Llama-Group/Project-Llama/deployments","created_at":"2016-07-21T19:51:30Z","updated_at":"2016-07-29T09:18:28Z","pushed_at":"2016-08-04T13:59:11Z","git_url":"git://github.com/Llama-Group/Project-Llama.git","ssh_url":"git@github.com:Llama-Group/Project-Llama.git","clone_url":"https://github.com/Llama-Group/Project-Llama.git","svn_url":"https://github.com/Llama-Group/Project-Llama","homepage":"","size":619,"stargazers_count":6,"watchers_count":6,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":6,"default_branch":"master"}},"base":{"label":"Llama-Group:master","ref":"master","sha":"d8864450973759616ca3b9413e66bf2ade7d1246","user":{"login":"Llama-Group","id":20226508,"avatar_url":"https://avatars.githubusercontent.com/u/20226508?v=3","gravatar_id":"","url":"https://api.github.com/users/Llama-Group","html_url":"https://github.com/Llama-Group","followers_url":"https://api.github.com/users/Llama-Group/followers","following_url":"https://api.github.com/users/Llama-Group/following{/other_user}","gists_url":"https://api.github.com/users/Llama-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/Llama-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Llama-Group/subscriptions","organizations_url":"https://api.github.com/users/Llama-Group/orgs","repos_url":"https://api.github.com/users/Llama-Group/repos","events_url":"https://api.github.com/users/Llama-Group/events{/privacy}","received_events_url":"https://api.github.com/users/Llama-Group/received_events","type":"Organization","site_admin":false},"repo":{"id":63898156,"name":"Project-Llama","full_name":"Llama-Group/Project-Llama","owner":{"login":"Llama-Group","id":20226508,"avatar_url":"https://avatars.githubusercontent.com/u/20226508?v=3","gravatar_id":"","url":"https://api.github.com/users/Llama-Group","html_url":"https://github.com/Llama-Group","followers_url":"https://api.github.com/users/Llama-Group/followers","following_url":"https://api.github.com/users/Llama-Group/following{/other_user}","gists_url":"https://api.github.com/users/Llama-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/Llama-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Llama-Group/subscriptions","organizations_url":"https://api.github.com/users/Llama-Group/orgs","repos_url":"https://api.github.com/users/Llama-Group/repos","events_url":"https://api.github.com/users/Llama-Group/events{/privacy}","received_events_url":"https://api.github.com/users/Llama-Group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Llama-Group/Project-Llama","description":"An educational purposed project intends to implement algorithms and models learned during bachelor computer science study, and allow them to solve real-life problems and OJ.","fork":false,"url":"https://api.github.com/repos/Llama-Group/Project-Llama","forks_url":"https://api.github.com/repos/Llama-Group/Project-Llama/forks","keys_url":"https://api.github.com/repos/Llama-Group/Project-Llama/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Llama-Group/Project-Llama/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Llama-Group/Project-Llama/teams","hooks_url":"https://api.github.com/repos/Llama-Group/Project-Llama/hooks","issue_events_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/events{/number}","events_url":"https://api.github.com/repos/Llama-Group/Project-Llama/events","assignees_url":"https://api.github.com/repos/Llama-Group/Project-Llama/assignees{/user}","branches_url":"https://api.github.com/repos/Llama-Group/Project-Llama/branches{/branch}","tags_url":"https://api.github.com/repos/Llama-Group/Project-Llama/tags","blobs_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/refs{/sha}","trees_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Llama-Group/Project-Llama/statuses/{sha}","languages_url":"https://api.github.com/repos/Llama-Group/Project-Llama/languages","stargazers_url":"https://api.github.com/repos/Llama-Group/Project-Llama/stargazers","contributors_url":"https://api.github.com/repos/Llama-Group/Project-Llama/contributors","subscribers_url":"https://api.github.com/repos/Llama-Group/Project-Llama/subscribers","subscription_url":"https://api.github.com/repos/Llama-Group/Project-Llama/subscription","commits_url":"https://api.github.com/repos/Llama-Group/Project-Llama/commits{/sha}","git_commits_url":"https://api.github.com/repos/Llama-Group/Project-Llama/git/commits{/sha}","comments_url":"https://api.github.com/repos/Llama-Group/Project-Llama/comments{/number}","issue_comment_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/comments{/number}","contents_url":"https://api.github.com/repos/Llama-Group/Project-Llama/contents/{+path}","compare_url":"https://api.github.com/repos/Llama-Group/Project-Llama/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Llama-Group/Project-Llama/merges","archive_url":"https://api.github.com/repos/Llama-Group/Project-Llama/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Llama-Group/Project-Llama/downloads","issues_url":"https://api.github.com/repos/Llama-Group/Project-Llama/issues{/number}","pulls_url":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls{/number}","milestones_url":"https://api.github.com/repos/Llama-Group/Project-Llama/milestones{/number}","notifications_url":"https://api.github.com/repos/Llama-Group/Project-Llama/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Llama-Group/Project-Llama/labels{/name}","releases_url":"https://api.github.com/repos/Llama-Group/Project-Llama/releases{/id}","deployments_url":"https://api.github.com/repos/Llama-Group/Project-Llama/deployments","created_at":"2016-07-21T19:51:30Z","updated_at":"2016-07-29T09:18:28Z","pushed_at":"2016-08-04T13:59:11Z","git_url":"git://github.com/Llama-Group/Project-Llama.git","ssh_url":"git@github.com:Llama-Group/Project-Llama.git","clone_url":"https://github.com/Llama-Group/Project-Llama.git","svn_url":"https://github.com/Llama-Group/Project-Llama","homepage":"","size":619,"stargazers_count":6,"watchers_count":6,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60"},"html":{"href":"https://github.com/Llama-Group/Project-Llama/pull/60"},"issue":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/60"},"comments":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/Llama-Group/Project-Llama/statuses/e115c1f412875834601b6b2ad8252db90b056288"}}}}
{"actor":{"display_login":"al1enSuu"}}